Content

Diff Checker

Compare two blocks of text and see exactly what changed.

2 added1 removed
11 The quick brown fox
2-jumps over the lazy dog.
2+leaps over the lazy dog.
33 Ship it on Friday.
4+And tell the client.

Compared line by line. Nothing you paste is uploaded — the diff runs entirely in your browser.

How it works

A diff answers one question: what changed between two versions? This tool splits both inputs into lines and computes their longest common subsequence — the run of lines that stayed the same — then marks the rest as additions or deletions.

The result is a unified, line-numbered view: green for added lines, red for removed, with counts at the top. Turn on ignore whitespace or ignore case when reflowed or re-cased lines shouldn’t count as real changes.

Everything runs in your browser — nothing you paste is uploaded — so it’s safe for private code and unpublished drafts alike.

Frequently asked

How does this diff checker work?+

Paste your original text on the left and the changed version on the right. The tool splits both into lines and finds the longest common subsequence — the lines that are unchanged — then marks everything else as added or removed. The result is a unified view with green additions, red deletions and running counts.

Can I compare code as well as prose?+

Yes. The diff is line-based, so it works equally well for source code, config files, JSON, Markdown or plain writing. For code where indentation changed but logic didn’t, turn on “Ignore whitespace” to focus on the real changes.

What do the “ignore whitespace” and “ignore case” options do?+

Ignore whitespace collapses runs of spaces and trims each line before comparing, so reflowed or re-indented lines aren’t flagged as different. Ignore case treats “Hello” and “hello” as the same line. Both change only how lines are matched — the text shown is always your original.

Is there a size limit?+

The tool compares up to 5,000 lines per side. Beyond that it shows a notice rather than the diff, because a line-level longest-common-subsequence comparison grows with the product of the two lengths and would get slow. For most documents and files you’ll never hit it.

Is my text uploaded anywhere?+

No. Both blocks of text stay in your browser — the entire comparison runs locally, so you can safely diff private code or unpublished content.

More free tools

All tools

More tools shipping weekly.

See what changed — everywhere

A diff makes every text change obvious. Shotline does the same for a website: pin a before and after on the live page so a fix is proven, not just described.

No signup needed. Free demo canvases stay live for 72 hours.

or start your 14-day free trial — no card required.

Shotline — Diff Checker — free, in-browser