Text diff checker

Paste the original text on the left and the changed version on the right. The tool shows every added, removed and changed line, and highlights the exact words that changed within a line. Switch between side-by-side and unified views, ignore case or whitespace, and copy the result as a diff. Your text never leaves your browser.

Free, no sign-up Runs in your browser

Differences

Lines added
0
Lines removed
0
Lines changed
0

How to compare two texts

  1. Paste the original in the left box and the changed version in the right box.
  2. Read the differences. The comparison updates as you type. Removed lines are marked with −, added lines with +, and within a changed line the exact words that differ are highlighted.
  3. Choose a view. Side by side puts the two versions next to each other (one above the other on a phone). Unified shows one column, like the output of diff -u or a code review.
  4. Copy the diff if you want to share it or apply it as a patch.

What the options do

OptionEffectUse it when
Only show changesHides unchanged lines, keeping 3 lines of context around each change.Long documents with a few edits.
Ignore case"Invoice" and "INVOICE" count as the same.Only the wording matters, not capitals.
Ignore whitespaceSpaces and tabs are left out of the comparison.Code that was re-indented, or text with double spaces.
Ignore blank linesEmpty lines are skipped on both sides.Paragraph spacing changed but the text didn't.

How the comparison works

The tool uses the Myers diff algorithm, the same approach behind git diff and the classic Unix diff. It finds the smallest set of lines to remove and add that turns the original into the changed text. That's why a moved paragraph shows as removed in one place and added in another: the algorithm reports edits, not moves.

When a block of removed lines is followed by added lines, they are paired up as changed lines, and a second, word-level comparison highlights exactly which words differ. A single changed number or comma is easy to spot even in a long line.

Worked example

Original: "Payment is due within 30 days." Changed: "Payment is due within 15 days." The tool reports 1 changed line and highlights only 30 → 15. The unified diff reads:

@@ -1 +1 @@
-Payment is due within 30 days.
+Payment is due within 15 days.

Good uses for a diff checker

  • Contracts and terms. Check what a client changed in an agreement before you sign it.
  • Writing and editing. Compare two drafts of an article, essay or cover letter.
  • Code and configuration. Spot the difference between two versions of a config file or a snippet. Format JSON first with the JSON formatter so the lines line up.
  • Data checks. Compare two lists, such as exported email addresses or product codes, to find what was added or removed. Sorting both lists first gives a cleaner result.

Large texts

The comparison runs in your browser and waits until you pause typing, so the page stays responsive. Texts of several thousand lines compare in a fraction of a second. Each side is limited to 20,000 lines; anything after that isn't compared, and the tool tells you. If two long texts have almost nothing in common, the differing part is shown as removed and re-added rather than matched line by line.

Private: your text stays on your device

Nothing you paste is uploaded. The comparison happens in your browser, and it keeps working offline once the page has loaded. That makes it safe for contracts, private notes and code that isn't public.

Frequently asked questions

Is this diff checker free?
Yes. It's free with no sign-up and no limit on how often you use it. Each side can be up to 20,000 lines.
Is my text uploaded or saved?
No. Both texts are compared in your browser. Nothing is sent to a server or stored.
What is the difference between side-by-side and unified view?
Side by side shows the original and the changed text next to each other. Unified shows a single column with removed lines marked − and added lines marked +, like the output of diff -u or git diff.
Why is a moved paragraph shown as removed and added?
The diff algorithm finds the smallest set of removals and additions. It doesn't detect moves, so moved text appears as removed in its old place and added in its new place.
Can I compare code or JSON?
Yes. Use the whitespace option to ignore re-indentation. For JSON, format both versions the same way first so that matching keys line up.

Last updated . How we check our tools.