Free Online Text Diff Checker
Paste two blocks of text or code and instantly see every addition, deletion, and unchanged line highlighted. Great for comparing config files, code reviews, or document revisions.
Related Tools
Frequently Asked Questions
What algorithm does the diff tool use?
The diff uses the Myers diff algorithm, the same method behind git diff. It finds the minimum edit distance between two texts, producing the most human-readable diff with the fewest changes highlighted.
Can I diff code files?
Yes. Paste any two code snippets — JavaScript, Python, JSON, SQL, or any text — and the diff engine handles them the same way. Syntax is not interpreted; only line-by-line text differences are shown.
What do the colors mean?
Green highlighted lines are additions (present in the right/new text but not the left). Red highlighted lines are removals (present in the left/old text but not the right). Unchanged lines are shown in neutral color.