Colour-coded line diff
Additions, deletions and unchanged lines are visually distinct with left and right line numbers, so you can see exactly what moved rather than hunting through two documents.
Compare two texts line by line and highlight additions and deletions with this text diff checker.
Loading tool…
The tool is loading its code on your device. This happens once and is cached for later visits.
Processed entirely on your device
Overview
Compare two blocks of text online with a line-by-line diff. Additions, deletions and unchanged lines are colour-coded and counted, computed in your browser with no upload.
A text diff answers one question: what changed between two versions of a text? It is the operation behind every code review, every merge conflict and every moment of wondering what you edited an hour ago. Doing it by eye across two documents is slow and unreliable, especially once the change is small and buried in a large file — which is exactly what a diff checker exists to prevent.
This text diff checker compares two blocks line by line, colour-codes additions and deletions, counts what changed, and shows both line-number columns so you can trace any change back to its source. The comparison runs on the longest-common-subsequence algorithm — the same idea behind git diff — computed entirely in your browser.
The standard approach finds the longest common subsequence — the largest set of lines that appear in both versions in the same relative order, though not necessarily next to each other. Every line in that subsequence is unchanged; lines present only on the left are deletions and lines present only on the right are additions. It is the same idea git uses, and it produces the minimal-looking edit script people expect from a diff.
The two number columns are the line's position in the left and right documents, so you can jump back to the original when a change matters. The summary counts at the top tell you the size of the change at a glance, which is frequently the only thing you needed to know.
An exact longest-common-subsequence comparison builds a table whose size is the product of the two line counts, which grows fast. To stay responsive this diff first peels away the shared prefix and suffix — the unchanged head and tail that most real edits have — and only runs the quadratic core on the genuinely different middle. If that middle is still enormous it falls back to presenting the block as a wholesale replacement and says so, rather than hanging the browser.
Diffs can operate at different granularities. A line diff, which is what this is, treats each line as an atomic unit and is the convention for source code and prose. A word or character diff highlights the exact span that changed inside a line, which is nicer for legal text and copy editing but noisier for code. Line-level output is the best general default, and it is what version control shows you.
The everyday cases rarely involve source control: comparing two versions of a contract clause, checking whether a CMS export really changed, verifying a migration script rewrote a config the way it claimed, reviewing a translated document against the original, or settling "I only changed one thing" with evidence. A text comparison tool answers each in seconds. Paste the original on the left, the new version on the right, press compare, and read the coloured lines — the count summary at the top is often the entire answer.
The texts people compare are frequently the texts people must protect: contracts, unpublished copy, internal configs, credentials that leaked into a log. This diff checker computes everything locally in the tab — no upload, no server-side comparison, no retention. That is not a small detail for a text comparison tool; it is the difference between a safe utility and a data leak wearing a utility's clothes.
A diff checker tells you what changed. A compare tool is the same thing under another name. A merge tool goes further: it helps you combine two changed versions into one, resolving conflicts as you go. This tool is deliberately the first kind — paste two texts, see the difference, no repository required. When you need three-way merges, blame annotations and history, that is version control's job; when you need to know whether two texts differ and where, a text diff is the whole answer.
Step by step
Paste the original text into the left panel and the changed version into the right.
Press Compare to run the line-by-line diff.
Read the colour-coded result: green lines were added, red lines were removed.
Check the added, removed and unchanged counts, then adjust and compare again.
Why use it
What this tool is good for, and what it deliberately does not try to do.
Additions, deletions and unchanged lines are visually distinct with left and right line numbers, so you can see exactly what moved rather than hunting through two documents.
The number of added, removed and unchanged lines is summarised at the top, which is often the whole answer when you just need to know how big a change was.
Shared prefix and suffix lines are peeled off first and an oversized changed block falls back to a wholesale replace, so a big paste never freezes the tab.
Contracts, configs and source code are compared in your browser, so sensitive text is never transmitted to a server.
Questions
Short, honest answers about quality, limits and privacy.