Paste an API response, webhook payload, or NDJSON log. Scrubtly masks emails, tokens, keys, IPs, and nested secrets in place — the output is still valid JSON with the same keys, order, and types.
🔒
Zero-Server Guarantee: Your data is processed in this tab and never uploaded. Load the page, go offline, and it still works.
Anonymize JSON Without Losing Its Shape
Most "find and replace" approaches to redacting JSON either miss nested values or corrupt the document. Scrubtly reads your JSON token by token, so it knows exactly which key every value belongs to — even ten levels deep inside arrays — and rewrites only the values that need it. Everything else stays byte-for-byte identical: key order, whitespace, and number formats like 1450.00 or 20-digit IDs that JSON.parse would silently round.
Two ways to anonymize
- Mask mode keeps enough context to stay useful:
j***@gmail.com, sk_live_****, 192.168.***.***, +1-***-***-4321. Passwords and other secrets become a fixed ********, so not even their length leaks.
- Synthetic mode swaps values for realistic fakes of the same type —
alex.rivera@example.com, documentation-range IPs, Luhn-valid test card numbers. The same input always maps to the same fake within a session, so relationships between records survive.
Sensitive keys are redacted wholesale
Some values don't look secret but are: an iban, an ssn, a password_hash. Scrubtly recognizes sensitive key names (including camelCase and kebab-case variants like clientSecret or x-auth-token) and redacts whatever they hold — strings, numbers, or entire nested objects like "auth": { … }. Numbers stay numbers, so your JSON schema doesn't change. Keys that only sound sensitive, like token_type, max_tokens, or author, are left alone.
How to Anonymize JSON in Three Steps
- Paste your JSON, drop a
.json / .ndjson file, or load the sample payload.
- Pick Mask or Synthetic and toggle the rules you need — emails, API keys & tokens, IPs, phones & cards, sensitive keys, names.
- Click Copy, or Copy with AI Prompt to wrap the clean JSON in a ready-made prompt for ChatGPT, Claude, or Copilot.
Frequently Asked Questions
Is my JSON uploaded anywhere?
No. Parsing and masking run in JavaScript inside this browser tab. You can open your browser's Network tab while you work, or disconnect from the internet after the page loads — the tool keeps working because it never needed a server.
Will the output still be valid JSON?
Yes. Only string and number values are replaced, and replacements are re-encoded with proper escaping. Invalid input is reported with the exact line and column of the syntax error.
Does it handle log files with one JSON object per line?
Yes — NDJSON / JSON Lines files are detected automatically and every line is anonymized as its own JSON document.
Can automated detection miss something?
It can. Pattern matching can't recognize every possible secret or free-text personal detail (for example, a name typed into a comment field). Review the output before you share it: Scrubtly is a strong first pass, not a guarantee.