๐ Diff Checker
Compare two texts side by side. See added, removed, and changed lines with line numbers and color highlighting.
Text Diff Checker
Compare two texts or code snippets and instantly see the differences. Perfect for reviewing code changes, comparing document versions, or checking configuration files.
Features
- Line-by-line comparison with color-coded added, removed, and modified lines.
- Line numbers for easy reference in both original and modified text.
- JSON Mode โ format and compare JSON objects structurally.
- Swap โ quickly reverse left/right texts.
- 100% client-side โ your text never leaves your browser.
Frequently Asked Questions
How are differences detected?
The tool uses the LCS (Longest Common Subsequence) algorithm to find the longest shared sequence of lines, then marks all other lines as added or removed.
What does JSON Mode do?
JSON Mode pretty-prints both inputs with consistent formatting (2-space indent, sorted keys) before comparing. This way, structural differences are shown rather than formatting-only differences.
Related Tools
Find & Replace ยท Text Statistics ยท JSON Formatter ยท All Text Tools