How to Compare Two Texts
- Paste the original into the left box and the changed version into the right box.
- Review the diff below — it updates instantly as you type or paste, no submit button needed. Removed lines are red, added lines are green.
- Switch views or toggle options — use Side by side for a code-review-style layout, or enable Ignore Whitespace / Ignore Case to filter out noise.
What This Tool Is Useful For
A text diff checker is handy anywhere you need to spot the exact difference between two versions of something: comparing API responses before and after a change, checking whether two config files (Kubernetes manifests, environment files, .env templates) actually match, reviewing a small code change without opening git, or catching what a formatter or minifier altered.
Because everything runs client-side, it's safe to paste sensitive payloads — API responses with tokens, internal config, proprietary code — the text is compared in memory in your browser tab and discarded when you navigate away.
Frequently Asked Questions
Is my text sent to a server?
No. The diff is computed entirely in your browser. Neither the original nor the changed text ever leaves your device — confirm this by opening DevTools → Network tab while comparing.
Can I compare JSON, YAML, or code with this tool?
Yes — it works on any plain text, including JSON, YAML/config files, and source code. For JSON, formatting both sides first with the JSON formatter keeps whitespace differences from hiding the real changes.
What's the difference between unified and side-by-side view?
Unified view shows one column with removed lines in red and added lines in green, similar to git diff. Side-by-side view shows two aligned columns — original on the left, changed on the right — similar to a pull request review.
Why does Ignore Whitespace matter?
Re-indenting a file or copying text through an editor that trims trailing spaces can bury real edits under whitespace-only changes. Enabling Ignore Whitespace filters those out.