Diff Checker — Text & JSON
Compare two texts side-by-side with highlighted differences. Supports plain text and smart JSON-aware diffing.
{- "name": "John Doe",- "age": 30,- "email": "john@example.com"+ "name": "Jane Doe",+ "age": 31,+ "email": "jane@example.com",+ "role": "admin" }
About this tool
The Diff Checker shows the exact differences between two pieces of text, highlighting additions in green and deletions in red — the same visual format used by GitHub and git.
Plain text mode compares line-by-line and character-by-character, showing exactly what changed between two versions of a document, config file, or code snippet.
JSON-aware mode is smarter: it parses both inputs as JSON, normalizes formatting (removing whitespace differences), and then diffs the result. This means you'll only see semantic changes — an added key or changed value — not formatting noise.
Use it to compare API responses, config files, code versions, database dumps, or any two texts. The diff is computed using the Myers diff algorithm for optimal, minimal edits.
Frequently Asked Questions
What algorithm is used for diffing?
What is JSON-aware diffing?
Can I diff large files?
How do I read the diff colors?
Related Tools
JSON Formatter
Format, validate, beautify, and minify JSON instantly. Syntax highlighting, error detection, and path copying. 100% client-side.
Text Counter
Count words, characters, sentences, paragraphs, and reading time. Keyword density analysis included.
Regex Tester
Test regular expressions with real-time match highlighting, named groups, and plain-English explanation of each part.
Line Sorter
Sort lines alphabetically, numerically, or by length. Remove duplicate lines. Shuffle, reverse, and filter lines.