MicroSAS
EN

Compare text

Paste two versions of a text and instantly see what has been added, removed and changed, by line, word or character. It also opens .txt, .md and .docx files. Everything happens in your browser.

  • Free
  • No sign-up
  • Your texts never leave the browser

How it works

  1. 1

    Paste both texts

    The original on the left and the modified one on the right, or open a .txt, .md or Word (.docx) file.

  2. 2

    Choose how to compare

    By line (ideal for code and lists), by word (for essays and contracts) or by character.

  3. 3

    Review the differences

    Additions in green and deletions in red. Jump from one change to the next with the arrows and download the result.

How are the texts compared?

We use the Myers algorithm, the same one tools like Git are based on, which finds the smallest number of changes to turn one text into the other. When comparing by line, the exact words that change within each line are highlighted too.

Options to ignore differences

If you only care about changes in content, you can ignore case, extra spaces or punctuation marks. With “Hide unchanged parts” identical passages are collapsed and you only see the changes with a little context.

Long texts and privacy

The comparison runs in a separate browser process, so it handles documents of tens of thousands of words without freezing the page. No text is sent to a server: you can safely compare contracts or confidential documents.

Ideas for using it

Review contracts

Check what has changed between the version you sent and the one you get back.

Text corrections

See the corrections an editor or proofreader has made to your writing.

Code and settings

Compare two versions of a code file, a JSON file or a configuration file.

Essays and translations

Spot the paragraphs that were copied or changed between two versions of a piece of work.

Frequently asked questions

Are my texts sent to a server?

No. The comparison is done with JavaScript in your own browser and the texts never leave your device.

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

By line marks the lines that change and, within them, the words; it is best for code and lists. By word shows the running text with the added or removed words. By character detects even a single changed letter or accent.

Can I compare Word documents?

Yes, open the .docx files with the “Open file” button and their text is extracted. The text is compared, not the formatting (bold, colors or tables). To compare PDFs use our Compare PDF tool.

Is there a size limit?

There is no fixed limit. Texts of 50,000 words are compared in a second or two. If the texts are huge and very different, some blocks are shown as fully replaced so it does not take too long.

How do I save the result?

Press “Download HTML” to save a page with the colored differences that you can open in any browser or print to PDF, or “Copy result” to paste it into an email or a document.

More free tools