Send feedback

Coming from the page: Text Compare

One moment…

Lines, words, charactersArabic and EnglishNothing uploaded

Text Compare

Paste the original and the changed text: additions show in green and deletions in red.

Compare by
View

Your text never leaves your device: everything runs in your browser.

How to compare two texts

1

Paste both texts

Put the original in the first box and the changed text in the second, or open two TXT files.

2

Pick a comparison

Lines for documents, lists and code; words for articles; characters for numbers and names.

3

Read the differences

Green was added and red was removed. When comparing lines, the changed words inside a line are marked too.

Which comparison should I use?

Compare byBest forExample
LinesContracts, documents, lists and codeSee which clauses were added to or removed from a contract.
WordsArticles, emails and papersReview an editor's changes to an article.
CharactersNumbers, names, links and short wordsSpot a missing digit in an account number.

Useful options

Ignore diacritics. Compare Arabic with and without tashkeel without the marks showing up as changes.

Ignore spaces. Extra or missing spaces are not counted as differences, handy for text copied from PDFs.

Changed lines only. In long texts, identical lines are hidden, with three lines of context around each change.

Privacy: The comparison runs in your browser with the open-source jsdiff library. Your texts are never sent to a server or stored.

FAQ

How do I find the difference between two texts?

Paste the first text into “Original text” and the second into “Changed text”. The differences show at once: green was added, red was removed.

Does it work with Arabic?

Yes. Arabic is split into whole words and into letters with their diacritics, and you can ignore diacritics so they do not count as changes.

Can I compare two files?

Yes, TXT, CSV and similar text files: press “Open a TXT file” above each box. For Word or PDF files, copy and paste their text.

What is the difference between comparing by words and by characters?

By words, a whole word is marked when any letter in it changes, which reads better for articles. By characters, only the changed letter is marked, which is more precise for numbers and names.

Are my texts stored or sent anywhere?

No. Everything happens in your browser, and the texts are gone when you close the page.