Text Compare (Diff)
Paste an original and a changed version to see a line-by-line diff — additions in green, deletions in red — the same way git diff works. Options to ignore whitespace and case. Everything is compared in your browser.
| 1 | The quick brown fox | 1 | The quick brown fox | ||
| 2 | − | jumps over the lazy dog | |||
| 2 | + | leaps over the lazy dog | |||
| 3 | third line | 3 | third line | ||
| 4 | fourth line | 4 | fourth line | ||
| 5 | + | fifth line |
Compares line by line using a longest-common-subsequence match — the same idea as git diff. Both sides are compared in your browser and never uploaded. Very large inputs are capped at 4,000 lines a side.
How to use it
- Paste the original text on the left and the changed text on the right.
- Optionally turn on ignore-whitespace or ignore-case.
- Read the diff below — red lines were removed, green lines were added.
FAQ
- Is my text uploaded?
- No. The comparison runs entirely in your browser using a longest-common-subsequence match.
- Does it show word-level changes?
- It works at the line level, like git diff. A changed line shows as one removal plus one addition.
Related tools
- JSON Formatter & ValidatorPretty-print, minify and validate JSON in the browser.
- Number Base ConverterConvert an integer between binary, octal, decimal and hex.
- JWT DecoderRead a JSON Web Token's header and payload, and check its expiry.
- URL Encode / DecodePercent-encode a query value or a whole URL, and decode it back.
- Base64 Encode / DecodeText ⇄ Base64, Unicode-safe.
Free to use, no sign-up. Calculations run in your browser — nothing you type is sent to a server. These tools are for general information only, not professional advice. See the full tool list.