1. Home
  2. Text
  3. Text Diff

Text Diff

Compare two texts by line, word or character and see what changed.

Runs in your browser · No upload
Word mode ignores differences in the amount of whitespace between words.
Added (words)
+11
Removed (words)
−5
Differences
The meeting starts at 10:30 a.m. on MondayTuesday. It will be held in Room 301. Please bring your laptop and last week's notes. Let us know by Friday if you can attend.
Green = added, red strikethrough = removed

How to use

  1. Paste the original text on the left (Original) and the edited version on the right (Changed).
  2. Under Compare by, choose lines, words or characters. The differences appear below right away.
  3. Green marks text that was added in the changed version, and red with strikethrough marks text that was removed from the original.
  4. Use Copy to take the comparison with you as plain text.

Choosing what to compare by

Unit How it compares Best for
Lines Whole lines. If even one letter changes, the whole line shows as removed and added again Code, config files, lists
Words Words and punctuation marks Contracts, articles, essays and other ordinary writing
Characters Every single character Typos, IDs and serial numbers, short phrases

Example

If you change The meeting starts at 10 a.m. on Monday. to The meeting starts at 10:30 a.m. on Tuesday., you get:

  • Words: :30 added after 10, Monday removed and Tuesday added
  • Characters: :30 added, and only Mon → Tues marked, since day is the same in both
  • Lines: the whole first line removed and the new line added

Options and copy format

  • Ignore case treats Hello and hello as the same. Parts that match are shown as written in the changed text.
  • Ignore leading/trailing spaces (line mode) treats lines that differ only in indentation or spaces at the end as the same. Word mode always ignores differences in how many spaces sit between words.
  • In line mode, copied output marks each line with + (added), - (removed) or two spaces (unchanged). In word and character mode it uses the [-removed-]{+added+} notation from git diff --word-diff.
  • Windows (CRLF) versus Mac and Linux (LF) line endings, and whether there’s a line break at the very end, aren’t counted as differences.

FAQ

Why does a moved line show up twice?

The comparison follows the order of the text, so a line that moved shows as removed in one place and added in another. To compare lists regardless of order, sort both with sort lines first.

Is there a size limit?

There’s no fixed limit, but comparing two long, very different texts can take a while. If it takes more than about 1.5 seconds, the tool stops and suggests switching to line mode or comparing smaller pieces.

Is my text sent anywhere?

No. The comparison runs entirely in your browser and nothing is sent to a server, so it’s safe to use for contracts and internal documents.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.