Diff Checker

Paste the original and the changed version. Differences show up below as you type.

Compared on your device. Nothing is uploaded unless you save.

Differences

Paste the original on the left and the changed version on the right. Differences appear here as you type.

How to read the result

Lines only in the original are red, lines only in the changed version are green. When a line was edited rather than replaced, the specific words (or characters) that changed are marked more strongly, so a single renamed variable or corrected typo stands out in a long line.

Long stretches of identical lines are collapsed to three lines of context around each change. Click Show … unchanged lines to expand one, or untick Collapse unchanged to see everything. Side by side suits wide screens; Unified puts removals above additions in one column, like git diff, and is the default on phones.

Options

  • Ignore whitespace — lines that differ only in indentation, trailing spaces, or tabs versus spaces count as equal. Useful after re-indenting code or converting tabs.
  • Ignore case — SELECT and select match.
  • Highlight — choose word-level (best for prose and most code), character-level (for IDs, hashes, or single-letter typos), or whole lines only.

Copy or download the differences

Copy diff and Download give you a standard unified diff (the same format as diff -u and Git), which you can paste into a ticket, code review or chat, or apply with git apply or patch. You can also drop a file onto either box or use Open file to load one from disk.

Comparing structured data?

A plain line diff is fooled by formatting. If your inputs are JSON, YAML, SQL or CSV, the dedicated JSON diff, YAML diff, SQL diff and CSV diff normalise both sides first, so key order, indentation and line wrapping don't show up as changes. For essays, contracts and other prose, Compare Text diffs word by word and ignores line breaks.

Keyboard shortcuts

  • Ctrl + Enter (⌘ + Enter on Mac) — compare now and jump to the result
  • N / P — next / previous change (when you are not typing in a box)
  • Tab moves between the boxes and controls; nothing traps focus

Is my data uploaded?

No. The comparison runs in your browser, so nothing you add is sent to gratistools.be. It only leaves your device if you sign in and press Save, which stores that one comparison in your account until you delete it. See the privacy page for details.