Free Diff Checker - Compare Text & Code Online
Compare two blocks of text or code and highlight the differences instantly.
About this tool
How to use
Frequently Asked Questions
This tool uses the Longest Common Subsequence (LCS) algorithm, the same foundation used by git diff. It finds the minimal set of additions and deletions to transform one text into the other.
Yes. The diff checker works on any plain text, including source code, JSON, XML, configuration files, and prose. Paste your code and click Compare.
Green highlighted lines are additions - lines present in the new/right text but not in the original/left text. Red highlighted lines are deletions - lines present in the original/left text but not in the new/right text. Uncolored lines are unchanged.
There is no hard limit, but very large texts (10,000+ lines) may take a moment to process since the LCS algorithm has O(n*m) time complexity. For extremely large files, command-line tools like diff or git diff are recommended.
