CyberCodeLab logo — neon green lab flask with terminal symbolCyberCodeLab

Text Difference Checker

Free online text diff checker. Paste two versions of a text and instantly see which lines were added or removed, highlighted side by side. Runs 100% in your browser.

text-diff.run

How does a text diff work?

A diff compares two versions of a text and reports the minimal set of lines added and removed. This tool uses the longest-common-subsequence (LCS) algorithm — the same foundation as git diff — so unchanged blocks stay aligned and only real changes are highlighted.

Typical uses: reviewing edits to a contract or article, comparing two config files, checking what changed between two API responses, or verifying that a refactor did not alter output.

How to use

  1. 01Paste the original text into the left box.
  2. 02Paste the changed version into the right box.
  3. 03Click Compare texts.
  4. 04Removed lines are highlighted red, added lines green.

Frequently asked questions

How does the comparison work?
The tool uses a longest-common-subsequence (LCS) algorithm on lines — the same approach used by git diff — to find the minimal set of added and removed lines.
Can I compare code with this tool?
Yes. The diff is line-based and monospaced, which makes it well suited to comparing code snippets, configs and JSON.
Is my text private?
Yes. Both texts are compared locally in your browser and never uploaded.

Related tools