Censor JSON
Redact sensitive values in JSON data. Replace string values with asterisks, mask numbers, hide personal data. 100% client-side.
Paste your JSON, pick which value types to blank out, and get a clean copy with the structure intact — keys stay, values become asterisks or zeros. You can target specific fields like “password” or “ssn” so the rest of the data stays readable.
Useful when you need to share API responses, config files, or database exports without leaking real names, tokens, or account numbers. And everything runs in your browser. Nothing gets uploaded.
How It Works
The tool parses your JSON, walks through every node recursively, and swaps out values based on your settings. Strings become "***", numbers become 0, and booleans flip to false if you toggle that on. Keys stay untouched so the shape of your data is preserved. If you enter specific key names, only those get hit — everything else passes through unchanged.
Examples
Redacting a user profile before sharing with a contractor
An outside developer needs to test with your API response format but shouldn’t see real customer data.
{
"name": "Sarah Chen",
"email": "[email protected]",
"phone": "+1-555-0142",
"plan": "enterprise"
}
{
"name": "***",
"email": "***",
"phone": "***",
"plan": "***"
}
Targeting only sensitive keys in a config file
You want to commit a sample config to Git, but the API key and database password have to go. Enter "api_key, db_password" in the key filter.
{
"app_name": "MyApp",
"api_key": "sk-9f8a7b6c5d4e3f2a",
"db_host": "db.internal.co",
"db_password": "xK#9mP!2qR"
}
{
"app_name": "MyApp",
"api_key": "***",
"db_host": "db.internal.co",
"db_password": "***"
}
Cleaning an array of order records for a bug report
Support asked for the full API response that triggered the bug. The JSON has 200 orders with customer addresses and payment info. You need the structure, not the data.
[
{
"order_id": 48291,
"customer": "Mike Torres",
"total": 149.99,
"address": "742 Elm St"
}
]
[
{
"order_id": 0,
"customer": "***",
"total": 0,
"address": "***"
}
]
Who Uses This
Strip real data from API responses before pasting them into GitHub issues or Slack threads.
Sanitize JSON logs and payloads before sharing them during incident reviews.
Create sample dataset schemas from production exports without leaking PII.
Build documentation examples using real response structures with placeholder values.
Common Mistakes
A trailing comma or missing quote will break parsing. If you get an error, run your input through a JSON validator first. The tool highlights the problem line to help you find it.
Phone numbers stored as integers, account balances, zip codes — these are all numbers that can identify someone. Toggle “Censor Numbers” on if your data has numeric fields that shouldn’t be shared.
Censoring is destructive. The output has no trace of original values. Always keep your original file somewhere safe before you run the redaction, because there is no undo button here.
Technical Details
- Processing: 100% client-side — nothing leaves your browser
- Browser Support: Chrome, Firefox, Safari, Edge
- Max Input Size: Limited only by your browser’s memory
- Output Format: Pretty-printed JSON with 2-space indentation
Frequently Asked Questions
What does "redact JSON" actually mean?
Redacting JSON means replacing the actual values in your data with placeholders — like "***" for strings and 0 for numbers — while keeping the keys and overall structure exactly the same. The result is a file that shows what your data looks like without revealing what it contains.
Can I redact only certain fields like email or password?
Yes. Type the key names you want to target — separated by commas — into the filter field. Only those specific keys get censored. Everything else stays untouched, so you can share a partially redacted version that still has useful context.
Is my JSON data sent to a server?
No. The entire process happens in your browser using JavaScript. Nothing gets uploaded, stored, or transmitted. You can even disconnect from the internet before pasting your data if you want to be extra cautious.
Does this work with deeply nested JSON?
It does. The tool walks through every level of your JSON recursively — objects inside objects, arrays of arrays, mixed types at any depth. If a value matches your censoring rules, it gets replaced no matter where it sits in the tree.
Can I undo the censoring after I run it?
No — and that’s by design. The original values are gone from the output. There’s no hidden mapping or reversible encoding. If you need the originals, keep them in a separate file before running the tool. Think of it like shredding a document: the paper is still shaped the same, but the ink is gone.