Skip to content
everylittletool

Text Compare

Paste two versions of a text and see exactly what was added and removed.

Runs in your browser — nothing is uploaded

Differences

+3 lines · −2 lines

11Dear team,
2−The meeting is on Monday at 10am.
2+The meeting is on Tuesday at 10am.
33Please bring the quarterly report.
4−Lunch will be provided.
4+Coffee will be provided.
5+See you there.

How to use Text Compare

  1. 1

    Paste the earlier version into Original text and the newer version into Changed text.

  2. 2

    Choose Lines to compare whole lines or Words to see changes inside sentences.

  3. 3

    Read the highlighted result: green lines marked + were added and red lines marked − were removed.

  4. 4

    Select Copy diff to copy the line comparison as plain text, or Swap sides to reverse the direction.

About this tool

The comparison uses the Myers diff algorithm (through the open-source jsdiff library), the same approach behind git diff. It finds the smallest set of additions and removals that turns the original into the changed text, and everything else is shown as unchanged.

Lines mode is best for code, lists, configuration files and anything structured by line. Each row shows its line number in the original and the changed text, so you can find it again in your editor. If a line was edited, it appears as one removed line followed by one added line. Tick Ignore whitespace to skip differences in indentation and trailing spaces.

Words mode is better for prose such as contracts, essays and articles, where a single edited word would otherwise mark a whole paragraph as changed. Removed words are struck through in red and new words are highlighted in green, inline. Tick Ignore case to skip capitalisation changes.

Both texts stay in your browser; nothing is uploaded, so it is safe to compare confidential drafts.

Questions people ask

How do I compare two Word documents or PDFs?

Copy the text out of each document and paste it into the two boxes. Formatting is not compared, only the words.

What do the colours mean?

Green with a + is text that exists only in the changed version. Red with a − is text that was in the original but has been removed.

Should I compare by lines or by words?

Use Lines for code and lists, and Words for paragraphs of prose, where it pinpoints the exact words that changed.

Is my text uploaded to a server?

No. The comparison runs entirely in your browser and nothing is stored.