100% PrivateNo ServerFree
0 added0 removed1 unchanged
How It Works
1
Paste Both Versions
Paste the original code on the left and the modified version on the right.
2
View the Diff
The tool highlights additions, deletions, and unchanged lines with color coding.
3
Switch Views
Toggle between side-by-side and unified views to suit your preference.
Frequently Asked Questions
How does the diff algorithm work?
The tool uses the Longest Common Subsequence (LCS) algorithm to find the optimal diff between two texts. It identifies added, removed, and unchanged lines.
What is the difference between side-by-side and unified view?
Side-by-side view shows the original and modified text in parallel columns. Unified view shows all changes in a single column with + and - prefixes, similar to git diff.
Can I compare any text, not just code?
Yes, the diff checker works with any text content including prose, configuration files, data, and code in any programming language.
What do the colors mean?
Green highlights indicate lines that were added in the modified text. Red highlights indicate lines that were removed from the original text. Uncolored lines are unchanged.
Is my code sent to a server?
No, all diff computation happens in your browser using JavaScript. Your code never leaves your device.
Explore More
Love this tool? Explore 999+ more
Free online tools for images, PDFs, text, code, and more. All running in your browser.
Explore All Tools