Diff Checker

Compare two texts or code snippets and see exactly what changed

Ignore whitespace
Ignore case
Original

empty

Changed

empty

Compared entirely in your browser — nothing is uploaded
How to Compare Text

Spot every change between two versions in four steps.

1
Paste both versions

Drop your original text on the left and the changed text on the right — code, config, JSON, prose, anything.

2
Tune the comparison

Toggle “Ignore whitespace” or “Ignore case” if you only care about meaningful changes.

3
Read the differences

Added lines are green, removed lines are red, and changed lines highlight the exact words that moved.

4
Copy or share

Switch to the unified view and copy a standard +/- diff to paste into a PR, ticket, or email.

Frequently Asked Questions

Common questions about comparing text and code.

No. The comparison runs entirely in your browser using JavaScript — nothing is sent to a server, logged, or stored. You can disconnect from the network and it still works.

Side-by-side shows the original and changed text in two aligned columns, which is easiest for reading. Unified view shows a single column with -/+ prefixes (the format Git and code reviews use), which is best for copying into a pull request or ticket.

It treats runs of spaces and tabs as equal and ignores leading/trailing whitespace when comparing lines, so reindentation or trailing spaces won't show up as changes. The original spacing is still displayed.

Yes. When a line is changed rather than fully added or removed, the tool runs a second word-level diff and highlights only the words that actually differ, so small edits are easy to spot.

Yes — it's line-based, so it works for any plain text including source code, JSON, YAML, CSV and logs. Very large inputs (tens of thousands of lines) compare more slowly because matching is done in the browser.

Related Tools
Discover similar utilities

Regex Tester