Text Diff Checker — Compare Two Texts Online
Compare two texts side by side with color-coded additions, deletions, and unchanged lines. Works with code, configs, and documents.
How to Use
- 1
Paste original
Paste the original (before) text in the left panel.
- 2
Paste modified
Paste the modified (after) text in the right panel.
- 3
See differences
Additions are green (+), deletions are red (-), unchanged lines are plain.
FAQ
What is a text diff?
A diff shows the differences between two texts — lines that were added (shown in green), removed (shown in red), or left unchanged. It is the same concept used in Git commits and code reviews.
Can I compare JSON files?
Yes. Paste two JSON documents to see exactly which keys, values, or structures differ. For best results, format both JSON files first (use our JSON Formatter) so differences align by line.
Does it work with code?
Yes. Any text-based content works: source code (Python, JavaScript, Java), configuration files (YAML, TOML), SQL queries, Markdown, and plain text documents.