Search and highlight substring or regex occurrences in text.
Remove duplicate lines from text while preserving or sorting order.
Convert line endings between Windows (CRLF) and Unix (LF) format.
Find and replace text using regular expressions and capture groups.
Count total lines, non-empty lines, and blank lines in text.
Spotting the exact difference between two versions of a document, contract, or code snippet by eye is slow and error-prone, and this text diff tool does it instantly by comparing two blocks of text and highlighting every addition and deletion. Developers reviewing code changes, editors comparing document revisions, and anyone checking whether two pasted texts are actually identical can paste both versions side by side and see precisely what changed, line by line or word by word. It's a faster alternative to manually scanning for differences, especially in long documents where a small change is easy to miss. Everything is compared locally in your browser, so neither version of your text ever leaves your device. Paste both texts below to see the differences highlighted instantly.
It compares two versions of text and visually highlights which parts were added, removed, or left unchanged between them, similar to how version control tools display code changes.
Yes, pasting both versions lets you quickly spot every wording change without manually reading through the entire document twice.
It offers both granularities — you can view differences at the line level for a broad overview or drill into word-level changes for precise detail.
Yes, developers commonly use text diff tools to review changes between two versions of code before merging or deploying.
No hard limit, since comparison happens locally in your browser, though very large documents may take a moment longer to render.
No, the entire diff comparison runs client-side in JavaScript, and neither document is ever sent to a server.