Text & Writing Tools
Text Diff Checker
Compare two versions of a text and see exactly what changed. Paste or open both versions, then view added, removed and changed lines, words or characters side by side or in a unified view.
Runs in your browser
Features
What you get
Line, word or character
See which lines changed, then exactly which words or characters inside them — down to a single changed letter or emoji.
Side by side or unified
Two aligned columns, or one column with − and + lines like git diff. Unchanged stretches collapse so you can focus on the changes.
Ignore what doesn't matter
Ignore letter case, leading/trailing spaces, all whitespace, blank lines or Windows vs Unix line endings — without changing your text.
Accessible highlighting
Changes are marked with −/+ symbols, strikethrough and underline as well as colour, and labelled for screen readers.
Honest statistics
Lines added and removed, changed sections and character counts — with a note whenever ignore options exclude differences.
Copy and download
Copy a standard unified diff or the modified text, or download the comparison as a .diff file.
How to use
How to use the Text Diff Checker
Lines are compared with Myers' O(ND) difference algorithm — the method behind most diff tools — using its linear-memory variant, so large documents don't exhaust memory. Changed line pairs are then compared word by word or character by character; characters are grapheme clusters, so emoji and accented letters are never split. Ignore options only change how lines are compared — your texts are never modified, and the comparison runs in a background worker so the page stays responsive.
- 01
Add both versions
Paste the original on the left and the modified text on the right, or open two text files.
- 02
Choose how to compare
Pick line, word or character highlighting and side-by-side or unified view, and any ignore options.
- 03
Review and export
Read the highlighted changes and statistics, then copy the unified diff or download it.
Examples
Worked examples
A changed word
“Shipped in August” → “Shipped in July” shows one changed line with only August and July highlighted.
Formatting-only changes
Re-indented code or a file saved with Windows line endings shows no differences once you ignore whitespace or normalize line endings.
Contract versions
Paste two versions of an agreement, choose word mode and hide unchanged lines to see every edited clause.
Technical specifications
- Algorithm
- Myers O(ND), linear-space bisection
- Granularity
- Line · word (Intl.Segmenter) · character (grapheme clusters)
- Views
- Side by side · unified
- Ignore options
- Case, leading/trailing whitespace, all whitespace, blank lines, line endings
- Export
- Unified diff (.diff), modified text
- Max size
- 5,000,000 characters per side; text files up to 10 MB
- Live comparison
- Up to 300,000 characters combined; larger texts use the Compare button
- Processing
- In your browser (Web Worker)
Privacy
Both texts are compared in your browser. Nothing you paste or open is uploaded, stored or sent to analytics, and HTML in your text is shown as text, never rendered.
Read the full privacy policy.
FAQ
Text Diff Checker questions
A diff checker compares two texts and highlights the differences between them. ZSpace Tools' Text Diff Checker lines the two versions up, marks lines that were added (+) or removed (−), pairs changed lines and highlights the exact words or characters that differ, with options to ignore case, whitespace, blank lines and line-ending style.
Lines are compared with Myers' O(ND) difference algorithm — the method behind most diff tools — using its linear-memory variant, so large documents don't exhaust memory. Changed line pairs are then compared word by word or character by character; characters are grapheme clusters, so emoji and accented letters are never split. Ignore options only change how lines are compared — your texts are never modified, and the comparison runs in a background worker so the page stays responsive.
Paste the original into the left box and the new version into the right (or open both as text files). Differences appear straight away: removed text is marked −, added text +, and changed words are highlighted inside each line.
All three align the texts line by line. Line mode highlights whole changed lines; word mode also marks the changed words inside them; character mode marks individual characters, which suits codes, IDs and typos.
No. They only change how lines are compared. The texts, the copied modified text and the line content in the comparison are always exactly what you entered.
Usually invisible characters: trailing spaces, tabs instead of spaces, or Windows (CRLF) versus Unix (LF) line endings. Turn on the matching ignore option, or keep it off to find them.
Only plain text can be compared here. Copy the text out of the document, or convert it first with the PDF to Word tool, then paste it in.
Each side can hold up to 5 million characters. Texts over 300,000 characters combined are compared when you press Compare rather than on every keystroke, and very long changed lines are highlighted as whole lines.
No. The comparison runs in a background worker in your browser, so nothing leaves your device.
Related tools
Word Counter
Count words, characters, sentences and paragraphs, with reading and speaking time.
Case Converter
Convert text to UPPERCASE, lowercase, Title Case, camelCase, snake_case and more.
Online Markdown Editor
Write Markdown with a live preview, GitHub-style tables and task lists, then export .md or HTML.