Text Compare

Compare two texts and highlight every difference.

How does text comparison work?

A text compare (diff) tool finds the longest sequence two texts share and highlights everything else as added or removed. Comparing by words suits prose, by lines suits code and lists, and by characters reveals small typos.

How to use the Text Compare

    Frequently asked questions

    How do I compare two texts for differences?

    Paste the original text in the first box and the changed text in the second, choose words, lines or characters, and click Generate.

    Can I compare code?

    Yes. Use line mode for code and configuration files.

    Is my text uploaded?

    No. The comparison runs entirely in your browser.

    What does similarity mean?

    It is the share of the text that is identical in both versions.