Sign up free

Online Text Compare and Difference Checker

Paste two versions and see every added, removed and changed line, down to the word.

About Text Compare

Text compare is for the moment you have two versions and need to know exactly what changed: a contract clause edited by the other side, two drafts of an essay, config files from two servers, or a translation that was quietly updated. Paste the original on the left and the new version on the right, or open a file on each side, and click Compare.

Changed lines are paired up and the exact words that differ are highlighted, so a single swapped number in a long paragraph is easy to spot. Switch between Side by side and Inline, and tick Ignore case or Ignore spaces to skip changes that don't matter. A summary counts added, removed and changed lines. Both texts stay in your browser.

How to use Text Compare

  1. 1
    Paste both versions

    Put the original in Original text and the new version in Changed text, or use Open file on each side.

  2. 2
    Set what to ignore

    Tick Ignore case or Ignore spaces if capitals or extra spaces shouldn't count as changes.

  3. 3
    Run the text compare

    Click Compare or press Ctrl + Enter. Swap reverses the direction.

  4. 4
    Review the changes

    Read them side by side or inline, with the changed words highlighted.

Why use Cubfile for this

  • Word-level highlights

    Inside a changed line, only the words that differ are marked, and Chinese is compared character by character.

  • Two views

    Side by side with line numbers for long documents, or Inline for phones.

  • Ignore case and spaces

    Hide noise such as re-capitalized headings or changed indentation.

  • Change summary

    See at a glance how many lines were added, removed and changed, or that the texts are identical.

FAQ

Text Compare: questions and answers

Can text compare ignore extra spaces and capital letters?
Yes. Tick Ignore spaces to treat runs of spaces and tabs as one, and Ignore case to treat A and a the same.
Can I use text compare on Word or PDF files?
Copy the text out and paste it here, or open plain-text files such as TXT, CSV, JSON or Markdown. To compare formatted documents, use Compare Word or Compare PDF.
How long can the texts be?
Texts of up to about two thousand lines each work fine. Longer ones ask you to compare a smaller part, because the line-by-line matching runs in your browser.
Is my text uploaded when I compare text online?
No. The comparison runs in your browser, so contracts and code never reach our servers, and it doesn't count toward any daily limit.
How are the changes shown?
Removed lines and words are marked on the original side, added ones on the changed side, and lines that differ on both sides are shown as changed with the exact words highlighted.
Share Text Compare with a friendIt runs in any browser, and they can try it without signing up.

Related tools

JSON JSON FormatterFormat, validate and minify JSON, errors pointed out by line.
TXT Text CleanerRemove extra spaces, empty lines and broken line breaks in one click.
TXT Word CounterCount words, characters, Chinese characters, lines and reading time live.
TXT Base64 Encode and DecodeEncode and decode Base64 text and files.
AaTXT Case ConverterUPPER, lower, Title, Sentence, camelCase, snake_case and more.
TXT Find and Replace TextReplace words in text in bulk, with regular expressions if you need them.
TXT Password GeneratorMake strong random passwords on your device.
TXT Remove Duplicate LinesDelete repeated lines and sort what’s left.