Developer Tool

Compare Any Two Texts
Line by Line — Free & Private

Paste any text — code, logs, config files, plain text — and see exactly what changed. Nothing uploaded.

Any text format · 100% Client-Side · Updated Mar 2026
CLIENT-SIDE ONLY
Nothing uploaded  ·  verify →
text-diff.js — running in browser
ORIGINAL // left
MODIFIED // right
📝 Works with any text format · 🔒 Nothing uploaded · ⚡ Instant results

What You Can Compare

📄 Plain text
Any prose, notes, documents
💻 Source code
Any language — Python, JS, PHP, SQL
📋 Config files
YAML, TOML, INI, .env files
📊 CSV / TSV data
Spreadsheet exports, data files
📝 Log files
Application logs, error outputs
📖 Markdown
README files, documentation

Text Diff vs JSON Diff — Which to Use

Use case Text Diff JSON Diff
Plain text, code, logs✓ Use this✗ JSON only
JSON with different key orderReports as changed✓ Correctly identical
Config files (.yaml, .env)✓ Use this✗ JSON only
API response payloads (JSON)Works but not semantic✓ Use this
SQL queries, log files✓ Use this✗ JSON only

FAQ

Can I compare plain text that isn't JSON? +

Yes — this tool works with any text. Plain text, source code, log files, config files, CSV, markdown. For structured JSON specifically, the JSON Diff tool handles key order and nested structure more precisely.

Is my text sent to a server? +

No. All comparison runs entirely in your browser. Nothing is uploaded. Safe for source code, logs containing credentials, config files with secrets, and any sensitive content.

How large a file can I compare? +

The limit is your browser's memory. Files up to a few hundred KB compare instantly. Very large files (several MB of text) may take a moment but will work. There's no server-imposed limit.

Need JSON comparison instead?

The JSON Diff tool understands structure — key order ignored, nested changes shown precisely.

Open JSON Diff →

Related Tools