Obfuscate JSON
Randomize key names and mask values while preserving JSON structure
Paste any JSON containing sensitive keys, tokens, or user data and get back a randomized version with the exact same structure — every key renamed, every value replaced. One click strips the meaning out while keeping the shape intact, so you can share configs, attach payloads to bug reports, or build test fixtures without leaking anything real. And everything runs in your browser. Nothing gets uploaded.
How It Works
The tool walks every node in your JSON tree. For each key, it generates a short random identifier like k1 or k7. String values become gibberish text, numbers get scrambled, and booleans, nulls, and arrays keep their type. The result is structurally identical but completely scrubbed of meaning.
Examples
Stripping a User Profile Before Sharing
A backend dev needs to show your API response shape without leaking real user data.
{"name": "Sarah Chen",
"email": "[email protected]",
"role": "admin"}
{"k1": "xvqmt",
"k2": "brjnw",
"k3": "hgdpl"}
Sanitizing a Config File for a Bug Report
You want to attach your app config to a GitHub issue, but it has secrets baked in. Obfuscating the values keeps the structure visible so maintainers can still diagnose the problem.
{"db_host": "10.0.3.42",
"db_pass": "Tr0ub4dor&3",
"port": 5432,
"ssl": true}
{"k1": "qwnlf",
"k2": "zmtyx",
"k3": 8174,
"k4": true}
Generating Dummy Test Fixtures
Need test data that matches your production schema but contains zero real records? Paste a sample response, obfuscate, done.
{"orders": [
{"id": 9921, "item": "Blue Widget"},
{"id": 9922, "item": "Red Gadget"}
]}
{"k1": [
{"k2": 3847, "k3": "dkwnp"},
{"k2": 6102, "k3": "yvbgs"}
]}
Who Uses This
Scrub production API responses before pasting them into bug tickets or Slack threads.
Strip PII and secrets from JSON payloads before sharing with third-party vendors.
Build realistic test fixtures from live data without copying actual customer records.
Create safe example payloads for API documentation that mirror real response shapes.
Common Mistakes
Trailing commas, unquoted keys, or single quotes will break parsing. Run your data through a JSON validator first if you’re getting errors.
Obfuscation replaces data — it does not encrypt it. There is no key, no way to reverse it. If you need the original back, keep a copy before obfuscating.
If your coworker needs to see the field names (like “email” or “address”), turn off key randomization. Otherwise every key becomes k1, k2, and the structure is hard to read.
Technical Details
- Processing: 100% client-side — no server, no uploads
- Browser Support: Chrome, Firefox, Safari, Edge
- Max Input Size: Limited only by browser memory (tested up to 10 MB)
- Output Format: Valid JSON, downloadable as
.json
Frequently Asked Questions
What is JSON obfuscation?
It’s the process of replacing real key names and values in a JSON file with random, meaningless substitutes. The structure — nesting, array lengths, data types — stays the same. You end up with something that looks like your original data but contains nothing sensitive.
Can I reverse the obfuscation to get my original data back?
No. The tool generates fresh random values each time and doesn’t store a mapping. This is intentional — if the process were reversible, it wouldn’t be safe to share the output. Always keep a backup of the original.
Is my JSON data sent to a server?
Not even a little. All processing happens inside your browser tab using JavaScript. Nothing is uploaded, nothing is logged. Open DevTools and watch the Network tab while you obfuscate — you won’t see a single request.
What’s the difference between obfuscation and encryption?
Encryption transforms data so it can be decrypted with a key. Obfuscation replaces data with random junk — there’s no key, no going back. Use encryption when you need to recover the original. Use obfuscation when you just want to share the shape of the data without the contents.
Does obfuscating JSON preserve array lengths and data types?
Yes. If your original array has 5 objects, the output has 5 objects. Strings stay strings, numbers stay numbers, booleans stay booleans. Null values remain null. Only the actual content changes — the skeleton is untouched.