A ≠ B
Compare two texts
Paste the original and the changed version to see exactly what was added and removed, highlighted in green and red. Compare by lines for code and lists, by words for documents, or by characters for small edits.
Private: your files never leave your device.
Differences
How was this tool?
How to use Text diff
Step 1: Paste the original text on the left.
Step 2: Paste the changed text on the right.
Step 3: Choose lines, words or characters and read the highlighted differences.
When to compare texts
- Two versions of a contract or policy, to see exactly what changed.
- Configuration files before and after an edit.
- Translations or copy edits returned by someone else.
- API responses or logs from two environments.
Added lines are highlighted in one colour and removed lines in another, with word-level changes inside lines. To compare PDFs, extract their text first with PDF to text.
Frequently asked questions
Which comparison mode should I use?
Lines suits code, CSV and lists; words suits contracts and articles; characters is best for short strings such as names or IDs.
Can it ignore case or spacing?
Yes — tick “Ignore case”, and in line mode “Ignore whitespace” to skip indentation and trailing spaces.
Is my text uploaded?
No. The comparison runs in your browser, so confidential documents stay private.