Text Diff Checker

Paste two texts and see right away what changed: lines added, removed and edited, with the differences highlighted inside each line. Compare by line, word or character, ignore case and whitespace, and load text files. Everything runs in your browser, and nothing is sent to a server.

Texts to compare

Open file
Open file

Differences

Added0
Removed0
Unchanged0
Similarity0%

What a text diff checker is for

A text diff checker, or diff tool, shows exactly what changed between two versions of some content. It helps when you review edits to an article, check changes to a contract, compare code snippets, settings and lists, or verify that two copies of a text match.

How to read the result

Lines in green were added in the modified text, and lines in red existed in the original and were removed. When a line was edited, it appears on both sides and the words that changed get a stronger highlight. The unified view shows everything in one column, with - for removed and + for added, like version control tools.

Lines, words or characters

Use lines for lists, code and text organized in short paragraphs. Use words to review prose, where a sentence can be rewritten without changing the line breaks. Use characters to find small differences, like a swapped letter, a missing accent or a mistyped number.

Comparison options

Ignore case treats “House” and “house” as equal. Ignore extra whitespace disregards repeated spaces, tabs, and spaces at the start and end of lines. With the options on, the differences that remain are the ones that matter.

How the comparison works

The checker uses Myers' algorithm, the same principle behind diff and Git, which finds the smallest set of additions and removals that turns one text into the other. When the two texts are almost entirely different, the result is simplified to keep the page fast. For other everyday conversions, try the unit converter.

Frequently asked questions

How do I compare two texts online?

Paste the original text on the left and the modified text on the right. The comparison appears automatically, with added lines in green and removed lines in red. You can also open text files on either side.

What is the difference between comparing by line, word and character?

By line shows which lines changed and highlights the changed words inside them. By word and by character show the text as one flow, with removed text struck through and added text highlighted. Characters is useful for spotting a swapped letter.

What does the similarity percentage mean?

It is the share of matching items between the two texts, in the chosen unit: 100% means identical texts. It is calculated as 2 times the common items divided by the total items in both texts.

Are my texts sent to a server?

No. The comparison runs entirely in your browser, and your texts and files never leave your device.

Is there a size limit?

Files can be up to 2 MB. If the texts are long and very different, the comparison is simplified: everything in the original shows as removed and everything in the modified text as added, and a notice is displayed.