Text diff

Text Diff — Compare Text Online Side by Side

Compare two texts side by side and highlight added, removed, and unchanged lines or words. Free, local, and private — no upload or signup.

0 characters
Paste text or upload a plain-text file.
0 characters
Both texts stay in this browser tab.
Compare
Options

Differences

0 lines added0 lines removed1 lines unchanged

Paste two texts above to see added, removed, and unchanged lines or words.

In word mode, red strikethrough marks text removed from A and green marks text added in B. The diff is computed locally; neither text is uploaded.

See exactly what changed between two versions

Paste the original text in A and the revised text in B. Line-by-line mode shows removed lines in red, added lines in green, and unchanged lines in place, with line numbers from both versions. It is useful for code snippets, configuration files, contracts, documentation revisions, and any plain text where position and exact wording matter.

Choose line-by-line or word-by-word

Line mode is easier to scan when whole lines were added or removed, which is common in code and structured documents. Word mode highlights edits inside a sentence, which suits prose, proofreading, and short copy changes. The summary counts additions, removals, and unchanged items in either mode.

Reduce noise with comparison options

Ignore case treats uppercase and lowercase as equal. Ignore whitespace trims each line and collapses repeated spaces before comparing, while the original text remains visible. These options change the comparison, not the source, so review a sample of unchanged and changed lines before relying on a zero-difference result.

Text diff vs list comparison

A text diff keeps order and shows where lines or words were inserted, removed, or edited. The text list comparison tool answers a different question: which items exist in both lists, regardless of order. Use the diff for revisions and the list comparison for membership checks such as subscriber exports or SKU reconciliation.

Keep the work private

This tool runs in the browser tab you are using. No account is required and your text is not submitted to a server. The result exists only on this device, so copy or download it before closing the page.

Frequently asked questions

What is a text diff?

A text diff compares two versions of a text and marks what was added, removed, or left unchanged. This page can compare whole lines or individual words and shows a summary of each group.

Can I compare code or configuration files?

Yes, as plain text. The diff is not syntax-aware, but line-by-line mode works well for scripts, JSON, YAML, environment files, and configuration snippets.

Can I ignore case and whitespace?

Yes. Both options affect the comparison only; the original lines remain visible so formatting changes can still be reviewed.

How large can the texts be?

The tool is designed for everyday documents and files. Very large comparisons may be slower, and the visual output is capped at 4,000 display items while the summary still counts every change.

Is my text uploaded to a server?

No. The diff runs in the browser tab. Neither text is sent to Comparable List.

Related tools