Free, no account

Compare Text Online and Spot Every Difference Instantly

You can compare text online and spot every difference the moment it appears. Paste two versions, or open a .docx, .pdf or .xlsx file, and this free text comparison tool marks every added, removed and rewritten line, word by word — nothing leaves your machine.

Runninglocally
2 clauses rewritten, 2 figures changed

Paste both versions and compare

Type into the two panes or open a file from disk. The diff marks added, removed and rewritten lines, and the words that changed inside each one.

compare.txt

Runs locally

4 lines · 39 words

4 lines · 39 words

Press Compare to see the changes.

Marks the words inside a line

A changed line is split into what left and what arrived, and the words inside it are marked where they differ.

Marks changed words

Only the words that moved are marked. A rewritten clause keeps the rest of its words plain.

Two views of one diff

Unified reads like a patch in one column; side by side aligns both versions row by row.

Jumps between change blocks

Previous and Next walk the diff block by block, so a long document is never scrolled.

Counts and line numbers

Added, removed and rewritten lines are counted as the diff runs, before you read a line.

A comparison in three steps

No settings to learn, and nothing to install.

1

Open two versions

Paste into the panes, or open a .txt, .md, .json, .csv or .log file from disk.

2

Press Compare

One click runs the diff in a worker, away from the page, so a large document does not freeze the tab.

3

Read the marks

Removed lines on the left, added lines on the right, changed words marked inside each.

Works on the files you already have

Plain text and code in any extension, plus Word, Excel and PDF through the dedicated tools. Every comparison stays on your machine.

Text and code

.txt .md .log .json .csv and source files in any language

Compare text

Documents

.docx paragraphs and text-based .pdf, read as text

Compare documents

Data

.xlsx cells and formulas, .json keys and values

Compare data

Two everyday uses for a text comparison tool

Proofreading: the approved draft and the published one

Approval rarely happens in one place. A draft is reviewed, edited in a second file, returned with comments, and published from a third copy. By the time the final version is ready, nobody can honestly remember which sentence came from the review and which was typed in afterwards. A text comparison tool settles the question in one pass: compare the approved draft with the file that is about to leave, and every changed word is attached to the line it belongs to. Added sentences appear as additions, a deleted disclaimer appears as a removal, and a date updated in one place but not another stops hiding inside a familiar-looking page. Editors use it before publishing, policy teams use it before a document is signed, and anyone who has approved a template can use it before pressing send.

A snippet checked before it is pasted

Code arrives in pieces. A function is pasted into a chat, a config block is copied from one server to another, or a bug report carries the version that failed beside the version that works. The snippets are short, which is why a quiet difference is easy to miss: a changed default, a removed guard clause, one flipped comparison. Comparing the snippets as text keeps the question simple. The changed lines are marked, the words inside them are marked again, and the surrounding lines stay still as context. That is enough to catch a missing null check before it reaches production, or to confirm that a refactor changed only the formatting. No repository, branch, or commit history is needed; the two snippets are the whole input.

Every word marked

Red for what left, green for what arrived, plain for what stayed. The diff marks the words that changed and leaves the rest of the line plain.

Questions about the diff

Short answers to what people ask before they paste a document.

Is this text comparison tool free to use?

Yes. It is free, with no sign-up, no usage limit and no hidden cost. Paste two texts and press Compare.

Is my text uploaded to a server?

No. The comparison runs locally in your browser in a Web Worker, so the text never leaves your device and you can compare sensitive documents, code or personal data.

What file formats can I compare?

Paste text directly, or open plain-text files such as .txt, .md, .json, .csv and .log. Word, Excel and PDF each have their own tool. Files are read on your device and never transmitted.

How accurate is the comparison?

The tool compares both lines and words, so a single changed word inside a long paragraph is marked. Additions, removals and rewrites are all identified.

Can I compare large documents?

Yes. The diff engine runs in a Web Worker off the main thread, so a long document is processed without freezing the page.

What is the difference between unified and side-by-side view?

The unified view shows both versions in one Git-style stream with + and - markers. The side-by-side view gives each version its own column and aligns the rows. Both mark the same changes.