Pixel and Prose

Text Compare: find differences in two texts

Updated
Cover image for "Text Compare: find differences in two texts" – Pixel and Prose

Compare two versions of a text and see exactly what changed. Added words are highlighted in green and removed words in red, line by line or word by word, so you can check edits to a contract, essay or piece of code.

Compare by

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

How to compare two texts

  1. Paste the original version on the left and the changed version on the right.
  2. Choose how fine the comparison should be. Words suits prose, Lines suits code, lists and data files, and Characters catches single-letter typos.
  3. Click Compare. Text that only exists in the changed version is green; text that was removed is red and struck through.
Text Compare result: 9 am changed to 10 am, draft to final, and new words marked in green

How the comparison works

The tool finds the longest sequence of pieces that both texts share, then marks everything else as added or removed. This is the same idea used by version control systems such as Git, so the result shows the smallest set of edits that turns the original into the new version.

To see how long each version is, paste it into the word counter, which also shows sentences, paragraphs and reading time.

Text Compare in characters mode marking the single letter changed from Recieve to Receive

Frequently asked questions

Why is a moved paragraph shown as removed and added?

A comparison like this works in order from top to bottom, so text that moved to another place appears as a deletion in one spot and an addition in another. The content itself is unchanged.

Is there a size limit?

Long texts compare quickly when the changes are few, even tens of thousands of words. If the two texts differ in more than about 3,000 places, word and character mode switch to line mode to stay fast, and the tool tells you when that happens.

Can I compare Word or PDF files?

Copy the text out of each file and paste it here. Formatting such as bold or fonts is not compared, only the text.