Skip to content
ToolsLeb ToolsLeb

Text Diff

Compare two versions of a text and see exactly what changed, line by line.

Original (A)

Paste the original text…

0 characters
Changed (B)

Paste the changed text…

0 characters
Advanced options
Treat "Text" and "text" as identical when comparing
Ignore extra spaces and leading/trailing whitespace
Show only added and removed lines in the result

Paste text into both fields above, then click Compare Text to see what changed.

How it works

1

Paste the starting version of your text on the left.

2

Paste the updated version on the right.

3

Click Compare Text to run a line-by-line comparison.

4

Review the result — added lines are marked +, removed lines are marked - and struck through.

Example

Before
Original: "We ship weekly."
Revised: "We ship every Friday."
After
1 line removed, 1 line added

Related text tools

Share on Social Media:

When you have two versions of the same document — a draft and a revision, an original contract and a redline, or two API responses — spotting exactly what changed by eye is slow and error-prone. Text Diff compares both versions line by line and highlights every addition and removal, so changes that would take minutes to spot manually are visible instantly.

How the comparison works

Each line in the first text is matched against the second using a longest-common-subsequence algorithm — the same core technique behind tools like git diff. Lines that exist only in one version are marked as added or removed; unchanged lines are shown as context.

Advanced options let you ignore whitespace-only or case-only differences, so you can focus purely on wording changes when formatting doesn't matter.

Frequently Asked Questions

Text Diff compares whole lines. If a single word changes mid-line, that entire line shows as removed (old) and added (new) rather than highlighting just the word.

Yes — turn on "Ignore whitespace" and/or "Ignore case" in Advanced options so only meaningful wording changes are reported.

Very large documents (over roughly 1,200 lines per side) are truncated to keep the comparison fast in your browser.

Comparing two drafts of a document, checking what changed between two versions of a config file, or verifying an edited paragraph didn't accidentally alter meaning elsewhere in the text.