How to use TextCompareLab

How it works, FAQ and privacy

Compare texts

How to use TextCompareLab

  1. Paste the original text on one side and the changed text on the other.
  2. Choose the options you want, for example to ignore whitespace or letter case.
  3. Run the comparison. Added, removed and unchanged text are highlighted so you can see what changed.
  4. Switch between the side by side view and the unified view, then copy the result or download it as a text file.
  5. The last 10 compared pairs are added to the history list in this browser automatically. Rename one in History to keep it.

It works for drafts, contracts, essays, notes and code snippets.

Examples and tips

Reading the result

Red lines exist only in the original text. Green lines exist only in the changed text. When a line changed, the words that differ are marked inside the line, so a single replaced word is easy to spot. Lines with no colour are the same on both sides.

Example: a contract clause

Original: The supplier delivers the goods within 30 days. Changed: The supplier delivers the goods within 14 days. The comparison marks only 30 and 14, so a small change in a long contract does not get lost in the page.

Example: an edited paragraph

Paste your first draft on the left and the edited version on the right. Turn on Changed lines only to hide the paragraphs you did not touch, and use Next change to jump from one edit to the next.

Example: two versions of a list or a configuration

For lists, notes or settings, each line is compared as a unit. A line that appears only on one side shows as added or removed. If the same lines are in a different order, they show as changes, because the comparison follows line order.

Options

  • Ignore whitespace: spaces and tabs at the edges of a line, and extra spaces between words, do not count as differences.
  • Ignore case: Hello and hello count as the same.
  • Changed lines only: shows only the lines that changed. Each run of unchanged lines is replaced by a short note such as "3 identical lines". Turn the option off to see everything.

Copy and download

Copy puts the comparison on your clipboard as plain text. Download saves it as a file named comparison.txt. In that text, lines starting with - are from the original, lines starting with + are from the changed text, and lines starting with two spaces are unchanged. Both actions run in your browser and nothing is sent to a server.

Share a result

The Share button creates a link that contains both texts. You choose whether to protect it with a password. With a password (the recommended option), the texts are encrypted in your browser and a separate random password is created: send the link and the password in two separate messages. Without a password, the texts are placed in the link unencrypted, so anyone who gets the link can read them. Your own email, WhatsApp or Messages app opens with the text ready, and you choose the recipient and press send. Whoever has the link (and the password, if you used one) can read the texts. A link cannot be turned off or limited to one use, and very long texts are too big to share this way (use Download instead).

Frequently asked questions

Is my text uploaded anywhere?

No. The comparison runs in your browser. The text you paste is not sent to TextCompareLab to be compared.

Is TextCompareLab free?

Yes. The site may show advertisements.

Are my saved comparisons kept?

Saved comparisons are kept only in this browser on this device. Clearing your browser data removes them, and they do not follow you to another device or browser.

How does sharing a result work?

With a password, the link holds the texts encrypted with a random password that is never part of the link. Without a password, the link holds the texts unencrypted. The site does not store the texts or the password. Send the password separately. Anyone with the link (and the password, if used) can read the texts, and the link cannot be revoked.

Is there a size limit?

There is no fixed limit for pasted text, but very large texts can be slow on older devices because everything is processed locally. Word and PDF files are limited to 20 MB and 500,000 characters each, and PDFs to 100 pages.

Does it work on a phone?

Yes. The page adapts to small screens.

Can I clear what the site saved?

Delete items in the history list, or clear this site's data in your browser settings.

Privacy policy

Last updated: November 14, 2026.

Your texts

The comparison happens on your device. The texts you paste are not uploaded to a TextCompareLab server. If you use Share, the texts are placed inside the link itself, encrypted in your browser if you choose a password, and you send the link yourself. The part of the link after the # is not sent to the website's server.

Data stored in your browser

The site uses your browser's local storage, which stays on your device, to remember:

  • your analytics choice (Allow or Decline);
  • your theme choice (Auto, Light or Dark);
  • your comparison options;
  • saved comparisons in the history list. When you run a comparison it may be added to the history automatically. A saved entry includes the two texts you compared.

