- Home
- Developer
- Text Diff
Text Diff
Compare two texts and highlight added and removed lines.
The Text Diff tool compares two versions of a document line by line or word by word, highlights added and removed content, optionally ignores whitespace, and reports change statistics.
Mode
0 added0 removed
Diff result
How to use
- Paste the original text into Before.
- Paste the edited text into After.
- Choose line or word mode, optionally ignore whitespace, and review the highlighted result and statistics.
Frequently asked questions
Is this a line-level diff?
Line mode compares line by line; word mode highlights changes inside sentences.
Can I use it for binary files?
No, this tool is designed for text content such as code and configuration files.
When should I ignore whitespace?
When formatting differences are not meaningful, such as trailing spaces or blank-line changes.
Related tools
JSON Formatter
Format, validate and minify JSON in one place.
XML Formatter
Pretty-print and indent XML documents.
YAML Formatter
Format YAML and convert between YAML and JSON in both directions.
CSV to JSON
Convert CSV tables into JSON data.
JWT Decoder
Decode JWT header, payload and expiration.
Hash Generator
Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes.