💻

Diff Checker

Compare two blocks of text

Differences

About this tool

This free Diff Checker compares two pieces of text and shows you exactly what changed — line by line, with additions, deletions and modifications highlighted in clear colors. Paste the original into one side, the new version into the other, and every difference surfaces instantly: what was added, what was removed, what moved. Nothing to install, no account needed; the comparison runs as you type. Comparing two versions by eye is a task humans are remarkably bad at. Our brains skim past the changed word inside an identical-looking paragraph, miss the deleted line in the middle of a block, and 'see' the version we expect rather than the one on the screen. A diff algorithm does the opposite: it mechanically aligns both texts and reports every difference with certainty — which is why comparing contract revisions, config changes, code edits, and content updates by eye produces mistakes, and running them through a diff produces answers. The workflows this tool fits are the everyday ones: checking what changed between two versions of a document or article; verifying what an edit actually touched in a config file or script before you deploy it; comparing two drafts of copy to see the editorial changes at a glance; reviewing AI-generated rewrites against the original; confirming a 'small fix' really is small; and resolving which of two file versions is newer. In every case, the value is the same — certainty about what differs, in seconds. Everything runs locally in your browser. Both texts are compared entirely by client-side JavaScript — nothing is uploaded, logged or stored on any server. The texts you compare often contain exactly what you should not paste into random websites: contract drafts, proprietary code, internal configs, unreleased content. Here they never leave your device; disconnect from the internet after the page loads and the comparison keeps working.

Frequently asked questions

How do I compare two texts with this tool?+

Paste the original version into the first panel and the changed version into the second — the diff renders instantly, highlighting every line that was added, removed or changed. No button to press; the comparison updates live as you edit either side. Lines unique to the left show as deletions, lines unique to the right show as additions, and matching context lines stay neutral so the changes stand out.

What do the colors in a diff mean?+

The convention every developer's tooling follows: green (or marked +) lines exist only in the second text — additions; red (or marked −) lines exist only in the first — deletions; uncolored lines match in both texts and serve as context so you can see where the changes sit. A modified line often appears as a red line followed by its green replacement — that pair is one logical change.

Is comparing text here safe for confidential documents?+

Yes, completely — and for a diff tool this matters more than usual. The comparison runs entirely inside your browser using client-side JavaScript: your texts never leave your device, are never transmitted to any server, and are never logged or stored. After the page loads you can disconnect from the internet and it works identically. Contracts, proprietary code, internal configs and unreleased content can all be compared with confidence.

Can this tool compare code and config files?+

Yes — line-based diffing is exactly how code comparison works, and this tool applies the same logic to any text: scripts, JSON, YAML, .env files, SQL, markup. Changes render line by line, so a one-character fix shows as one changed line, and refactors show as their true footprint. The one caveat: line endings matter — if everything shows as changed, the two texts likely differ between Windows (CRLF) and Unix (LF) line endings.

Why does my diff show everything as changed?+

The almost-always culprit is invisible difference, not real difference: one text uses Windows line endings (CRLF) and the other Unix (LF); one has trailing spaces the other lacks; or indentation switched between tabs and spaces. These differences are real to the comparator but invisible to your eyes. Normalizing both texts to the same line-ending and indentation style before comparing fixes the noise instantly.

What is the difference between this and a word-level diff?+

This tool compares line by line — the standard for code, configs and structured text, where a line is the natural unit of change. Word-level diffing highlights the specific word that changed inside a modified line, which suits prose editing. For most workflows, line diffing is what you want; the red-line-then-green-line pattern shows precisely what a modification replaced, which reads clearly even without word-level highlighting.

Does this tool save or upload the texts I compare?+

No. The comparison runs entirely in your browser using client-side JavaScript — nothing is transmitted, logged or stored on any server, and nothing persists after you close the tab. Both texts exist only in your browser's memory while the page is open. Refresh and they are gone; nobody, including this site, has any record of what you compared.

Can I compare more than two texts, or merge the differences?+

This tool compares exactly two texts — the workflow the vast majority of diffing needs: original versus new, mine versus theirs, before versus after. For three-way comparisons (a base version plus two changes), the usual approach is two sequential comparisons against the base. Merging differences into one text is a separate operation — here the goal is seeing the differences clearly, and you apply the changes in your editor.