Tools

Home
JSON FormatterSQL FormatterJS ValidatorMinify CSS
Merge PDFCompress PDFImage to PDF
JPG to PNGPNG to WebPCrop Image

Censor JSON

Redact sensitive values in JSON data. Replace string values with asterisks, mask numbers, hide personal data. 100% client-side.

Your files never leave your browser
Censor only these keys:
JSON Input0 chars, 0 lines
Censored Output0 chars, 0 lines
Error:
    Ready·

    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

    Paste JSON
    →
    Pick What to Redact
    →
    Get Clean Output

    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.

    INPUT
    { "name": "Sarah Chen", "email": "[email protected]", "phone": "+1-555-0142", "plan": "enterprise" }
    OUTPUT
    { "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.

    INPUT
    { "app_name": "MyApp", "api_key": "sk-9f8a7b6c5d4e3f2a", "db_host": "db.internal.co", "db_password": "xK#9mP!2qR" }
    OUTPUT
    { "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.

    INPUT
    [ { "order_id": 48291, "customer": "Mike Torres", "total": 149.99, "address": "742 Elm St" } ]
    OUTPUT
    [ { "order_id": 0, "customer": "***", "total": 0, "address": "***" } ]

    Who Uses This

    👨‍💻 Backend Developers

    Strip real data from API responses before pasting them into GitHub issues or Slack threads.

    🔒 Security Engineers

    Sanitize JSON logs and payloads before sharing them during incident reviews.

    📊 Data Analysts

    Create sample dataset schemas from production exports without leaking PII.

    📝 Technical Writers

    Build documentation examples using real response structures with placeholder values.

    Common Mistakes

    Pasting invalid JSON and wondering why nothing happens

    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.

    Forgetting to censor numbers when they contain sensitive info

    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.

    Assuming the original data is still recoverable

    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

    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.

    Share: