Text Diff

Compare two text blocks side by side and see exactly what changed.

Paste two versions of a text and see line- and character-level differences highlighted side by side. Same algorithm family as git diff, but running in your browser with no need to commit anything.

Common use cases: comparing two emails or contract drafts, finding what changed between two pasted code snippets, spotting differences in copied configuration files, and reviewing edits to a document without firing up a full version-control tool.

Original

Modified

Frequently asked questions

What kind of diff algorithm is used?
A standard Myers-style line and character diff — the same family of algorithms that git diff uses. Common subsequences are identified, then additions and removals are surfaced around the unchanged anchors.
Will it handle very large texts?
Up to a few MB cleanly. Past that, diffing in the browser starts to drag because the algorithm is roughly O(N×D) — fine for source files and articles, slow for huge log files. For massive inputs, use diff on the command line.
How are whitespace differences shown?
Whitespace is treated as content by default — adding a space is a real change. There's usually an option to ignore whitespace-only differences for cases where you're comparing reformatted code or copy-pasted text with stray indentation.
Can I diff JSON or other structured data?
You can, but a textual diff isn't aware of structure — reordering JSON keys produces a noisy diff even though the data is identical. For semantic JSON diffing, format both sides identically first (paste into the JSON formatter), then diff the canonical forms.