Skip to main content

Text diff: compare two texts

Compare two texts line by line and see added and removed lines. Runs in your browser; nothing is uploaded.

0 added, 0 removed

Compare two versions of a text line by line. Lines that were removed are marked with - (red), added lines with + (green), and unchanged lines are shown for context, with a count of additions and removals. Runs in your browser; nothing is uploaded.

How to use

  1. Paste the earlier version into Original and the newer one into Changed.
  2. The diff updates as you type. Read the summary (for example “3 added, 1 removed”) and scan the marked lines.

How it compares

The tool finds the longest run of lines the two texts share (a longest-common-subsequence diff) and marks everything else as added or removed. It compares whole lines: if one word changes, that line shows as one removal and one addition. Windows and Unix line endings are treated the same. Each side can have up to 3,000 lines; for longer files use a desktop diff tool or git diff.

Typical uses

Checking what an editor or an AI rewrite changed, comparing two versions of a contract clause, or reviewing config changes. For prompts specifically, prompt diff gives the same line view tailored to prompt versions.

Prompt diff · Word counter · AI text cleaner · All tools

How we check

The behaviour described on this page was checked against the tool’s source code on 2026-11-19 (Asia/Colombo). Spotted a mistake? Contact us.

More free tools