Original
0 lines
Modified
0 lines
Original
Modified
Added
Removed
Unchanged
When to use a text diff tool
Common use cases for comparing texts
💻 Code Review
Spot what changed between two versions of a script, config file, or snippet without a full IDE.
📄 Document Editing
See exactly which sentences were added, removed, or rewritten between drafts of a document or article.
🔧 Config Comparison
Compare JSON, YAML, or .env config files to find mismatched settings before deploying.
📋 Data Verification
Verify that a copied list, CSV row, or log output matches the expected value exactly.
Frequently Asked Questions
Is my text sent to a server?+
No. All comparison is done entirely in your browser using JavaScript. Nothing is uploaded, stored, or tracked. Your text stays on your device.
What do the colors mean?+
Red lines appear only in the original (removed). Green lines appear only in the modified version (added). White/grey lines are unchanged. Word-level highlighting shows the exact words that changed within a line.
Can I compare code or JSON?+
Yes. The tool works on any plain text including source code, JSON, YAML, Markdown, CSV, and more. It compares line by line regardless of content type.
What does "Ignore whitespace" do?+
When enabled, lines that differ only in leading/trailing spaces or indentation are treated as equal. Useful when comparing code that was reformatted but not logically changed.
Related Tools