Text & Code Diff Checker
Data, Regex & TextLive Regex tester with presets, side-by-side Diff checker, case/slug tools, and GFM Markdown builder.
100% client-side — files and inputs never leave your browser.
About this tool and how it works
Comparing text, code, and JSON
Paste an original and a changed version to see exactly which lines were added, removed, or kept. Switch between a side-by-side view (best for reviewing edits in context) and a unified view (the compact format used by git diff and pull requests), and filter to show only the changes when documents are long.
Common uses
- Comparing two versions of a config file or environment variables before a deploy.
- Checking what an API response changed between staging and production.
- Reviewing a contract or policy text for edits when no tracked changes are available.
- Verifying that a refactor or formatter only changed whitespace.
Get a clean diff from JSON
Two JSON documents with the same data can differ in key order and indentation, producing a noisy diff. Run both through the JSON formatter with sort keys enabled first, then compare: only the real value changes remain.
Why do identical-looking lines show as changed?
Invisible differences are the usual cause: trailing spaces, tabs versus spaces, Windows (CRLF) versus Unix (LF) line endings, or non-breaking spaces copied from documents and web pages. If two lines look the same but are marked as different, check for these first.
Privacy
The comparison runs entirely in your browser, so it is safe for source code, credentials files, and confidential documents that should not be pasted into online services.
Frequently asked questions
Does the diff compare by line or by character?
It compares line by line, which matches how Git and code review tools present changes. Changed lines appear as a removal followed by an addition.
How large can the texts be?
Thousands of lines work well. Extremely large files are limited by browser memory and may take a moment to compute.
Can I ignore whitespace differences?
Normalize both inputs first, for example by formatting JSON or code with the same formatter, so only meaningful differences remain.
Other tools
Beautify, minify, validate with line errors, sort keys, and inspect JSONPath.
Convert bidirectionally between JSON, YAML, CSV, and TOML in your browser.
Generate TypeScript interfaces and Zod schemas from any JSON payload.
Beautify or minify SQL queries (Postgres/MySQL), XML, and HTML markup.
Live regex matcher, capture groups, replace preview, and quick presets.
Convert camelCase/snake_case/slugs, count bytes/words, and deduplicate lines.
Live GFM preview, HTML export, and Markdown table generator from CSV/TSV.
Create direct wa.me links with pre-filled messages and downloadable PNG QR codes.
Merge, split, compress, rotate pages, and convert between PDF and images 100% locally.