Skip to content

Text Diff Checker

Compare two blocks of text and highlight added and removed lines.

Compared locally — your text never leaves your device.

How do you compare two blocks of text?

A text diff checker compares two versions line by line and highlights every line that was added or removed, with a count of the changes. It uses a longest-common-subsequence diff to match unchanged lines and mark the rest as added (+) or removed (−), so you can see exactly what differs between two versions.

Understanding your result

The tool uses a longest-common-subsequence diff to match unchanged lines and mark the rest as added (+) or removed (−).

How to use this tool

  1. Paste the original text on the left.
  2. Paste the changed text on the right.
  3. Press Compare.

About the Text Diff Checker

The Text Diff Checker compares two versions of text and highlights every line that was added or removed, with a count of the changes.

Explore all Developer Tools tools

Frequently asked questions

Is my text uploaded anywhere?

No. The comparison runs entirely in your browser, so nothing you paste is sent to a server.

Share this tool

Free to use — copy the link, share it anywhere, or add the tool to your own website.

Embed this tool on your site (free)

Copy this code and paste it into any web page — it stays free and always up to date: