Text tools
Text Diff Checker
Compare two texts online and see every difference highlighted instantly. Choose side-by-side or unified view, zoom in to word or character level, and filter noise with ignore-case and ignore-whitespace options. Everything runs in your browser, your text is never uploaded.
Paste text into both panels above to see the diff.
How the Diff Algorithm Works
This tool uses the Longest Common Subsequence (LCS) algorithm , the same method used by git diff and most version control systems. LCS finds the largest set of lines that appear in both texts in the same order, then marks everything else as added or removed.
+ Added
Lines that exist only in the modified text.
- Removed
Lines that exist only in the original text.
Unchanged
Lines identical in both texts, part of the LCS.
Comparison Options Explained
View modes: Split vs Unified
Split view renders two columns, original on the left, modified on the right, so you can read both versions simultaneously. Unified view produces a single stream with + and − prefixes, matching the output of git diff. Unified is easier to copy and paste.
Granularity: Line, Word, Character
Line mode compares whole lines (fastest, best for prose). Word mode highlights individual words that changed within a modified line, great for catching renamed identifiers. Character mode highlights every single character change, useful for spotting typos or punctuation differences.
Ignore case & Ignore whitespace
Ignore case treats Hello and hello as equal. Ignore whitespace collapses multiple spaces and trims line ends before comparing, ideal for comparing code that was reformatted or pasted from a different editor. Both options affect only the comparison logic; the original text is still displayed unchanged in the output.
Hide unchanged lines
Enable this to collapse identical lines and show only the changed regions. Useful when comparing long documents with only a few modifications, similar to the context feature in patch files.