Text Diff Checker — Free Online Tool
Compare two blocks of text and see exactly what changed. Additions are highlighted in green, deletions in red. Choose between line-by-line diff (great for code and documents) or word-by-word diff (better for sentences and prose). Powered by the 'diff' npm package.
100% client-side. No uploads. Your data never leaves your browser.
How to use Text Diff Checker
- Paste the original text in the left pane.
- Paste the modified text in the right pane.
- Choose 'Lines' or 'Words' diff mode.
- Green highlights show additions; red shows deletions. A summary shows total changes.
Frequently Asked Questions
What diff algorithm is used?
The 'diff' npm package implements the Myers diff algorithm, the same algorithm used by git.
Can I compare code files?
Yes. Paste code into both panes and use line mode for a standard unified diff view.
Is there a size limit?
Up to 10 MB per input. Very large diffs may be slow to render due to the number of highlighted spans in the DOM.
Related tools
Related reading
Browse all free tools · theproductguy.in