Skip to content
ToolPika

Text Diff

Paste the original and the changed text to see every difference, line by line, with the changed words highlighted.

Differences

Paste two texts to compare them.

Runs in your browser. Nothing you enter is sent to a server.

How it works

Both texts are split into lines and compared. The result is a single list, like a Git diff:

  • Lines only in the original are marked removed (red, −).
  • Lines only in the changed text are marked added (green, +).
  • Lines in both are shown unchanged, with their line number in each version.

When removed lines are directly followed by added lines, they are paired and compared word by word, so a small edit in a long sentence is easy to spot. Long stretches of unchanged lines are folded, keeping three lines of context around each change; “Show unchanged lines” expands them.

Texts of up to 500,000 characters each can be compared. If two texts share almost nothing (more than 2,000 separate differences), the tool says so instead of producing an unreadable result.

Common uses

  • Contracts and documents: see exactly what changed between two drafts.
  • Code and configuration files: compare two versions without a version control system.
  • Translations and copy edits: review what an editor changed.
  • Data exports: check which rows differ between two exports of the same list.

Frequently asked questions

How are the differences found?

With the Myers diff algorithm, the same approach used by Git. It finds the smallest set of added and removed lines that turns the original into the changed text, so the result shows only what really changed.

What do the colours mean?

Green lines were added in the changed text, red lines were removed from the original. When a line was edited, it appears as a removed line followed by an added one, and the words that changed are highlighted inside them.

Can I ignore differences in spacing or capital letters?

Yes. "Ignore spaces" treats lines as equal when they differ only in spacing or indentation, and "Ignore case" when they differ only in capital letters.

Is my text sent anywhere?

No. The comparison runs in your browser, so contracts, code and private documents never leave your device.