Text Compare

Paste two versions, see exactly what changed. Press Ctrl + Enter to compare instantly.

Original
Changed
Highlight by

Nothing to compare yet

Paste text into both boxes, drop in two files, or start with a ready-made pair and poke around.

A plain-English guide to comparing text online

Whether you are chasing a stray comma in a contract or a missing bracket in a config file, this guide covers what a diff checker does, how to read what it shows you, and how to keep the results readable.

What is a diff checker (text compare tool)?

A diff checker takes two versions of a text and shows you precisely what is different. Instead of reading both copies side by side and hoping your eyes catch every edit, you paste each version in and let the tool mark the lines that vanished, the lines that appeared, and the exact words that were swapped.

The name comes from diff, a Unix command from the 1970s that programmers used to see how one file had drifted from another. The same trick now helps editors track revisions, lawyers review contract changes, and anyone who has ever asked, “So what did you actually change?”

Red row: this line exists only in the original.
Green row: this line exists only in the changed version.
Darker patch: the precise words or letters that differ inside a line.
Plain row: identical in both versions, nothing to review.

What are the key features?

Plenty of tools can tell you two texts are different. The useful ones tell you where, by how much, and whether it matters. Here is what you get in this one.

Results while you type

Edit either box and the comparison refreshes a heartbeat later. Prefer to stay in control? Switch Live off and press Compare when you are ready.

1<li className="col">
1<li class="col">

Two ways to read

Side by side on a desktop, stacked like a patch file when you need a single column. Phones get the stacked layout on their own.

SplitUnified

Changes inside lines

Pick line, word, or character precision to catch a single swapped letter.

recievereceive

Rules that cut the noise

Ignore case
Ignore whitespace
Skip blank lines

Minimap and hotkeys

A slim strip shows where changes cluster. Tap N or P to hop between them.

Drop files in

Drag a .txt, .md, .json, .csv or source file onto either panel. Up to 5 MB each.

notes-v2.md

Patch export

Copy or download a standard unified patch.

@@ -4,3 +4,3 @@
-version 1.4.2
+version 1.5.0

Your text stays on your device

The comparison runs inside your browser tab. Nothing is uploaded, stored, or logged, so drafts, contracts and credentials-adjacent configs stay yours.

Your textThis browser tab- - - A server

How to compare long texts online

Checking a two-line snippet is easy. Checking a forty-page policy or a 5,000-line export is where a sensible routine saves your afternoon.

  1. 1

    Load both versions

    Paste into each box or drop the files straight in. Older text goes on the left, newer on the right.

  2. 2

    Choose your rules

    Reflowed paragraphs or re-indented code? Turn on Ignore whitespace before you look at anything.

  3. 3

    Hide what did not change

    Switch on Hide unchanged lines. You keep three lines of context around every edit, and can unfold any gap with a click.

  4. 4

    Hop between changes

    Use the minimap, the arrow buttons, or the N and P keys instead of scrolling for pages.

  5. 5

    Take the result along

    Copy the patch or download a .diff file to attach to a ticket, a pull request, or an email.

AddedRemovedRewrittenOn screen

Reading the minimap on big files

The strip beside the results is a thumbnail of the whole comparison. A tight cluster of marks means a heavily edited stretch; empty space means calm. Click anywhere on it to jump there.

Results with more than a few thousand rows fold their unchanged parts automatically so your browser stays quick. If two texts have almost nothing in common, the tool shows the clashing stretch as one big replacement instead of grinding through it. For the sharpest result on a very large document, compare it chapter by chapter.

How does this text compare tool work?

There is no secret server and no black box. Four small steps run in your browser each time the text or a rule changes.

Cut into lines

Both texts are split at every line break, whether it came from Windows, macOS or Linux.

Prepare a matching copy

Case and spacing rules are applied to a hidden copy used only for matching. What you see on screen is always your original text.

Find the shortest edit path

A Myers-style search, the same approach Git uses by default, finds the fewest removals and additions that turn one text into the other.

Pair up and zoom in

Removed and added lines sitting together are paired, then compared again word by word or letter by letter. You see “Name” disappear, not a wall of red.

Why use this tool instead of the others?

Most online diff tools handle the basics. The gaps show up when your texts get long, messy, or private. This one was built around those moments.

The right-hand column is a general picture of what you tend to find elsewhere. It varies, so treat it as a rule of thumb.

What you care aboutThis toolTypical online diff
Updates as you typeYes, with a manual optionOften needs a button press
Edits inside a lineLine, word or character precisionFrequently whole lines only
Case, spacing and blank-line rulesAll three, freeSometimes locked behind a plan
Finding your way through long resultsMinimap, next and previous, foldingScroll and hope
PrivacyNever leaves your browserVaries from site to site
Reading on a phoneSwitches to a stacked layoutOften a cramped two-column view
Sharing the outcomeCopy or download a patchVaries
Account or sign-upNot neededVaries

Who needs a diff checker, and what are they comparing?

If your work involves text that gets revised, you are already the target audience. These are the usual suspects.

  • Developers
    Pull request snippetsConfig filesAPI responsesMigration scripts
  • Writers and editors
    Draft revisionsHeadlinesTranslated copyStyle guide updates
  • Legal and compliance teams
    Contract redlinesPolicy updatesTerms of serviceClause libraries
  • Students and researchers
    Essay draftsCitation listsLab notesDataset exports
  • Marketers and SEO specialists
    Landing page copyMeta titlesRedirect mapsrobots.txt
  • Support and IT teams
    Log filesServer configsError outputSettings exports
  • Data analysts
    CSV exportsSQL queriesSchema definitionsReport text

How to get a cleaner comparison

A noisy diff is a useless diff. When every line lights up because of a stray space or a different line ending, nothing stands out. A few habits keep the signal strong.

Back to the tool
Ignore whitespace
total = 4
total = 4
Treated as identical

Let spacing slide when it carries no meaning

Indentation changes, trailing spaces and doubled spaces are the number one source of false alarms. Switch this on for code, copied web text and anything that was reflowed.

Ignore case
Hello World
hello world
Treated as identical

Forgive capitalisation when you are checking content

Comparing exported lists, email addresses or headlines? Case is rarely the point. Leave it off for case-sensitive things like variable names.

Skip blank lines
intro body
intro body
Blank line ignored

Skip the empty lines

Extra paragraph breaks should not drown out real edits. This keeps the comparison focused on lines that contain something.

Tidy both sides first
{"b":1,"a":2}
{"a":2,"b":1}
Still flagged, so sort first

Put both versions in the same shape

A diff reads order literally. Sort keys, run a formatter, or export both files with the same settings before you paste them in.

Match the precision
recieve
receive
Char mode flags two letters

Pick line, word or character on purpose

Line suits structured data, Word suits prose, Char suits typos and IDs. If the highlights look busy, step one level up.

Fold and chunk
…212 unchanged lines…
…
Only the edits stay in view

Collapse the calm parts, compare big files in chunks

Hide unchanged lines to review just the edits, then unfold a gap only when you need the context around it.