⚡
usefultools.dev
±

Compare Text – Online Text Diff Checker

NEW

Compare text online: paste two texts or open two files and see every difference line by line, with word highlights and a copyable patch. Free, in your browser.

Runs 100% in your browser — your input is never uploaded or stored on our servers.

+1 added−1 removed~2 changed4 unchanged
Original
1 Shopping list
2-- milk
3 - eggs
4-- bread
5 - coffee beans
6
7-Pick up at 5 pm.
Changed
1 Shopping list
2+- oat milk
3 - eggs
4 - coffee beans
5+- apples
6
7+Pick up at 6 pm.
⚡

Quick Examples

Typical inputs and the results this tool produces.

Words
red apple / red pear
1 changed: apple → pear
Lines
a, b / a, b, c
+1 added (+c)
Lines
x, y, z / x, z
−1 removed (-y)
Options
Hello World / hello world
Identical (ignore case + space)
Options
a, (blank line), b / a, b
Identical (ignore blank lines)
Patch
a, b / a, b, c
@@ -1,2 +1,3 @@
📖

Overview

This tool compares two texts and shows exactly what changed between them: a config file, a contract clause, an email draft or a code snippet. Lines are matched with the Myers algorithm (the same idea used by git diff), and changed lines get word- or character-level highlights so you can spot a single edited word.

Switch between a side-by-side view and a unified view, collapse long unchanged stretches, and ignore whitespace or letter case when only the content matters. The unified diff can be copied as a standard patch.

You can paste the texts or open two text files. The comparison runs entirely in your browser — nothing you paste or open is uploaded.

Why use this tool?

  • Spot one changed word in a long text
  • Copy a standard unified diff patch
  • Ignore whitespace or case noise
  • Private: texts never leave your browser
⭐

Features

🔍

Inline highlights

Changed lines show the exact words or characters that differ.

↔️

Two views

Side-by-side panes (stacked on phones) or a single unified list.

⚙️

Ignore options

Ignore case, extra whitespace and blank lines when comparing.

📂

Open text files

Load either side from a .txt, .md, .json, .csv, .log or similar file up to 2 MB.

📊

Change stats

Counts of added, removed, changed and unchanged lines.

📋

Unified patch

Copy the diff in the standard @@ hunk format with 3 lines of context.

🧹

Collapse unchanged

Long runs of identical lines fold into a single marker.

🛠️

How to Use

1

Paste or open both texts

Put the old version in "Original text" and the new one in "Changed text", or open a text file for either side.

2

Set options

Tick Ignore whitespace / Ignore case and choose word or character highlights.

3

Pick a view

Choose Side by side or Unified; use Swap to reverse the direction.

4

Copy the diff

Click "Copy unified diff" to paste the patch into a review or ticket.

🤔

Frequently Asked Questions