Skip to content
Browse tools

Text difference engine

Compare two textsdown to the character.

Your text is never saved and never uploaded. Both sides are compared inside this browser tab, on your own machine. Nothing is sent to a server, nothing is stored, and closing the tab erases it completely — safe for contracts, patient notes and anything else confidential.

No account · No upload · No trace

Paste an original and a revision. Every insertion, deletion and edited word is measured and marked, with a similarity score, a per-line breakdown and a unified diff you can copy straight into a commit or a review.

Input
A — Original 0 lines · 0 words
0 charactersUTF-8
B — Revised 0 lines · 0 words
0 charactersUTF-8
Compare by
Load a sample Replaces both panes

Similarity

—

awaiting input

Added

—

lines inserted

Removed

—

lines deleted

Modified

—

lines edited in place

Unchanged — Modified — Added — Removed — Words — Characters —

Result No changes

Waiting for both texts

Paste something into A and B, or load one of the samples above. The comparison runs as you type.

Myers O(ND) · nothing is uploaded

⌘/Ctrl⏎ compare AltS swap AltK clear Alt↓/↑ next change Alt1–3 view

HOW IT WORKS

A real diff, not a line-by-line check

Naive comparison tools walk both texts together and report everything as different from the first change onwards — insert one line at the top and the whole file lights up. This uses Myers' difference algorithm, the approach behind git diff, which finds the shortest edit script between the two versions, so an inserted block is reported as an insertion and everything after it still matches. Identical prefixes and suffixes are trimmed before the search even starts, which is why large files with small edits compare almost instantly.

Once the line-level changes are known, each pair of changed lines is scored for similarity using bigram overlap. Lines that are clearly revisions of each other get a second, word-level pass so you see precisely which words changed; lines with little in common are reported honestly as a separate deletion and addition rather than being force-matched into a confusing highlight. The ignore options change only what counts as identical — the text shown is always exactly what you pasted.

COMMON QUESTIONS

Text Compare FAQ

Is my text uploaded anywhere?

No. Everything happens in JavaScript on your device — you can confirm it by opening your browser's network tab and running a comparison, where you'll see no request. That's why this tool is built client-side by design rather than convenience: diff tools are exactly where people paste contracts, patient notes and production config.

What does the similarity percentage mean?

It's the proportion of characters the two texts share, measured across matched content. 100% means nothing differs; a low score means the two are largely unrelated. It's a useful at-a-glance figure, not a formal edit-distance metric.

What's the difference between word, character and line granularity?

Word is the default and reads best for prose and code. Character catches changes inside a word — a changed digit in an ID, or a typo — at the cost of noisier highlighting. Line skips the inner pass entirely and reports whole lines as changed, which is fastest on very large files.

Can I use the exported diff with git?

Yes. It's standard unified diff format with three lines of context and proper @ hunk headers, so git apply and patch accept it.

Why does it say "compared at block level for speed"?

The search is bounded so a pathological comparison can't hang your browser. When two texts have almost nothing in common, finding a minimal edit script costs more than it's worth, so that region is reported as a straight replacement instead — which is the honest description of it anyway.

Does it handle large files?

Yes — identical prefixes and suffixes are trimmed first, so a 10,000-line file with a handful of edits compares in well under a tenth of a second. Very large inputs will warn you that rendering, not comparing, is the slow part.

What else can you check?

These tools all work on the same connection and address data — pick whichever question you actually have.

Want to see the full path to a site? DNS, redirects, every hop, the CDN, TLS and the origin server. Want to know your public IP? See your IPv4 and IPv6 addresses, location, ISP and ASN. Want to check your tower & route? Live ping, speed, DNS, traceroute and a map of nearby points. Want to ping from around the world? Real latency from real probes across 12 countries, live on a map. Want to locate any IP address? City, region, country and coordinates for any public IP. Want to know if an IP is risky? Proxy, VPN, Tor, hosting and abuse-report indicators. Want to know if you're blacklisted? Check an address against major spam and abuse DNSBLs. Want to know who owns an IP? Network owner, ASN, CIDR range and abuse contact. Want to explore an AS number? Announced prefixes, BGP neighbours and registry details. Want to test your connection speed? Measure real download, upload, ping and jitter. Want to know if a DNS change is live yet? Compare answers from five independent public resolvers. Want to verify a domain's nameservers? Direct authoritative checks, glue records and SOA serials. Want to check a domain's DNSSEC setup? DNSKEY, DS records, signature expiry and real validation. Want to see the hop-by-hop path to a server? A real traceroute from a genuine probe anywhere in the world. Want to know if a server port is open? A real TCP connection attempt - open, closed or filtered. Want to measure latency to a server? Real connect timing - min/avg/max, jitter and connection loss. Want a clean URL slug from a title? Real transliteration, stop words and batch mode. Want to find and replace across a document? Regex, capture groups and a live preview before you commit. Want to find the invisible character? Code points, escapes, bytes and hidden-character detection. Want to escape text for HTML? Minimal, named or numeric entities, attribute-safe. Want to strip emoji cleanly? Whole clusters - no half-flags or stray modifiers left. Want to spot repeated words? Frequency, density and accidental doubles like "the the". Want to know if a URL is cached? Two requests prove whether your CDN is really caching it. Want to see what a site knows about you? Storage, cookies, tokens and what your browser actually cached. Want to run that check on any site? One-click bookmarklet reads storage and tokens where they live. Want to know who your site talks to? Renders the page and names every outside company it contacts. Is your site one address or four? www, non-www, http and https - which serve, which redirect. Need to build an Authorization header? Basic, Bearer, API key, Digest and AWS SigV4 - signed in your browser. Want to tidy up a messy SQL query? Beautify, minify, lint and convert keyword casing for six dialects. Need to work out a percentage? Nine calculators covering every way a percentage gets asked. Want to work out a rise or a raise? Increases, growth, compounding and CAGR, with the working shown. Want to work out a discount or a drop? Discounts, stacked sales and depreciation, with the working shown. What is actually on that page? Words, reading time, readability, every image, embed and link. Need a favicon that works everywhere? Every size, a real multi-resolution .ico, and the tags to paste. What headers does a site send back? Every response header on every redirect hop, explained. Need to test a regular expression? Live matches, capture groups, replace preview and code snippets. Need a JPG as a PNG? Batch convert in your browser, with optional transparent background. Need somewhere to jot things down? Private notes, links, to-dos and reminders saved in your browser. Need just some pages of a PDF? Split by page, range or chunk, or extract the pages you pick. What is hiding inside that image? EXIF camera settings, GPS tags, colour palette and web checks.