Compare text online
Free line-by-line text diff. Paste two versions—see what was removed, what was added, and what stayed the same. The compare stays in your browser.
Tool
Paste both sides—the diff updates automatically.
Loading text compare…
How it works
- Paste original text into A and the edited version into B—or try Example. The diff updates as you type.
- Optionally ignore whitespace, letter case, or blank lines; turn on Changes only to hide unchanged lines.
- Use Prev/Next to jump between changes, or switch Unified / Side by side.
- Copy stats or the unified diff when you need it in a ticket or email.
Good for
- Drafts, notes, and docs where wording and order matter.
- Config files, logs, and short code snippets.
- Checking what changed before you merge or send.
- Private pastes—no account, no upload for the compare step.
Quick answers
What do red and green mean? Red = removed from A; green = added in B.
Text vs lists? Use this page for ordered edits. Use list compare for which IDs or emails appear only on one side.
Messy JSON as text? Prefer JSON compare so key order does not look like a real change.
Huge files? Very long sides may truncate so the browser stays responsive.
What is text compare on ListDiff?
This tool is a free text diff / text compare in your browser. It lines up Text A and Text B and shows additions and deletions in order—closer to a document or config review than to a membership list check.
ListDiff also offers list compare and JSON compare. Pick the mode that matches your question so results stay easy to read.
Unified view
Classic +/- lines with numbers—easy to skim and copy as a unified diff.
Side by side
A and B aligned so you can scan removals and additions together.
Ignore noise
Optional ignore whitespace or letter case when only the real wording matters.
When this tool helps
- Two versions of a paragraph, README, or email draft.
- Config or log snippets where a single changed line matters.
- You need a short diff to paste into a ticket—not a full merge editor.
Related tools
FAQ
How do I compare two texts online?
Paste A and B above, click Compare text, then use Unified or Side by side.
Is text compare the same as comparing two lists?
No. Text compare is ordered line edits. List compare is membership—what appears only in A, only in B, or in both.
Does my text leave the browser?
No for the compare step. See Privacy and Is ListDiff safe?.
Can I ignore whitespace or letter case?
Yes—toggle those options above the Compare text button before you run the diff.