Text Diff Tool — Compare Two Texts and Find Differences
+0 added −0 removed ≡ 0 unchanged
Paste two versions of any text to see exactly what changed. Added lines are highlighted green, removed lines red, and unchanged lines appear in between. The comparison runs entirely in your browser — nothing is sent to a server.
How it works
- 1 Paste the original text Type or paste the first (original) version of your text into the left-hand box. This is the baseline you are comparing against.
- 2 Paste the changed text Type or paste the revised version into the right-hand box. This is the text you want to compare to the original.
- 3 Click Compare The diff appears below the boxes. Green lines with a '+' prefix are additions; red lines with a '−' prefix are deletions. The stats above show totals at a glance.
Your data stays private
All processing happens entirely in your browser. No files, text, or data are ever sent to our servers. You can disconnect from the internet and this tool will still work.
Frequently asked questions
- What does the Text Diff tool do?
- It compares two blocks of text line by line and highlights what was added, what was removed, and what stayed the same. This is useful for reviewing edits to documents, code, or any other text.
- Is my text sent to a server?
- No. The comparison runs entirely in your browser using JavaScript. Your text never leaves your device and is not stored anywhere.
- How large can the texts be?
- The tool handles texts up to 2,000 lines each. For very long documents the comparison may take a moment to compute, but most documents are well within this limit.
- Can I compare source code?
- Yes. The diff tool works on any plain text including source code, config files, and JSON. Lines are compared exactly — indentation and whitespace count as differences.
- What do the colours mean?
- Green lines ('+') are in the changed text but not the original. Red lines ('−') are in the original but removed from the changed version. Unmarked lines are identical in both.