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
The Longest Common Subsequence (LCS) is the classic computer science algorithm this tool uses to find the largest set of lines that appear in both texts in the same order, the same method used by git diff and most version control systems. Read the formal definition on Wikipedia. Everything that is not part of that matching sequence is marked 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.
Common Use Cases
Frequently Asked Questions
How does the text diff checker work?▾
What does "ignore whitespace" do?▾
What does "ignore case" do?▾
Can I use this to compare code?▾
Is my text sent to a server?▾
What is the maximum text size I can compare?▾
What is the difference between Split view and Unified view?▾
How do I copy the diff output?▾
Is it safe to compare confidential contracts or private code here?▾
Why does a whole line show as changed when only one word is different?▾
By Toolember · Updated September 2026