Scrubtly
100% Local • Zero Uploads

JSON Anonymizer: Mask PII & Secrets Without Breaking Your JSON.

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.

Raw Input

.json · .csv · .log · .txt

Drop file to load locally

Read in your browser — never uploaded

Clean Output

Nothing masked yet. Paste data or load a sample to see what gets caught.

Advertisement

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

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.

Example: a Webhook Payload

Before

{
  "event": "payment.failed",
  "customer": {
    "name": "Marcus Vance",
    "email": "m.vance@enterprise.com",
    "card": "4242 4242 4242 4242"
  },
  "headers": { "Authorization": "Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI0MiJ9.c2lnbmF0dXJlX3ZhbHVl" },
  "retries": [ { "ip": "10.0.42.18", "error": "timeout after 30s" } ]
}

After — Mask mode

{
  "event": "payment.failed",
  "customer": {
    "name": "M***** V****",
    "email": "m***@enterprise.com",
    "card": "**** **** **** 4242"
  },
  "headers": { "Authorization": "********" },
  "retries": [ { "ip": "10.0.***.***", "error": "timeout after 30s" } ]
}

How to Anonymize JSON in Three Steps

  1. Paste your JSON, drop a .json / .ndjson file, or load the sample payload.
  2. Pick Mask or Synthetic and toggle the rules you need — emails, API keys & tokens, IPs, phones & cards, sensitive keys, names.
  3. 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.