Text Diff Checker
Compare two texts line by line, word by word or character by character, with highlighted changes.
Text Diff Checker
Paste two versions of a text to see what changed. Everything runs in your browser; nothing is uploaded.
Your data is processed locally in your browser and is not uploaded to OZVILO servers.
How to use the Text Diff Checker
- 1Paste the earlier version into Original Text and the new version into Modified Text.
- 2Choose to compare by lines, words or characters, and a side-by-side or unified view.
- 3Optionally ignore case or whitespace, or show only the changed lines.
- 4Read the summary, then copy or download the unified diff.
Examples
Changed line
- Input
- Original: Owner: Sam Modified: Owner: Alex
- Result
- 1 modified line · “Sam” → “Alex” highlighted
Unified diff
- Input
- one / two / three → one / 2 / three
- Result
- @@ -1,3 +1,3 @@ one -two +2 three
Text Diff Checker features
- Line, word and character comparison using the Myers shortest-edit algorithm
- Side-by-side and unified views with line numbers and word-level highlights inside changed lines
- Ignore case, ignore whitespace and show only changed lines
- Summary of added, removed, modified and unchanged lines and the number of changed blocks
- Copy or download a standard unified diff (diff -u format)
Frequently asked questions
How are “modified” lines counted?
Within each block of changes, removed and added lines are paired in order. Each pair counts as one modified line; any extra lines count as added or removed. Word and character modes report added and removed words or characters instead.
Can it handle long documents?
Yes. The comparison runs in your browser and handles tens of thousands of lines. If two texts differ almost everywhere, it may show some areas as whole blocks replaced to stay fast, and it tells you when that happens.
Is my text sent anywhere?
No. Both texts stay in your browser; nothing is uploaded or stored.
What does “ignore whitespace” do?
Spaces, tabs and indentation are ignored when deciding whether lines or words match, like diff -w. The text shown is still your original.
Related tools
- Available
Remove Duplicate Lines
Delete repeated lines from a list — keep the first or last copy, or drop every repeated line.
Text ToolsOpen tool - Available
Text Sorter
Sort lines A–Z, Z–A, numerically, naturally or by length — or reverse and shuffle them.
Text ToolsOpen tool - Available
Word Counter
Count words, sentences, paragraphs and reading time as you type, with an optional keyword check.
Text ToolsOpen tool - Available
JSON Formatter & Validator
Beautify, minify and validate JSON with clear error messages.
Developer ToolsOpen tool