Private Text & Code Diff Checker
Compare text, JSON, contracts, or source code side-by-side or inline with green/red change highlighting and whitespace/case toggles offline.
Diff Result
| # | Original | # | Modified |
|---|---|---|---|
| 1 | { | 1 | { |
| 2 | "service": "privabench-api", | 2 | "service": "privabench-api", |
| 3 | "version": "1.4.2", | 3 | "version": "2.0.0", |
| 4 | "region": "us-east-1", | 4 | "region": "global-edge", |
| 5 | "rateLimit": { | 5 | "rateLimit": { |
| 6 | "windowSeconds": 60, | 6 | "windowSeconds": 60, |
| 7 | "maxRequests": 100 | 7 | "maxRequests": 250, |
| 8 | "burstAllowance": 50 | ||
| 8 | }, | 9 | }, |
| 9 | "features": { | 10 | "features": { |
| 10 | "darkMode": true, | 11 | "darkMode": true, |
| 11 | "pdfExport": true, | 12 | "pdfExport": true, |
| 12 | "betaTelemetry": true | 13 | "betaTelemetry": false, |
| 14 | "offlineMode": true | ||
| 13 | }, | 15 | }, |
| 14 | "allowedOrigins": [ | 16 | "allowedOrigins": [ |
| 15 | "https://example.com", | 17 | "https://example.com" |
| 16 | "http://localhost:3000" | ||
| 17 | ] | 18 | ] |
| 18 | } | 19 | } |
Frequently Asked Questions
Practical tips, formulas, and privacy details for using this tool.
Why use an offline diff checker instead of cloud text-compare websites?
Many popular web diff tools submit your two text inputs to a backend server or store shareable links in a database by default—creating serious data-leak risks when comparing proprietary source code, production .env secrets, API keys, or confidential NDA contracts. This diff checker computes every line and word comparison 100% inside your browser using JavaScript, with zero network uploads.
What is the difference between Split View and Unified Inline View?
Split View places the Original text on the left and the Modified text on the right with aligned line numbers and inline word-level highlighting—ideal for reviewing contract clauses, JSON configurations, or multi-line refactors on desktop screens. Unified Inline View stacks removed (-) and added (+) lines sequentially in a single column, matching git diff output and fitting narrower screens effortlessly.
How do the Ignore Whitespace and Ignore Case options work?
Enabling Ignore Whitespace skips noise caused by indentation shifts, trailing spaces, or tabs-versus-spaces reformats so you can focus strictly on meaningful content changes. Enabling Ignore Case treats uppercase and lowercase characters as identical, which is helpful when comparing SQL queries, CSV headers, or case-insensitive configuration flags.
Can I load local text or code files directly into the diff panes?
Yes. Click Load File above either the Original or Modified editor to open local .txt, .json, .ts, .js, .md, .yaml, .env, .sql, or .csv files using the browser's FileReader API. The files are read strictly into local memory and never leave your computer.
What does the Copy .diff Patch button produce?
It generates a standard unified diff patch (with @@ hunk headers and +/- markers) directly to your clipboard so you can paste it into pull request reviews, Slack discussions, or bug reports.
More Dev & AI Tools
Browse all 50 toolsEstimate prompt tokens and compare per-request, daily, and monthly API costs across Claude 5.5, GPT-6, Gemini 4, and DeepSeek V4.
Convert, beautify, minify, and validate JSON, CSV, and YAML locally in a dual-pane editor—safe for production configs and API payloads.
Mask emails, phones, IPs, credit cards, API keys, and custom terms into numbered placeholders before pasting into AI—then restore the AI's reply locally.