Guide
Comparing two texts and finding every change
“What changed?” comes up constantly: between two versions of a contract, the config file that works and the one that doesn’t, a draft and the edited article, yesterday’s export and today’s. Reading both side by side misses things. A diff checker marks every addition and removal, so nothing slips through.
Comparing texts
- Paste the older version into Original and the newer one into Changed.
- Choose how to compare: Lines, Words or Characters.
- Read the highlighted result: added text and removed text are marked in different colors.
- Check the summary: the number of added and removed units, and whether the texts are Identical or Different.
Both texts and your settings are remembered, so you can come back to a comparison.
Lines, words or characters?
| Mode | Best for | Shows |
|---|---|---|
| Lines | Code, configuration, CSV, logs | Which lines were added or removed |
| Words | Contracts, articles, emails, essays | Exactly which words changed within sentences |
| Characters | IDs, numbers, URLs, typos | The single character that differs |
A changed word in a long paragraph is a whole changed line in Lines mode, but a precise one-word edit in Words mode.
Ignoring noise
- Ignore case: “Total” and “total” count as the same, useful for SQL, headings or data where capitalization doesn’t matter.
- Ignore whitespace: extra spaces, tabs and indentation changes are skipped, so re-indented code or reflowed text shows only real edits.
If lines that look identical still show as changed, there are invisible differences: trailing spaces, tabs versus spaces, Windows versus Unix line endings, or non-breaking spaces from a word processor. Ignoring whitespace or comparing by characters reveals them.
Preparing data for a clean diff
- JSON: format both documents with the JSON Formatter using the same indentation and Sort keys, so key order doesn’t create false differences.
- SQL: format both queries with the SQL Formatter first.
- Lists: sort both lists the same way, or remove duplicates with Remove Duplicate Lines, before comparing.
- Copied web or Word text: run it through the Text Cleaner to normalize spaces and quotes.
Everyday uses
- Contracts and policies: see exactly which clauses changed between versions before signing.
- Editing: compare your draft with an editor’s version to learn from the changes.
- Configuration: find the one setting that differs between a working and a broken server.
- Data checks: spot changed values between two exports.
- Students and teachers: compare drafts of an assignment.
For PDFs, the Compare PDF tool extracts and compares the text of two documents directly.
Privacy
The comparison runs in your browser. Nothing is uploaded, so confidential documents, code and customer data stay on your device.
Who compares texts
- Developers compare configuration files, logs and API responses.
- Editors and writers see changes between drafts.
- Lawyers and contract managers compare clauses between versions.
- Teachers compare student drafts or check text against a source.
- Translators compare old and new source texts to update translations.
A complete example: what changed in a policy?
- Paste last year’s policy text as Original and this year’s as Changed.
- Compare by Words so edits inside sentences are visible.
- Turn on Ignore whitespace to hide formatting differences.
- Go through each addition and removal and list the substantive changes for your summary.
Tips
- Compare by lines for code and data, by words for prose.
- For PDFs, use Compare PDF directly.
Related tools
- Compare PDF for two PDF documents.
- JSON Formatter and SQL Formatter to normalize before comparing.
- Find and Replace to apply changes across a text.
- Word Counter to compare lengths.
Checked against the current version of the Diff Checker on .

