Why compare text?
Comparing two versions of a document is one of the most common tasks in writing, coding, and editing. Whether you're reviewing contract revisions, checking code changes, or verifying that a translation matches the original structure, a diff tool saves you from reading both versions word by word.
How it works
Paste your original text on the left and the modified text on the right. The tool uses a line-level diff algorithm to identify:
- Added lines — highlighted in green, present in the right but not the left
- Removed lines — highlighted in red, present in the left but not the right
- Changed lines — shown with character-level highlighting so you can see exactly which words or characters differ
- Unchanged lines — displayed normally for context
A summary bar at the top shows total additions, deletions, and unchanged lines at a glance.
Use cases
- Writers & editors — Compare drafts to see what an editor changed
- Developers — Quick diff when you don't have Git handy
- Legal teams — Spot changes between contract versions
- Students — Verify your notes against a classmate's
- SEO & content — Check what changed between page revisions
Privacy
Both texts stay in your browser. Nothing is sent to any server. The diff algorithm runs entirely in JavaScript on your device. Close the tab and your data is gone.
Try it now: Open Text Diff — free, instant, no sign-up required.