Compare text

Paste two texts and see at once what was added and what was removed. Removed text is red, added text is green. Handy for laying two versions of a document, a piece of code or a configuration file side by side.

Compare by

How it works

  1. Paste two texts

    Put the original text on the left and the new text on the right. No texts at hand? Click Fill in example.

  2. Choose how to compare

    By line, by word or by character. You can ignore capitals and spaces.

  3. Read the differences

    Removed text is red and added text is green. Copy differences takes the result with you.

By line, word or character

  • Line shows the lines that changed. When a line was replaced, the changed words are marked as well.
  • Word shows one running text with the changed words in it, suited to prose.
  • Character marks every differing character. That way you find small typos and differences in punctuation.

What to ignore?

With Ignore capitals the difference between Apple and apple doesn't count. With Ignore spaces and whitespace extra spaces, tabs and line breaks don't count, handy when two sources are only formatted differently.

How it works

The tool finds the longest run of lines (or words or characters) that appears in both texts and treats the rest as removed or added. That is the same approach as the diff programmers use. The result is therefore the smallest possible number of changes, although there are sometimes several equally good solutions.

Private

Both texts stay in your browser. Nothing is stored or sent.

Frequently asked questions

Is my text sent anywhere?

No. The comparison happens in your browser and your texts are not sent or stored.

What is the difference between line, word and character?

By line you see which lines changed, with the changed words marked. By word or by character you see one running text with the changes in it, handy for short texts or small typos.

How large can the texts be?

By line you can compare thousands of lines. By word or character the limit is lower; the tool then tells you to compare by line.

Can I compare files too?

Paste the contents of the files into the two boxes. It works well for text, code and configuration files.