Developer tools

Text Compare

Text Compare

Compare two pieces of text word by word and see every insertion and deletion highlighted inline.

About this tool

About Text Compare

For prose, a line-by-line diff isn't much help: change one word in a long paragraph and the whole paragraph is flagged. Text Compare works word by word instead, so an edited essay, a revised contract clause, a rewritten product description or two translations of the same paragraph show precisely which words were removed (struck through in red) and which were added (in green), in the flow of the text. Ignore case to skip capitalisation changes, and ignore whitespace so doubled spaces and re-wrapped lines don't count as edits. The header counts what was added and removed. Need more detail? Switch to Characters to catch single-letter typos and changed digits, or to Lines with the side-by-side view for code and structured files, and download the changes as a standard .diff patch. Open .txt or .md files on either side or paste directly. Nothing is uploaded: both texts are compared on your own device, which matters for unpublished writing and confidential documents.

Built and maintained by Abhi JainUpdated

How to Compare Two Texts Word by Word

  1. 1

    Paste both versions

    Put the earlier text in Original and the revised text in Changed, or click Open to load files.

  2. 2

    Keep Words selected

    Compare by is set to Words; switch to Characters for typos or Lines for code.

  3. 3

    Ignore noise

    Tick Ignore case or Ignore whitespace if formatting changes don't matter.

  4. 4

    Read the changes

    Removed words are struck through in red and added words are green in the Differences panel.

Text Compare: questions and answers

How can I compare two documents for differences?

Copy the text of each document into the two panels, or open .txt and .md files directly. For Word or PDF files, extract the text first, for example with PDF to Text, then compare. To compare the text of two PDFs directly, use Compare PDF Text.

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

Line mode marks whole lines as changed, which suits code. Word mode marks only the words that differ inside the text, which suits paragraphs where a line can hold many sentences.

Does it detect moved paragraphs?

A moved block shows as deleted in its old position and added in its new one. Diff algorithms find the smallest set of insertions and deletions; they don't track moves.

Is my text private?

Yes. The comparison runs entirely in your browser and nothing is sent to a server or stored.

More Diff Checker presets