FormatCodes
Home/Diff Tools/Text Diff

Text Diff Checker

Compare two blocks of text or code online for free — everything runs in your browser.

Local browser processing
No sign-up required
Upload & download support
Diff Tools
Mode
Original text · A
1
2
3
4
5
6
Compare text · B
1
2
3
4
5
6
Diff Result
1
1
{
2
2
"name": "format-codes",
3
-
"version": "1.0.0",
3
+
"version": "1.1.0",
4
4
"private": true,
5
-
"license": "MIT"
5
+
"author": "FormatCodes"
6
6
}
+2-2Unchanged 4Local browser comparison · No files uploaded
How It WorksText
Overview
This text diff checker compares two blocks of text or code and supports three granularities — line, word, and character — highlighting additions and deletions in different colors. You can ignore case or whitespace differences, and export the result as a standard unified diff patch for sharing or applying with git. Everything runs locally in your browser; your content never leaves your device.
Use Cases
Compare code changes between two versionsCheck whether a config file change matches expectationsSpot differences before and after editing a documentQuickly generate a shareable diff patch
Steps
123
Paste or uploadChoose a diff modeReview the results

Related Tools

Related Guides

Frequently Asked Questions

Search Tools

Search 55+ formatting, conversion, minification, diffing, and generation tools