ToolsEdit PDFArticlesPricingContact
TryPDFKit
Documents tool

Compare Two Texts

Paste an original and a changed version to see exactly what was added and removed, line by line or word by word. The comparison stays in your browser.

  • 3 free uses, no sign-up
  • Line or word diff
  • Text stays on your device
  • Ignore case and spaces
First text
Second text
How was Text compare?
Be the first to rate this tool.
1How it works

Text compare in three steps

  1. 01

    Add the two texts

    Paste the original in the first box and the changed version in the second, or open files.

  2. 02

    Pick the comparison

    Compare line by line or word by word. For lines, show the whole text or only the changes with two lines of context.

  3. 03

    Read the differences

    Removed and added parts are marked in the result, which you can download as a text file.

2The details

What you get, and what to know

What you get

  • Line by lineEach line is marked - (removed), + (added) or left unmarked, with line numbers from both texts.
  • Word by wordRemoved words appear as [-like this-] and added words as {+like this+}, ideal for edited sentences.
  • Only the changesHide everything that is the same except two lines around each change.
  • Ignore noiseTreat upper and lower case as equal, and ignore extra spaces in line mode.
  • Summary countsSee how many lines or words were added and removed.

Good to know

  • Plain text onlyFormatting is not compared. For Word files with tracked changes use Compare Word documents.
  • A text report, not a colored viewDifferences are shown with markers in a text file, not highlighted in color.
  • Moved textA paragraph that moved appears as removed in one place and added in another.
3Use cases

When people use Text compare

Check an editor's changes

See what changed between two drafts.

Compare config files

Spot a setting that differs between two versions.

Review contract wording

Find small changes in a clause sent back to you.

Compare sources

Look for passages that are the same across two texts.

Line mode or word mode?

Line mode is best for lists, code and data where each line stands on its own. It shows which lines were added or removed entirely.

Word mode is better for prose. A single changed word inside a long paragraph would turn a whole line red in line mode, but word mode marks just that word.

Reading the markers

In the report:

  • A line starting with - existed only in the first text.
  • A line starting with + exists only in the second text.
  • In word mode, [-removed-] and {+added+} show changes inside the flow of text.

Compare other things

For Word files try Compare Word documents. For JSON data use JSON diff, and for PDFs Compare PDF. To unify spacing before comparing, use Remove extra spaces.

4FAQ

Questions, answered

How do I compare two texts for differences?+

Paste both texts, choose line or word comparison, and read the marked result.

Are my texts uploaded?+

No. The comparison runs in your browser.

Can it ignore capital letters?+

Yes. Tick Ignore upper/lower case.

Can I see only what changed?+

In line mode, choose Only changes. Two lines of context are shown around each difference.

Does it compare Word formatting?+

No, only text. Use Compare Word documents for DOCX files.

Will it work on a phone?+

Yes, though two large boxes are easier on a bigger screen.

+Keep going

Related tools