Text Diff

Compare two texts line by line.

#text

About the Text Diff

Paste two versions of a text and instantly see what changed, line by line. Added lines are highlighted in green and removed lines in red, with a count of each, so you can review edits at a glance.

It's handy for comparing drafts, config files, logs or code snippets. The comparison runs entirely in your browser, so even sensitive text never leaves your device.

Features

  • Line-by-line comparison of two texts
  • Added and removed lines highlighted
  • Counts of additions and deletions
  • Detects identical inputs
  • Runs entirely in your browser
  • Free with no sign-up and privacy-friendly

How to compare two texts

  1. Paste the original text on the left.
  2. Paste the changed text on the right.
  3. Review the highlighted additions and deletions.
  4. Adjust either side to refine the comparison.

Frequently asked questions

How does the diff work?

It compares the two texts line by line using a longest-common-subsequence algorithm, then marks lines that were added or removed.

Does it compare word by word?

It compares whole lines. To narrow a change, split long lines so differences show on separate lines.

Is my text uploaded?

No. The comparison runs entirely in your browser, so your text never leaves your device.

Is it free?

Yes, completely free with no sign-up.