Create & Write

Text Diff

Two versions, and you cannot tell what changed? Paste both and see what was added and removed, by line, word or character.

Compare by

Paste two texts to see what changed.

Your texts stay on your device. They are compared in your browser and are not uploaded, saved or logged.

How to use it

  1. Paste the original text on the left and the changed text on the right.
  2. Choose to compare by lines, words or characters.
  3. Read the result: green marks added text and red marks removed text. Each change also has a + or − sign, so it is clear without color.

Which mode should I use?

  • Lines is best for lists, code, configuration files and anything where whole lines change.
  • Words is best for articles and documents, to see which words were edited.
  • Characters is best for short texts, such as spotting a single typo in a name or a link.

Good to know

  • The result shows the smallest set of changes it can find between the two texts.
  • Moved text appears as a removal in one place and an addition in another.
  • “Copy the differences” gives plain text: lines start with + or - in line mode, and changes are marked {+added+} and [-removed-] in the other modes.
  • Each text can be up to 100,000 lines, words or characters. If two texts are completely different, every item is shown as replaced.

Tested, not guessed

Every number below comes from running this tool, not from a guess.

Example

Comparing two short versions line by line gives:

- The quick brown fox
+ The quick red fox
  jumps over the lazy dog.
- It was a sunny day.
+ It was a rainy day.
+ The end.

That is 3 lines added, 2 removed and 1 unchanged. A line starting with + is new, and one with – is gone.

How fast it is

We timed the real code in Chrome 153.0.8010.12. Working on 5,000 lines, 250 changed, it took about 5 milliseconds (median of 5 runs, on a 2-core cloud server). Your phone may be slower, but nothing here waits for a server.

Limits

  • Up to 100,000 lines, words or characters on each side. If the two texts are very different, every item is shown as replaced.

Frequently asked questions

Is my text uploaded?

No. The comparison runs entirely in your browser.

Can I compare two files?

Open each file in a text editor, copy the text, and paste it into the two boxes. The tool compares text, not file formats such as Word or PDF.

What does “Ignore extra spaces” do?

It treats runs of spaces and tabs as a single space, and ignores spaces at the start and end of a line, so changes in spacing alone are not reported.

Why are line endings not a difference?

Windows and Mac line endings are treated as the same, so text copied from different systems compares cleanly.

Scroll to Top