Text Compare / Diff

Compare two texts and see the differences highlighted.

How to Compare Two Texts

  1. Paste the original text — add the first (original) version of your text in the left box.
  2. Paste the modified text — add the second (changed) version in the right box.
  3. Click "Compare" — differences appear highlighted: green for added lines, red for removed lines, grey for unchanged.
  4. Read the summary — the stats line shows how many lines were added, removed, and unchanged.

Frequently Asked Questions

How does the text diff work?
The tool compares two texts line by line at the same position. Lines present only in the original are shown in red (removed), lines present only in the modified text are shown in green (added), and matching lines are shown in grey (unchanged).
Can I compare source code?
Yes — paste two versions of any code file into the panels. The diff highlights exactly which lines changed, making it easy to review code changes, configuration diffs, or log file differences without a full IDE or version control system.
Is there a character or line limit?
No — the tool runs entirely in your browser with no server-side processing. For very large texts (thousands of lines), there may be a brief calculation delay, but there is no hard character or line limit.
What does the diff count show?
The stats bar shows: "X unchanged, Y added, Z removed". Unchanged is lines identical in both texts. Added are lines present only in the modified text. Removed are lines present only in the original.
Is my text sent to a server?
No — all comparison happens in your browser with JavaScript. Nothing is uploaded to any server, making it safe to compare sensitive documents, code, or private text.