Free Tool · In-Browser · No Upload

Diff Checker

Compare two blocks of text or code and see exactly what changed — added, removed and edited lines, with the changed words highlighted — without anything leaving your browser.

100% free no signup Zero data uploaded No ads or trackers
View
Original
Changed
Try an example:
Recent on this device

Nothing saved yet. Your recent inputs appear here — stored only in this browser, never uploaded.

Your data never leaves your browser

This tool runs entirely in your browser. There is no upload endpoint on this page — your input is processed locally with native browser APIs, and nothing is sent to a server or logged. Open your browser's network panel and check: the only request is the page itself.

How it works

Three steps, no surprises

1

Paste both versions

Drop the original on the left and the changed version on the right. It compares them the moment you stop typing.

2

Pick a view

Read it side by side or as a single unified column. Toggle ignore whitespace or ignore case to hide differences that do not matter.

3

Copy, download or share

Copy a standard unified patch, download it as a .diff, or grab a share link that carries both sides in the URL — never on a server.

FAQ

Diff Checker questions, answered

What does this diff checker do?

It compares two blocks of text and shows you exactly what changed between them. Lines that were added show in green, lines that were removed show in red, and unchanged lines stay neutral so you can see them in context. Where a line was edited rather than added or removed wholesale, it highlights the specific words that changed within that line, so a one-character tweak does not look like the whole line was rewritten. It is handy for comparing two versions of a config file, a contract, some code, or any two pieces of text.

Does it compare line by line or word by word?

Both, working together. The comparison is primarily line based — it works out which lines were added, removed or left unchanged. Then, when a removed line and an added line clearly correspond to one another (an edit rather than a wholesale replacement), it runs a second, word-level comparison inside that pair and highlights just the words that differ. So you get the big picture from the line view and the fine detail from the inline word highlights at the same time.

What do “ignore whitespace” and “ignore case” do?

They let you ignore differences that often do not matter. With “ignore whitespace” on, lines that differ only in their leading or trailing spacing are treated as the same line, and a blank line and a line of only spaces count as equal — which is exactly what you want when one version has simply been re-indented. With “ignore case” on, “Hello” and “hello” count as identical. Turn both off for an exact, character-for-character comparison; turn them on to focus only on the changes that are meaningful to you.

What is the difference between split and unified view?

They show the same comparison two ways. Split view puts the original on the left and the changed version on the right, side by side, which is the easiest way to read a before-and-after. Unified view stacks everything in a single column — removed lines then added lines, the way a Git diff or a code review looks. Split is friendlier for prose and config; unified is more compact and familiar if you spend your day in pull requests.

Is my text uploaded anywhere?

No. The comparison runs entirely in your browser using JavaScript — nothing you paste is sent to a server, which you can confirm in your browser’s network panel. The optional share link stores both blocks of text in the URL itself rather than on a server, and the on-device history can be cleared whenever you like. Your text stays on your machine.

Can I compare code or large files?

Yes. It treats everything as plain text, so it works just as well on source code, JSON, CSV, logs or prose. Because it all runs in your browser, very large inputs (tens of thousands of lines) will be slower than a desktop diff tool and the rendered output is capped so the page stays responsive. For everyday comparisons — two versions of a file, a snippet before and after an edit — it is instant.

Need help with your website's SEO?

Book a free consultation with our London team.

Book a Free Consultation