Text Diff

Compare two texts side by side

Paste two blocks of text and instantly see a line-by-line diff with added, removed and unchanged lines highlighted — perfect for spotting edits.

Original
Changed
0 added 0 removed0 unchanged

Paste text in both boxes to see the differences highlighted here.

About the text diff

The text diff tool compares two pieces of text and highlights exactly what changed between them. Paste your original text on the left and the revised text on the right, and the tool walks the longest common subsequence of lines to produce a clean, ordered diff. Added lines appear in green, removed lines in red, and unchanged lines stay neutral.

Use it to review edits to articles, compare two versions of a config file, check what changed between drafts, or spot accidental differences in copied text. Toggle case-insensitive and whitespace-insensitive comparison to focus on meaningful changes only.

How the comparison works

  • Line-by-line — each line is compared as a unit, like a code diff.
  • Added lines — present in the new text but not the original.
  • Removed lines — present in the original but not the new text.
  • Options — ignore letter case and trailing/extra whitespace.

How to use the text diff

  1. Paste the original text

    Add the first version of your text into the left box.

  2. Paste the changed text

    Add the second version into the right box — the diff appears below instantly.

  3. Tune the options

    Toggle case or whitespace insensitivity to focus on real changes, then copy the diff if you need it.

Frequently asked questions

Does the diff tool compare word by word or line by line?
It compares line by line, like a standard code diff. Lines that exist only in the new text are marked as added, and lines only in the original are marked as removed.
Can I ignore case and whitespace differences?
Yes. Toggle "Ignore case" to treat upper and lower case as equal, and "Ignore whitespace" to collapse extra spaces and ignore trailing whitespace before comparing.
Is my text uploaded anywhere?
No. The comparison runs entirely in your browser — your text never leaves your device.
Is there a size limit?
There is no hard limit, but very large inputs (tens of thousands of lines) may slow down the comparison since it builds a full line-by-line table.
Is the text diff tool free?
Yes, it is completely free and requires no account or sign-up.

Other utilities