Open Toolkit

Compare two texts

Two texts side by side, with every added and removed word marked.

Free, no sign-up, no credit card. Your files stay on your device.

Show the changes

How to compare two texts

  1. Paste the first text on the left and the changed text on the right, or open a text file into each box.
  2. Choose to show the changes by word or by line, and whether to ignore capitals, spaces and line breaks.
  3. Select "Compare".
  4. Read the marked changes, then copy the result or download it as a text file.

What to know

Ignore options

  • Ignore capitals treats "Hello" and "hello" as the same. Each side still shows its own letters.
  • Ignore spaces and line breaks treats a line break, a tab and several spaces between words as one space. It is on to begin with, so text that was only re-wrapped isn't shown as changed.
  • With both off, every difference counts, including a space at the end of a line.

How a number or a word is kept whole

A figure such as 5,500, a word such as don't or an address such as e-mail stays in one piece, so a changed amount is one change and not three. Punctuation marks are compared one at a time.

Opening files

Select "Open a text file" under either box to read a .txt, .md or .csv file into it. Word documents and PDFs aren't opened here. Copy their text and paste it in.

If something goes wrong

Everything is marked as changed

The texts may have little in common, or one may use different line breaks or spacing. Tick "Ignore spaces and line breaks", and try comparing by line if the texts are lists.

It says the texts are too different

Comparison stops after a few seconds. Compare by line instead, which has far fewer pieces to match, or compare one section at a time.

I want to compare two PDFs

Compare PDF finds the pages that match, then shows the added and removed words on each, so you don't have to copy text out first. Use Compare PDF.

My text is stuck in a PDF

Take the text out of the PDF first, then paste it into the box. Use PDF to text.

Questions

Are my texts uploaded?

No. Both texts are compared in your browser and neither is sent anywhere or saved. Contracts, essays and code are as private here as on your own computer.

What is the difference between comparing by word and by line?

By word shows each version in full with only the words that differ marked, which suits prose and edits to a paragraph. By line puts the two texts side by side line against line, which suits lists, code and settings files, and also marks the words inside a changed line.

What do the colours mean?

Red with a line through it is text only the first version has, and green with an underline is text only the second version has. The line and underline are there so the marks don't depend on colour.

What does the downloaded result look like?

A plain text file. By line, each removed line starts with "- ", each added line with "+ ", and unchanged lines with two spaces. By word, the text runs on with [-removed words-] and {+added words+} marked in place.

Is there a size limit?

There is no fixed limit, but a comparison that takes longer than a few seconds is stopped, and you're told. That only happens with long texts that have little in common. Comparing by line is faster for those.

Something not working? Report a problem