// developer tool

Diff Checker

Compare two texts or code snippets and see exactly what changed. Line-by-line comparison with added, removed and changed highlighting.

Original (A)
Modified (B)
🔍 Diff Result
Paste text in both boxes above and click Compare

About Diff Checking

How does diff comparison work?
Diff comparison uses the LCS (Longest Common Subsequence) algorithm to find the minimum number of changes needed to transform one text into another. It identifies lines that were added (green), removed (red), or unchanged (gray) between the two versions.
What can I compare with this tool?
You can compare any text: source code, configuration files, JSON/XML data, documents, logs, or plain text. It works best for line-based content like code. For binary files or images, use a dedicated file comparison tool.
What does "Ignore Whitespace" do?
When enabled, the comparison ignores leading and trailing whitespace on each line. This is useful when comparing code that was reformatted or indented differently, so you only see meaningful content changes rather than formatting changes.