Compare Text Online – Free Text Diff Checker
Paste two texts and see every added, removed and changed line side by side.
Processed on your device · no uploadView
Original text0 lines · 0 characters
Changed text0 lines · 0 characters
Paste or load two texts to compare them.
Use cases
Find differences between drafts
Spot every change between two versions of a document, contract or translation.
Compare code and config
Diff JSON, CSS or .env files before you deploy. Nothing leaves your browser.
Check pasted content
See what was edited after text moved from one place to another.
Match line for line
Confirm two passages are the same while ignoring spacing and case.
Review long documents
Large inputs are compared in a worker, so long texts stay fast.
Share a change list
Copy the diff as plain +/- lines to paste into a ticket or chat.
How to use Compare Text
Paste both texts
Put the original on the left and the changed version on the right, or drop two text files.
Choose how to compare
Pick side by side, unified or inline; ignore whitespace or case if they do not matter.
Read the differences
Added lines are green, removed lines red. Copy the diff or swap the sides.
Frequently asked questions
Is my text uploaded anywhere?
No. The comparison runs in your browser; nothing is sent to a server.
How does it compare the texts?
Line by line with the Myers diff algorithm, the same approach git uses. A changed line shows as one removed and one added line.
What do Ignore whitespace and Ignore case do?
Ignore whitespace treats runs of spaces and tabs as one space and trims line ends. Ignore case compares lines without regard to upper or lower case. Newlines are never ignored.
Can I compare large files?
Yes. Inputs over about 200 KB are compared in a background worker so the page stays responsive.
Which files can I load?
Any plain-text file such as .txt, .md, .json, .js, .ts, .css, .html, .xml or .csv. You can also drop a file onto either box.