Text Diff & Compare

Compare two texts line by line and see what changed — added and removed lines, colour-coded. Runs entirely in your browser.

📖 Read the guide: How to Compare Two Texts →

Original
Changed
Differences

How it works

1
Paste both versions
Put the original text on the left and the changed text on the right.
2
Compare
A line-by-line diff highlights added and removed lines.
3
Read the changes
Green lines were added, red lines were removed, unchanged lines are shown for context.
4
Copy
Copy the diff to paste into a review or note.

Frequently Asked Questions

It finds the longest common sequence of lines, then marks the rest as added or removed — the same idea as a git diff.

Yes — enable “ignore leading/trailing spaces” so indentation changes don’t show as differences.

No — the comparison runs in your browser, so nothing is sent anywhere.

Compare two blocks of text online and free. The diff works line by line — finding the longest common sequence and marking the rest as added or removed — so you can instantly see what changed between two versions of a config, a document or some code. Optionally ignore leading and trailing whitespace. Everything runs in your browser, so your text stays private and nothing is uploaded.