Diff Checker
Compare two texts side by side. Merge selected changes, export a unified patch, or save a project and reopen your review later.
Still loading. If the tool doesn’t appear, reload this page.
Planned features and workflows
- Multi-Document Comparison
Coming soon
- Clause Comparison Dossiers
Coming soon
About this tool
Diff Checker
Compare two texts side by side or unified, with changed words or characters highlighted inside each line, similarity %, ignore options and a downloadable report.
Diff Checker compares two versions of text with a longest common subsequence (LCS) line alignment — the algorithm behind Unix diff — then highlights the changed words or characters inside each edited line and scores similarity as the Dice coefficient over words: twice the shared word count divided by the total word count of both versions. Inserted or deleted lines stay aligned instead of shifting everything below them, unchanged lines carry their line numbers on both sides, and you can switch between a side-by-side and a unified view. Case, whitespace, numbers, dates, emails and URLs can be ignored for the comparison without altering the text you see. It all runs in your browser, up to 1,500 lines per side.
How to use Diff Checker
Paste or open the original text in the Before box and the changed version in the After box; the comparison updates as you type, with line, word and character counts under each box.
Tick Ignore case or Ignore whitespace, or ignore numbers, dates, emails or URLs; choose Line, Word or Character highlighting and the Side by side or Unified layout.
Use Previous change and Next change to review edits. Choose Review changes to make a merged draft, or download a report or unified patch for the full comparison.
Why use Diff Checker
Aligned rows, not shifted lines
An LCS alignment pairs each line with its counterpart, so adding one line near the top shows one addition rather than marking every following line as modified.
Inline word or character highlights
Edited lines show the words — or, in Character mode, the letters — that changed, so a one-word fix does not look like a rewrite. Lines that share under 30% of their words are shown as replaced.
Similarity, churn and plain-language counts
Every comparison reports similarity and churn over words, lines changed, added, removed and unchanged, and a one-sentence summary built from those counts.
Texts and report handled in the browser
The diff, the files you open and the downloadable report are all handled in your browser. Saved versions stay in this browser's local storage until you delete them.
Jump between changes
Previous change and Next change highlight a changed, added or removed row and show its line numbers in either layout.
Merge selected changes
Review each difference and choose which rows to apply to a copy of Before. Preview, copy or download the finished draft.
Common use cases
- Checking exactly what an editor or client changed between two drafts — for example that only 'within 14 days' became 'within 30 days' on line 2
- Reviewing a config, JSON payload or code snippet against a known-good copy when there is no git history to diff against
- Comparing two exports or log extracts while ignoring the IDs, dates or timestamps that always differ, so only real changes show
- Keeping a short history of drafts in your browser and re-comparing any saved version against the latest one
- Accepting a few edits from a revised document while keeping the rest of the original draft
Frequently asked questions
How do I compare two texts and find the differences?
Paste the original into the Before box and the changed version into the After box — there is no Compare button; the diff updates as you type. Added text is highlighted green and underlined, removed text red and struck through, and each changed line is aligned with the line it replaced.
Link to answerIs my text uploaded or stored anywhere?
No, nothing is uploaded — the comparison runs entirely in your browser. Text is only stored when you click Save version, which keeps the Before/After pair in this browser's local storage (the newest 10); Delete or Clear history removes it.
Link to answerWhat algorithm does this diff checker use?
A longest common subsequence (LCS) dynamic program, the classic technique behind Unix diff. A first pass aligns the two texts line by line; a second LCS pass runs on each replaced line to find the changed words or characters inside it.
Link to answerWhy doesn't inserting one line mark everything below it as changed?
Because lines are matched by content, not by position. The LCS alignment finds the longest run of lines the two versions share, so an inserted line shows as one addition and the lines after it stay paired with their originals.
Link to answerCan I highlight changes word by word or character by character?
Yes — the Highlight menu offers Line, Word and Character. Rows always stay aligned by line; Word marks the changed words inside an edited line and Character marks the changed letters. When two paired lines share less than 30% of their content, the whole line is shown as replaced.
Link to answerWhat do the similarity and churn percentages mean?
Similarity is twice the number of shared words divided by the total words in both versions, so identical texts score 100%. Churn is words added plus words removed over the same total. The two always sum to 100% — 75% similarity means 25% churn.
Link to answerWhat do the ignore options do?
They change what counts as equal without changing the text you see. Ignore case compares letters case-insensitively; Ignore whitespace collapses runs of spaces and tabs and trims line ends. Numbers, dates, emails and URLs are each treated as one interchangeable value, so 'Order 1001' matches 'Order 2002'.
Link to answerHow large a text can it compare?
Up to 1,500 lines per side; a warning appears above 1,200 lines. The line alignment builds a table of about 2.25 million cells at that size. When the word-level pass would exceed the same budget, similarity is shown as an estimate marked ≈ and very long changed lines are shown as full replacements.
Link to answerCan I compare two files?
Yes — Open file under each box loads a text file such as .txt, .md, .csv, .json or .js (up to 2 MB) straight into that box in your browser. You can also paste the contents, and Copy puts either box back on your clipboard.
Link to answerCan I download or copy the diff result?
Yes. Download report saves diff-checker-report.txt with the similarity, churn and line counts followed by every line prefixed '+ ' (added), '- ' (removed) or two spaces (unchanged). Copy Markdown copies the side-by-side comparison as a Markdown table for a ticket or pull request.
Link to answerCan I merge only selected changes in Diff Checker?
Open Review changes and use Previous change or Next change to highlight an edit. Check Include current change to apply the full line addition, replacement or removal. Rows that are skipped or compare as equal keep their Before text. Preview, copy or download the merged draft as a text file.
Link to answerCan I save and reopen a Diff Checker project?
Use Save project to download both texts, the comparison settings, layout and selected merge changes as JSON. Open project loads the file back into the browser, replacing the current comparison. Project files can be up to 8 MB and are processed locally.
Link to answerHow do I export a unified patch?
Select Download patch to download diff-checker.patch for document.txt. The patch uses the current Before and After text, including differences hidden by the ignore options.
Link to answer