EditSafely

Censor JSON Data

Mask or remove selected keys anywhere in a JSON structure. Runs entirely in your browser, so your data never leaves your device.

0 chars · 0 lines

Output

The result appears here as you type.

Options
Action

How to use Censor JSON Data

  1. 1. Paste your JSON. Paste the JSON document containing sensitive fields, like passwords, tokens or personal details, that you need to remove or hide before sharing it with anyone else.
  2. 2. List the keys to target. Enter the field names to act on in Keys to censor, comma-separated, such as password, token, ssn. The tool finds every matching key anywhere in the structure, no matter how deeply nested.
  3. 3. Choose mask or remove, and copy. Pick Mask value to keep the key but replace its content with the text in Mask, or Remove key to delete the field entirely, then copy the sanitized JSON ready to share.

When to use Censor JSON Data

Censor JSON Data finds specific keys anywhere in a JSON structure and either masks their values or removes them outright, no matter how deeply they are nested. Use Censor JSON Data before sharing real data with a vendor, in a bug report, or in a public repository.

  • Sanitizing a payload before filing a bug report. You want to attach a real API request or response to a bug report, but it contains an authentication token and a password field that need to be masked first.
  • Preparing a fixture for a public repository. A test fixture based on real data needs to go into an open-source repo, and any fields like email or ssn need to be removed before the file is committed.
  • Sharing logs with a third-party vendor. A vendor's support team asked for logs to debug an issue, but the JSON payloads inside contain customer PII that has to be masked before you send the file over.
  • Cleaning a config before a screen share. You are about to share your screen to debug a config file live, and want to strip out API keys and secrets from the JSON before anyone else can see them.

Examples

Mask secrets before sharing

Input

{"user": "ada", "password": "hunter2", "token": "abc123"}

Output

{
  "user": "ada",
  "password": "***",
  "token": "***"
}

About the Censor JSON Data tool

Censor JSON Data runs as plain JavaScript in your browser tab, with no server behind it. Mask or remove selected keys anywhere in a JSON structure. Whatever you put in stays on your device from start to finish.

The tool is part of EditSafely's JSON Tools section, 90 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.

You can shape the output with 3 settings, including Keys to censor, Action and Mask, and the result refreshes the moment you change one. A worked example further down the page shows exactly what the tool produces for a real input.

That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.

Frequently asked questions

Does Censor JSON Data cost anything?

Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.

How much text can I process at once?

There is no fixed limit. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.

Do I need to sign up or install anything?

Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.

Related tools

All JSON Tools