What Is a Diff Checker?
A diff checker compares two versions of a text and shows exactly what changed between them. It is the same idea programmers use in Git, where every commit is shown as lines added and lines removed, but it works on anything you can paste: articles, product descriptions, contracts, code, robots.txt files, prompts or JSON.
This tool uses the Myers diff algorithm, the same method behind git diff, so it finds the smallest set of changes that turns one version into the other. Inside each changed line it also highlights the exact words that differ, which saves you from reading two long lines side by side. It is especially handy for checking what an AI tool really changed when you asked it to edit or rewrite your text. Everything runs in your browser, so private drafts never leave your device.
How to Use the Diff Checker
- Paste the original into the left box and the changed version into the right box.
- Read the result. Red lines were removed, green lines were added, and the darker highlight marks the exact words that changed.
- Choose how to compare. Lines suits code and lists, Words suits paragraphs of prose, and Characters suits short strings such as URLs or IDs.
- Turn on options to ignore case or extra spaces, or to show only the changes in a long file.
- Copy the unified diff to share the changes with a developer, or paste it into a ticket or pull request.
Which Compare Mode Should You Use?
| Mode | Best for | What you see |
|---|---|---|
| Lines | Code, config files, CSV rows, lists, robots.txt | Each line marked as same, added or removed, with changed words highlighted |
| Words | Articles, emails, AI rewrites, legal text | The text as one flowing piece, with removed words struck in red and new words in green |
| Characters | URLs, product codes, titles, single sentences | Every single letter that was added or removed |
The similarity score compares the words in both versions. 100% means the words are the same, and a low score means most of the text was rewritten. The unified diff uses the standard ---, +++ and @@ format with 3 lines of context, which git apply and the GNU patch tools understand.
Practical Tips
- Check AI edits before you publish. Ask an AI tool to fix grammar, then compare its answer with your draft. You will see at once if it quietly changed a price, a name or a claim.
- Review content refreshes. Compare the old and new versions of an article to confirm the key facts, headings and internal links you wanted are still there.
- Ignore spaces for code. Tick the spaces option when only the indentation changed, so the real edits stand out.
- Use Show only changes for long files. Unchanged parts fold away and you can jump straight to the lines that matter.
Keep Your Content in Shape
Updating old pages? Read how to refresh old content without losing rankings and follow Google's AI content guidelines when you edit with AI. Cleaning up text that came from ChatGPT first? Run it through the AI text cleaner, and compare two JSON files after formatting them with the JSON formatter.
Frequently Asked Questions
1How do I compare two texts for differences?
Paste the first version into the left box and the second into the right box. The diff checker shows removed lines in red, added lines in green and highlights the exact changed words inside each line. You can switch to word or character mode for prose and short strings.
2Can I see what ChatGPT changed in my text?
Yes. Paste your original draft on the left and the AI edited version on the right, then choose Words. Every removed and added word is highlighted, so you can spot changed facts, numbers or tone before you publish.
3What is a unified diff?
It is the standard text format for changes, used by Git and patch tools. Lines starting with a minus were removed, lines starting with a plus were added, and each block starts with an @@ line showing where it sits in both files.
4Is my text uploaded anywhere?
No. The comparison runs entirely in your browser. Nothing you paste is sent to a server or stored, so it is safe for private documents and code.