Original
Text utility
Text Compare
Compare two blocks of text side by side, highlight added and removed lines, generate a unified diff, and ignore whitespace or case differences locally in your browser.
Changed
Right text
Compare options
Diff settings
Ready.
Left lines0
Right lines0
Added0
Removed0
Unchanged0
Changed blocks0
Side-by-side diff
Original
Changed
Unified diff
Popular compare examples
Diff marker reference
| Marker | Meaning | Use |
|---|---|---|
| + | Line exists only on the changed side | Added content |
| - | Line exists only on the original side | Removed content |
| = | Line exists on both sides | Unchanged content |
| ~ | Removed and added lines appear near each other | Likely edited block |
Text compare notes
Local diffBoth text blocks are compared in your browser. Nothing is uploaded.
Line-based compareThis tool compares line order and line content. It is best for lists, configs, drafts, and snippets.
Ignore optionsUse trim, whitespace collapse, blank-line ignore, or case ignore to reduce noise in the diff.
Unified outputCopy unified diff text when you need to paste a compact summary into notes, tickets, or chat.
FAQ
Is this a word-by-word diff?
The main view is line-based. It highlights added, removed, and unchanged lines, which is fast and practical for most text snippets and lists.
Can I compare JSON?
Yes. Paste JSON on both sides. For cleaner JSON comparison, format both inputs first with the JSON Formatter.
Why do two similar lines show as removed and added?
Line-based diffs mark edited lines as one removed line and one added line. The changed block count helps identify those likely edits.