All Tools
Categories
XML Tools 64 Email Marketing Tools 55 Import-Export Tools 50 JSON Tools 36 Text Tools 12 Shipping Freight Tools 5 Calculator 4 Marketing Tools 3
About Contact Privacy

Censor JSON

Censor a JSON document instantly: remove or mask any fields by key name, hide emails, passwords, card numbers and personal data before sharing. All client-side, nothing uploaded.

JSON Input
Waiting for input
Censored Output
Censor Report
Matched keyOccurrencesAction
No report yet
Censoring changes the output document only. The report proves which fields were handled; combine it with your key list for an audit trail.

About Censor JSON

JSON is a convenient envelope for personal data — and a convenient leak. User records, order exports, support payloads and API responses routinely contain fields like password, ssn, email or card_number that should never leave your machine. Editing them out by hand is slow, error-prone and easy to miss in deep nesting. A deterministic tool is safer.

Censor JSON removes or masks every field you name, at every level of the document, in one click. Drop in a comma-separated list of keys, choose remove or mask, and the report tells you exactly how many occurrences were handled. Processing is 100% client-side — the data never leaves your browser.

Features

  • Remove or mask: Delete matching fields entirely, or replace their values with a placeholder of your choice.
  • Deep walker: Catches matching keys inside nested objects, arrays and arrays of arrays.
  • Case-insensitive by default: password matches Password, PASSWORD and every casing in between.
  • Custom placeholder: [REDACTED], ***, or any text that fits your convention.
  • Occurrence report: See how many fields matched and which key names were hit.
  • Live preview: Results update as you type the key list.
  • Copy and download: Export the cleaned document instantly.
  • Private: All processing happens in your browser; nothing is uploaded.

How to Use

  1. Paste your JSON into the input pane.
  2. List the keys to censor, separated by commas — for example password, ssn, email.
  3. Choose remove to delete the fields or mask to replace their values with a placeholder.
  4. Adjust matching — case-insensitivity and placeholder text — if needed.
  5. Censor and copy or download the cleaned document.

Examples

Example 1 — Support payload. A support engineer pastes a user record containing password and api_key into a ticket. Censoring those two keys produces a payload that is still realistic and complete for the engineer, without secrets in the thread.

Example 2 — Dataset export. A team exports customer rows for a demo environment. Masking email and phone with [REDACTED] keeps the data shape and value types predictable while removing personal identifiers.

Example 3 — API sample. A developer sanitizes a response before putting it in public documentation. Removing auth_token and session_id leaves a clean example schema.

Example 4 — Audit review. A compliance reviewer checks a large export for a set of regulated field names. The occurrence report shows exactly where each sensitive key appeared, so the review is provably complete.

Benefits

  • Provable coverage: The occurrence report shows every matched field, not a best-effort search.
  • Two strategies: Remove fields for privacy, mask them when structure must stay intact.
  • Time savings: A comma-separated list replaces minutes of manual scrubbing.
  • Zero data movement: The document is processed locally and never uploaded.
  • Consistent results: The same list produces the same output every time.

Frequently Asked Questions

What does censoring JSON do?
It walks the whole document and removes or masks every field whose key name matches your list. Removing deletes the key and its value entirely; masking replaces the value with a placeholder such as [REDACTED] so the structure stays intact. Nesting and arrays are handled automatically.
Is censoring the same as deleting data?
No. Removing a field erases it from the output document, but the original JSON in your clipboard or editor is unchanged — the tool only transforms what it returns. Masking keeps the field but replaces its value, which is useful when consumers expect the key to exist.
Does the matching respect upper and lower case?
By default matching is case-insensitive, so password also matches Password and PASSWORD. Toggle the case-sensitive option if only exact spellings should be censored.
Can I censor fields inside nested objects and arrays?
Yes. The walker descends into every level — nested objects, objects inside arrays, arrays of arrays. Any key matching the list is censored wherever it appears, and the report tells you how many occurrences were found.
What is a good placeholder?
Any text you like. [REDACTED] and *** are common. If downstream tooling must keep valid types, note that masking replaces the value with the placeholder string regardless of the original type — choose remove mode instead if a field must disappear completely.
Is my JSON uploaded anywhere?
No. Censoring happens entirely in your browser. Nothing is uploaded, stored or logged.