Free Text Compare (Diff Checker)

Paste or upload two versions of a text and see exactly what changed, line by line and word by word. It runs in your browser, so your text and files are never uploaded.

Upload works with .txt, .md, .csv, .json, .docx and code files (.html, .css, .js, .ts, .py and more). Up to 5 MB.

Runs on your device. Files and text are never uploaded. Share links keep your text inside the link itself.

Differences

Paste text or upload a file in both boxes, or try the Sample, to see what changed. Removed text is red, added text is green.

Why use it

Spot Every Change in Seconds

Reading two versions side by side is slow and easy to get wrong. Paste both and let the highlights show you what moved.

Word-level highlights

Changed words are marked inside the line, not just the whole line.

  • Removed text in red
  • Added text in green
  • Split or unified view

Made for everyday use

Simple controls for the checks people actually do.

  • Upload files or drag and drop
  • Copy each text, both texts or the diff
  • Copy share link
  • Ignore case and whitespace

Private by design

No account, no upload, no server copy of your text.

  • Runs on your device
  • Share links keep text inside the link
  • Works on any device

How to compare two texts

  1. Paste or upload both texts

    Put the original on the left and the changed version on the right. You can also upload or drop a file on each side.

  2. Read the highlights

    Red is removed, green is added. Use Prev and Next to jump between changes.

  3. Adjust the options

    Ignore case or whitespace, hide line numbers, or show only the changed lines.

  4. Share the result

    Copy a link that opens the same comparison, or copy or download the diff as text.

What each option does

OptionWhat it doesExample
Upload fileLoads a text, code or .docx file into that sideDrag a file onto a box
Ignore caseTreats capital and small letters as the sameApple = apple
Ignore whitespaceIgnores extra spaces and indentationa b = a b
Line numbersShows or hides the line numbersHide them for plain paragraphs
Only changesHides long runs of unchanged linesShows 2 lines around each change
Split / UnifiedSide by side, or one column with − and +Unified is easier on a phone
SwapSwitches the left and right textsOriginal ⇄ Changed
Copy optionsCopy each text, both texts, the diff, or only added or removed linesCopy added lines → paste into a doc
Copy share linkCopies a link to this exact comparisonSend it instead of screenshots
Words and charactersShows how much longer or shorter the text gotWords 120 → 125 (+5)

How the diff checker works

The tool first compares the two texts line by line and finds the smallest set of lines to remove and add. Where one line changed into another, it then compares the two lines word by word, so you see which words changed.

The summary counts lines. A line that exists in both texts but was edited is counted as changed. A line only in the changed text is counted as added, and a line only in the original is counted as removed.

Step 1Compare line by line
Step 2Compare word by word
Edited lineChanged
Line only in changed textAdded
Line only in originalRemoved

Share links and privacy

  • Your files and text are compared in your browser. Nothing is uploaded.
  • A share link keeps both texts after the # sign, which browsers never send to a server.
  • Anyone who has the link can read both texts, so only send it to people who should see them.
  • Very long texts do not fit in a link. Use Copy diff, Copy added or removed lines, or Download .txt instead.

Tip: if the text is private, copy the diff instead of sharing a link.

More free tools

Frequently Asked Questions

Free, private, runs in your browser.

Is my text uploaded anywhere?

No. Everything is compared in your browser. Open your browser’s network tab while you type and you’ll see no requests carrying your text.

Can I compare Word or PDF files?

Word .docx files, yes: the text is read in your browser and loaded into the box. Old .doc files and PDFs are not supported, so copy the text from them and paste it. Plain text, .md, .csv, .json and code files all work, up to 5 MB.

How does the share link work without a server?

Both texts are packed into the link, after the # sign. Browsers never send that part to a server. Anyone with the link sees the same comparison.

Who can read a shared link?

Anyone who has the link, because the text is inside it. Treat it like sending the text itself.

Why can’t I share a very long text?

Links have a length limit. When the texts are too long, use Copy diff or Download .txt instead.

What is the difference between split and unified view?

Split shows the two texts side by side. Unified shows one column, with − before removed lines and + before added lines. It fits small screens better.

What does Ignore case do?

It treats “Apple” and “apple” as the same, so only real wording changes show up.

What does Ignore whitespace do?

It ignores extra spaces, tabs and indentation, so reformatted text does not show as changed.

How are changed, added and removed lines counted?

By line. An edited line is counted as changed. A line only in the changed text is counted as added, and a line only in the original is counted as removed.

What do the word and character numbers mean?

They compare the whole original and changed texts, so you can see at a glance if the text got longer or shorter, for example +5 words.

Can I compare code?

Yes, it works on any plain text, including code. It is not a Git tool, so it does not know about files or branches.

Will I lose my text if I refresh?

No. Your two texts and options are saved in this browser until you press Clear all.

Keep reading

From the AlloyPress blog

Last updated 2026-11-12 · Built and tested by the AlloyPress team · How we test