Text Compare

Find the difference between two texts. Changes are highlighted side by side or in one column, by word or by character — 100% in your browser, nothing is uploaded.

Original text
Changed text
or press Ctrl + Enter·

Suggested tools

Compare PDF

Upload two PDFs and see the differences in their text highlighted.

PDF
Open Tool

JSON Compare

Compare two JSON documents and see the differences highlighted.

JSON
Open Tool

Compare Lists

Find items that are in both lists, only in the first, or only in the second.

TEXT
Open Tool

Remove Duplicate Lines

Remove duplicate lines from a list — dedupe text with case, trim, sort and keep-first/last options.

TEXT
Open Tool

Word Counter

Count words, characters, sentences, lines and paragraphs.

TEXT
Open Tool

Case Converter

Convert text to UPPER, lower, Title, camel, snake, kebab case.

TEXT
Open Tool

About Text Compare

Text Compare is a free diff checker that shows exactly what changed between two versions of a text — a contract clause, an essay draft, a config file, code, or a list. Removed text is highlighted in red and added text in green, side by side (Split) or in one column (Unified), with changes marked word by word or character by character.

You can ignore differences in letter case or whitespace, transform both texts at once (sort lines, trim spaces, remove blank lines, lowercase), jump from change to change, hide unchanged lines, open or drag in files, and export the result as a .diff file. It runs entirely in your browser, so nothing you paste is uploaded.

How to use Text Compare

  1. Paste or drop the original text on the left and the changed text on the right.
  2. Press Find difference.
  3. Switch between Split and Unified, word and character highlighting, and step through the changes.

Key features

  • Split (side-by-side) and Unified views
  • Word- and character-level highlighting
  • Ignore case and whitespace; sort, trim and clean both texts
  • Open or drag in files; export as .diff

When to use Text Compare

  • Checking what changed between two drafts of a contract or essay.
  • Comparing two versions of a config file or code snippet.
  • Proofreading a copied text against the original.

Tips and common problems

  • Switch to character mode for small changes such as a single digit or punctuation mark.
  • Turn on "ignore whitespace" when comparing text copied from different programs.
  • Use "hide unchanged lines" to focus on the differences in long texts.

Frequently asked questions

It uses a proven diff algorithm (the same approach as Google's diff-match-patch) to find the smallest set of insertions and deletions that turns one text into the other, then highlights the changed words or characters inside each line.

Guides

  • How to Remove Duplicate Lines — Remove duplicate lines from lists of emails, URLs, keywords or SKUs, and learn the options that matter: case sensitivity, trimming, sorting, duplicates only.