Use code SYNTH20 for 20% off Premium AI automation systems for agencies and operators Ready to deploy Use code SYNTH20 for 20% off Premium AI automation systems for agencies and operators Ready to deploy Use code SYNTH20 for 20% off Premium AI automation systems for agencies and operators Ready to deploy Use code SYNTH20 for 20% off Premium AI automation systems for agencies and operators Ready to deploy

/ Tool 20

Text Diff Checker

Paste two versions of a document, code or prompt — get an exact LCS diff with a similarity score, side-by-side or unified, 100% in your browser.

100% Private & Client-Side: Documents are compared locally — nothing leaves your browser Ready

Documents

A — Original
B — Revised
Presets

Comparison

+ 0 added − 0 removed = 0 identical ~ 100% similar

The comparison uses a longest-common-subsequence algorithm over words, lines or characters. Very large inputs are capped (about 30 million token comparisons) — switch to a coarser granularity or shorten the documents if you hit the limit.

How It Works

01

Paste Two Versions

Put the original in A and the revised version in B — or load a one-click preset (Code Refactoring, Prompt Versioning, Legal Redline) and start editing.

02

Pick a Granularity

Words for prose, lines for code and config, characters for tight redlines. The LCS algorithm aligns the longest common subsequence so changes land exactly where they happened.

03

Read & Export

Switch between side-by-side and unified views, check the added / removed / identical counts and similarity score, then copy the diff as HTML or export a Markdown report.

Note: very large inputs are capped at about 30 million token comparisons — switch to a coarser granularity if you hit the limit.

How to Use the Text Diff Checker

Paste or load two texts — or use one of the one-click presets that pair a common before/after scenario — and the tool computes the difference with an LCS (longest common subsequence) algorithm, so the result is the minimal set of changes, the same precision git diff gives you for code. Switch the granularity: words for prose and copy, lines for documents and logs, characters for the surgical case.

Two views cover the two ways people read a diff. Side-by-side shows the old and new text in parallel columns with changed segments highlighted in place. Unified shows the classic single-column format with additions and removals marked, which is what you want when pasting the change into a review or a commit message. A similarity score at the top tells you at a glance whether the two versions are close cousins or unrelated documents.

Download the result as a unified diff file when you need the change to survive the chat window — it drops straight into patch tools, review threads, or your editor's apply-paste flow. Because the comparison runs locally, you can diff client documents, unreleased copy, or internal specs without either version crossing the network.

Why This Runs 100% in Your Browser

The texts people diff are frequently things that should not be pasted into a random web form: contract drafts, unreleased product copy, credentials-free but still internal configuration. A hosted diff service receives both full versions, not just the delta, and retains them under its own policy. This checker computes the LCS entirely in your browser — neither side is transmitted, and the downloaded diff is generated locally from your two inputs.

Code & CLI Equivalents

The LCS line diff is exactly what diff -u computes. The browser tool adds the word/character granularities, the similarity score, and the visual side-by-side; for pipelines, the CLI is the drop-in equivalent.

# bash — unified diff

# classic unified diff (LCS-based, same minimal changes)
diff -u old.txt new.txt

# colored output via git's engine — works without a repo
git diff --no-index --color old.txt new.txt

Frequently Asked Questions

What is the difference between the three granularities?

Words compares token-by-token and is the right default for prose and marketing copy. Lines compares whole lines, which is what you want for documents, configs, and logs. Characters is the surgical level for when a single-word change needs to be pinpointed exactly.

Why does it use LCS instead of a simpler comparison?

LCS finds the smallest set of changes that turns one text into the other — the same algorithm family git diff uses. Simpler line-by-line equality checks produce noisy, oversized diffs; LCS gives the minimal, readable change set.

What is the similarity score for?

It is a single number summarizing how much of the two texts is shared, computed from the LCS length relative to the inputs. Use it as a sanity check: a high score means a light revision, a low score means the "edit" is effectively a rewrite.

Can I use it for code?

Yes — paste two code snippets and use line granularity for the standard code-review view, or word granularity for a tighter view of logic changes. The downloadable unified diff works with the same patch tooling you already use.

Are the two texts uploaded?

No. The LCS computation, the scoring, and the diff export all run in your browser. Neither version is transmitted or logged, which is why it is safe for drafts and internal documents.