Text Diff Checker
Compare two texts line by line and highlight additions and deletions instantly. Perfect for code reviews, contract versions, and copy edits. 100% in your browser.
Content is for reference only.
π How to Use
Guide available in English. Machine translation coming soon.
How to Compare Two Texts Online
What This Tool Does
The Text Diff Checker compares two blocks of text line by line and highlights exactly what changed: lines removed from the original, lines added in the modified version, and lines that stayed the same. Paste your two versions, click Compare, and read the changes in a single unified view with line numbers for both sides. Everything is computed locally in your browser with a pure JavaScript diff engine running in a Web Worker β no text is ever uploaded.
Why a Local Diff Tool Matters
Comparing texts is often a privacy-sensitive task: contract drafts, legal clauses, API keys embedded in config files, unpublished manuscripts, internal documentation. Web-based diff tools commonly send both texts to a server for processing. This tool never does. The comparison runs inside your browser's Web Worker, the result exists only in your tab, and nothing is transmitted, logged, or stored anywhere.
How the Comparison Works
The engine computes a line-level longest common subsequence (LCS) between the original and modified texts. Lines present in both are matches; original lines missing from the modified text are deletions (red, β); modified-only lines are additions (green, +). This is the same core algorithm used by version control systems for inline changes, so the output will feel familiar if you have ever read a git diff.
How to Use
- Paste the original text in the left column.
- Paste the modified text in the right column.
- Click Compare. The unified diff view appears below with color-coded changes and dual line numbers.
- Copy the diff as text or download it as a .diff file for archiving.
Good to Know
- Comparison is line-based and case-sensitive: "Hello" and "hello" are different lines.
- Whitespace differences matter β trailing spaces make lines unequal.
- Empty lines participate in the comparison like any other line.
- Very large texts (megabytes) may take a few seconds; the LCS computation is O(nΓm) in the number of lines, which is fast for typical documents but worth knowing for huge logs.
Privacy
Both texts are compared entirely in your browser. No server round-trip, no telemetry, no storage. Safe for contracts, credentials, source code, and any confidential material.
β Frequently Asked Questions
Are my texts uploaded to a server?
No. The comparison runs entirely in your browser inside a Web Worker. Nothing is transmitted or stored.
Is the comparison case-sensitive?
Yes. Lines must match exactly, including case and whitespace, to be treated as unchanged.
How are changes displayed?
In a unified view: red rows with β are deletions from the original, green rows with + are additions in the modified text, and unmarked rows are unchanged lines.
Can I compare very large texts?
Texts up to 5MB are accepted. The diff algorithm is fast for typical documents, but very large logs may take a few seconds to process.