Text diff / compare
Free · no sign-upCompare two blocks of text and see exactly what changed, line by line.
Paste text on both sides to compare.
Runs entirely in your browser — your data never leaves your device and nothing is stored. No sign-up.
Compare two blocks of text and see exactly what changed, line by line. This free online text diff tool highlights added and removed lines instantly, right in your browser — paste an old and a new version of anything (code, config, contracts, copy) and read the changes at a glance. Nothing is uploaded; the comparison runs entirely on your device.
- ✓Line-by-line diff with added/removed highlighting
- ✓Live comparison as you paste — no button to press
- ✓A running count of added and removed lines
- ✓Copy the unified diff in one click
- ✓Runs in your browser — nothing is uploaded
Who it's for
- Reviewing edits between two versions of a document
- Spotting what changed in a config or JSON file
- Checking a contract revision before signing
- Comparing two snippets of code without git
How it works
- 1Paste the original text on the left.
- 2Paste the changed text on the right.
- 3Read the highlighted differences below.
- 4Copy the diff if you need to share it.
Frequently asked questions
What does a text diff show?+
It compares two versions of text and marks which lines were added, removed or left unchanged — the same idea as a git diff, but for any text.
Does it compare word by word?+
The comparison is line-based, which is the clearest view for code, config and documents. A changed line shows as one removed line plus one added line.
Is my text uploaded anywhere?+
No. The diff is computed locally in your browser — your text never leaves your device.
Can I compare code?+
Yes. It works well for source code, JSON, YAML, logs, contracts and any plain text — indentation and whitespace are preserved.
You may like
Some links may be partner links — how this works
Related tools
Format, validate and minify JSON in your browser.
Encode or decode Base64 text, UTF-8 safe.
Decode a JWT's header and payload in your browser.
Test regular expressions with live match highlighting.
Percent-encode or decode URLs and query strings.
Generate random UUID v4 identifiers in bulk.