Anyone using the same browser profile on your device can see these entries. Delete them from the history list or clear this site's data in your browser settings.

Analytics (optional, with your permission)

If you choose Allow on the analytics banner, the site loads Google Analytics 4, a visit-measurement service from Google. It records the page address (share-link texts and URL parameters are stripped before anything is sent) and standard visit metadata: an approximate region derived from your IP address (Google states the IP address itself is not stored), device, browser and language, and a random client identifier kept in Google cookies (_ga). Texts you paste or compare are never sent. Advertising features stay off. The site's Google Analytics is set to delete event- and user-level data automatically after 2 months; Google's aggregated reports may be kept longer. Your choice is stored in this browser's local storage so the banner does not reappear. You can change it at any time from the Privacy choices link in the footer: withdrawing stops future measurement and removes the Google Analytics cookies where the browser allows it.

Fonts

Pages load fonts from Google Fonts, so your browser sends a request to Google when the page loads. This request does not include your pasted text.

Advertising

The site is connected to Google AdSense and may show advertisements. Google and its advertising partners may use cookies or similar technologies to show and measure ads, and in some cases to personalize them, according to your region and settings. This does not include the text you paste. See how Google uses information from sites that use its services and Google Ads Settings to manage personalized ads.

Contact form

If you send a message through the contact page, the name, email address (optional) and message you type are sent to the site owner by email. They are used only to read and answer your message. The contact form does not include the texts you compared. Please do not put sensitive information in the message. The contact page uses Cloudflare Turnstile to block automated spam, which runs a check in your browser and may process technical information such as your IP address.

Analytics and accounts

The site has no accounts and no sign-in. It uses Cloudflare Web Analytics to count page views and visits and to measure how fast pages load. Cloudflare states that this collects minimal timing metrics and does not track individual end users across websites. This does not include the text you paste.

The site also keeps simple counts of how often the Compare button (or Ctrl/Cmd+Enter) is used and how many of those comparisons finish. Each Compare action sends one empty request from your browser to a small Google Apps Script service (script.google.com), without cookies and without a referrer, and the service adds 1 to the hourly counts (to both counts if the comparison finished). The counts are kept in a private Google Sheet. Hourly rows are kept for at most 166 hours (just under 7 days) and are deleted on each new count and by an hourly cleanup. This is not a hard guarantee: if Google delays or skips the cleanup, older rows can remain until it next runs. To add an approximate country, the page reads your two-letter country code from a request to this site's own connection endpoint (Cloudflare, /cdn-cgi/trace, made once per page visit when the first count is sent); only that country code, not your IP address, is sent to the Google service and stored with the counts, and VPNs can change it. A separate counter records the first successful comparison in each page opening, including automatic comparisons while typing or pasting and comparisons after opening a text file. It counts at most once until the page is reloaded or reopened, not once per edit; loading History or opening a shared comparison does not itself count. The original button and keyboard-action counts remain separate. Only an event category and the approximate country code are sent, never the texts, text hashes, shared links, passwords, identifiers or comparison settings. Clearly marked validation counts are kept separate from this new counter. Like any request to a website, these requests are processed by Google, which handles ordinary connection data such as the IP address under its own policies; the counter code does not read or store that data. Counts are approximate. The new counter measures page openings with a successful comparison, not unique people or every comparison.

Word and PDF tools

The Word and text-PDF tools read supported files locally in your browser using libraries served from this website. Files, extracted text and file names are not uploaded for processing or included in usage counters. Imported text is not automatically added to local History on these tool pages; explicitly saving, copying or making a shared link remains your choice. The tools compare extracted text, not layout, images or tracked changes. Image-only scanned PDFs and encrypted files are not supported. The site also counts clicks on Word/PDF navigation links, file-opening buttons, and Compare or its keyboard shortcut in separate categories, using the same approximate country and rolling retention policy described above. A click is not evidence that a file was selected or a comparison succeeded. Validation clicks are kept separate. The file tools do not load the advertising script; ordinary website connection metadata still reaches the hosting provider.

Changes

This policy may be updated. The date above shows the latest update.