Compare two texts online — find the differences

Paste the original on the left and the changed version on the right. Words that were added, removed or changed are highlighted in red as you type; everything the two texts share stays green.

−0 changed in text 1
•
+0 changed in text 2
•
0% similar
Text 10 chars
Text 20 chars
Green = in both textsRed = added, removed or changed· = space, ↵ = newline

About the Text Compare

Compare two texts online and see exactly what changed: paste the original on the left and the edited version on the right, and every word that was added, removed or replaced turns red while shared text stays green. The texts are aligned word by word, so inserting one word marks only that word, not the rest of the sentence. Useful for contract edits, copy revisions, error messages and config values.

How to use the Text Compare

  1. Paste the original text into Text 1 and the changed version into Text 2 (or click Try an example).
  2. Read the highlighting as you type: red in Text 1 is what was removed or replaced, red in Text 2 is what was added or replaced. A space shows as · and a line break as ↵, so whitespace changes are visible.
  3. Check the stats bar: how many changed passages each side has, and an overall % similar. Identical texts say so explicitly.
  4. Click Clear to empty both panels.

Worked example: what the highlighting shows

Each row is a real comparison. Words count as units, so a changed number or a respelled word is marked as a whole, and punctuation is compared on its own.

Text 1Text 2Marked in Text 1Marked in Text 2% similar
The cat sat on the mat.The black cat sat on the mat!the final .black, and the final !85%
Shipping is free on orders over $50.Shipping is free on all orders over $75.50all, 7589%
Invoice #4471Invoice #44174471441769%

Comparing strings, lines and documents

To compare two strings, such as two API keys or IDs, paste one in each panel: if they match, the bar says the texts are identical; if not, the differing word is marked. Because the comparison is word by word, a single wrong digit inside a long token marks the whole token, so look inside the red word for the exact character.

For long documents, compare one section at a time so the highlighting stays readable on screen. Very large inputs (thousands of words that differ at both the start and the end) are compared line by line to keep typing responsive. For two JSON documents, use Compare JSON, which ignores key order and whitespace and lists differences by path. To check whether two very long strings are exactly equal, compare their SHA-256 values in the hash generator.

Spot edits between two text versions instantly

Contracts, configs, and copy decks bounce between people. When someone says "only small tweaks," a side-by-side compare shows exactly what moved - without diffing line numbers in a terminal or squinting at two browser tabs.

Paste before and after from email, Word, Google Docs, or Slack. Highlighted differences make it obvious when a comma, legal clause, price, or key phrase changed.

Common use cases for online text comparison

Legal and contracts teams use text compare to review redlined documents when collaborating across Word and Google Docs. Instead of tracking changes manually, pasting both versions into a compare tool surfaces every edit in seconds.

Developers use it to compare copied snippets, error messages, or config values when a tool does not have built-in diff - for example, comparing two JSON strings after manual edits, or checking that a migrated config file matches the original intent.

Text compare vs diff checker: which should you use?

Both show differences, but they serve different audiences. This text compare is built for prose and short snippets: it highlights changed words in a side-by-side layout suited to emails, documents and copy.

A diff checker is better for code and structured data where line-by-line context matters. For anything you would read in a text editor rather than an IDE, the text compare view is faster to scan and share with non-technical stakeholders.

Text Compare: frequently asked questions

How do I compare two texts online?
Paste your first text into the left panel and the second text into the right panel. The texts are aligned word by word and every added, removed or changed word is highlighted in red, with shared text in green.
What kinds of text can I compare?
Any plain text works - contracts, emails, article drafts, code snippets, configuration files, CSV rows, or any other text where you need to find what changed between two versions.
Is my text kept private?
Yes. The comparison runs entirely in your browser with JavaScript. Your text is never sent to a server, making it safe to paste contracts, internal documents, or sensitive configurations.
Can I compare two strings?
Yes. Paste one string in each panel. If they are exactly equal the stats bar says the texts are identical; otherwise the differing word is highlighted, and spaces and line breaks are shown as · and ↵ so invisible differences stand out.
Can I compare text files?
Open your file in any text editor, select all, and paste into the comparison panel. The tool accepts any plain text regardless of the original file format.