Diff Checker
Compare two blocks of text and see the differences highlighted. Supports unified and side-by-side views with options to ignore whitespace and case differences.
Frequently Asked Questions
What is a diff checker?
A diff checker compares two blocks of text and highlights the differences between them. It shows which lines were added, removed, or remain unchanged. This is essential for comparing code versions, configuration files, documents, and any text where you need to track changes.
What is the difference between unified and side-by-side view?
Unified view shows all changes in a single column with + and - prefixes, similar to git diff output. Side-by-side view shows the original and modified text in two columns, making it easier to visually compare corresponding lines. Choose the view that works best for your use case.
What does “ignore whitespace” do?
When enabled, the diff checker trims leading and trailing whitespace from each line and collapses multiple spaces into one before comparing. This is useful when you only care about content changes and want to ignore formatting differences like indentation changes.
Is my data processed on a server?
No. The diff algorithm runs entirely in your browser using JavaScript. Your text never leaves your device. The comparison uses a Longest Common Subsequence (LCS) algorithm to produce an optimal diff.