Diff Checker
Paste two versions of text or code and see a clean line-by-line diff — additions in green, removals in red.
Paste text in both fields to see the line-by-line difference.
Comparison runs locally in your browser — your text is never uploaded or stored.
Spot every change at a glance
When you need to know what changed between two versions — a config before and after an edit, two API responses, a pasted snippet versus what's in your editor — reading them side by side is slow and error-prone. This diff checker compares the two texts line by line and shows exactly which lines were added (green) and removed (red), with running counts, so the difference jumps out immediately.
How the comparison works
The diff is computed with a longest-common-subsequence algorithm — the same core idea behind git diff and diff. It finds the largest set of unchanged lines and marks everything else as an insertion or deletion, so moved and edited lines are reported accurately rather than as one giant block of changes. Original and changed line numbers are shown in separate gutters, like a code review.
FAQ
Does it compare word by word or line by line?
Line by line — the most useful granularity for code, configs and logs. If a single line changed, you'll see the whole old line removed and the new line added, which makes the before/after unambiguous.
Can I compare code with different indentation?
Yes, and whitespace is significant — a re-indented line counts as changed, which is usually what you want when reviewing real diffs. Normalize indentation first if you only care about content changes.
Is my text uploaded anywhere?
No — the comparison runs entirely in your browser, so you can diff private configs and source safely. Nothing is transmitted or stored.
Free tools are just the start
Deploy your next app on bare-metal cloud with per-second billing — your first app is free, no credit card required.
More free tools
Generate strong, random passwords with a cryptographically secure RNG — entirely in your browser.
Encode text to Base64 or decode it back — UTF-8 safe, with URL-safe variant support.
Percent-encode strings for safe use in URLs, or decode %20-style sequences back to text.
Decode a JSON Web Token's header and payload, check expiry, and verify HS256 signatures.
Generate MD5, SHA-1, SHA-256 and SHA-512 hashes of any text — instantly, in your browser.
Validate JSON with precise error locations, then pretty-print or minify it — with sorted keys if you like.