Someone sends back "the contract, with a few small changes." A colleague edits a config file and now the service won't start. You have two drafts of the same report and can't remember which paragraph you rewrote. In every case the fix is the same: instead of re-reading two near-identical documents line by line, compare them and let the differences jump out.
Why the eye is bad at this
Two versions of a long document are mostly identical, and that's exactly the problem. Your eye slides over the matching parts and it's easy to miss the one line that changed — a deadline moved from 30 days to 14, a single value flipped, a clause quietly added. The important edit is hidden in a sea of sameness. A comparison tool inverts that: it hides the sameness and shows only what moved.
How a diff works
A "diff" (short for difference) lines the two texts up and marks each line as unchanged, added, or removed. It does this by finding the longest run of lines the two versions share, in order, and treating everything else as an edit — the same technique behind the comparison view in version-control tools like Git. That's why a small change in the middle of a long file shows just that change, rather than flagging every line after it as different.
How to compare two texts
Paste the original into one box and the new version into the other in our Diff Checker, and the differences highlight line by line — additions in green, removals in red — with a count of how many lines changed. It's the fastest way to answer "what actually changed here?" And because the comparison runs in your browser, neither version is uploaded — which matters when the thing you're comparing is a contract, a config with credentials, or an unreleased draft.
Getting cleaner results
- Ignore whitespace when indentation or trailing spaces changed but the content didn't — otherwise a re-indented file looks entirely rewritten.
- Ignore case when only capitalisation differs and you don't care about it.
- Tidy both sides first if they came from messy sources. Trimming and sorting both versions with a text cleaner before comparing removes noise so only real differences remain.
Common uses
- Contract revisions — see exactly what a reviewer changed before you sign.
- Config and code — find the one line that broke a working setup.
- Writing — compare two drafts and keep the better wording from each.
- Verification — confirm two lists or exports are genuinely identical, not just similar.
Frequently asked questions
Does it compare word by word or line by line?
Line by line, which is the most useful view for documents, config and code. If a single word changes, you'll see the old line marked removed and the new line marked added.
Is my text uploaded when I compare?
No. Both versions stay in your browser — nothing is sent or stored. That's the point of comparing locally, since these are often sensitive documents.
Can it handle large files?
Yes, within your device's memory — the work grows with the size of both texts, so very large inputs may take a moment, but there's no server size limit because nothing is uploaded.
More guides
- How to Tell if a Website Is Really Uploading Your Files
- How Much House Can You Actually Afford?
- How to Make a Passport Photo From a Phone Picture
- How to Send Only the Pages You Need From a PDF
- How to Merge Scanned Pages Without the Order Going Wrong
- What You're Actually Pasting Into an Online JSON Formatter
- Why Two Names That Look Identical Don't Match
- Five Regex Patterns That Look Right and Quietly Aren't
- camelCase, snake_case or kebab-case: Which Goes Where
- Asking AI for the First Time: What to Ask, and What Not to Paste
- How to Keep Your Shorts Text From Being Covered by the YouTube UI
- Why Your YouTube Chapters Aren't Showing (and How to Fix Them)
- The Part of Your YouTube Title Nobody Sees
- How to Get an Image Under an Email or Upload Size Limit
- Why Some Free QR Codes Stop Working (and How to Make One That Won't)
- What a Loan Actually Costs Beyond the Monthly Payment
- Compound Interest, and Why Starting Early Beats Saving More
- Should You Tip on the Pre-Tax or Post-Tax Amount?
- Why 30% Off Then 20% Off Isn't 50% Off
- What BMI Does and Doesn't Tell You
- How Many Calories You Actually Need (and Why Estimates Vary)
- Word Counts That Actually Matter (Essays, Meta Descriptions, Posts)
- How to Write an Invoice That Gets Paid Faster