JSON clean & redact

Processed locally
app.clear.view

You can also load data via #data={"name":"Ada"} or #url=... It is cleared from the address bar after it is read.

Remove empty strings, empty arrays, empty objects, and null, and optionally redact phone numbers and emails. Useful before you send a log or capture to a colleague, so obvious personal data and unused empty fields are gone. Options can be toggled separately so you do not delete empty arrays that still mean something in the product.

Drop empties

Cut noise so the structure is closer to “what actually has data.” Empty strings, arrays, and objects can be removed by checkbox.

Empty containers nested inside are also trimmed so you are not left with an empty shell.

Redact

Phone numbers and emails can be masked to reduce accidental leaks. Turn this on before sending data outside or pasting it into a ticket.

Rules are heuristic. Replace ID numbers and other document IDs with placeholders yourself.

Processed locally

Sensitive fields never pass through our servers. Refresh the page and the content is gone.

Still follow least privilege: if a snippet is enough, do not paste a full user profile.

Example

Before clean
{
  "name": "张三",
  "phone": "13812345678",
  "email": "demo@example.com",
  "note": "",
  "tags": [],
  "deleted": null
}
After clean (illustrative)
{
  "name": "张三",
  "phone": "138****5678",
  "email": "d***@example.com"
}
Can I customize redaction rules?

Use the toggles on the page. For more complex rules, handle them in your application code.

What about empty objects nested in empty objects?

With drop-empties on, empty containers are removed together so an empty shell is not left behind.

Are 0 and false deleted?

No. Number 0 and boolean false are not treated as empty. Empty mainly means ""[]{} and optionally null

Is this a complete compliance redaction pipeline?

No. It does not replace a professional redaction pipeline. This page is for a quick pass before a temporary share.

Recommended workflow

  1. Paste log or capture JSON, and load the sample first so the options make sense.
  2. Check drop empties, drop null, and redact as needed.
  3. Check the result for leftover tokens, ID numbers, and other uncovered fields, and replace them by hand if needed.
  4. Then format or Diff. When sending to others, share only the cleaned copy.

If an empty array means “nothing selected,” do not drop empties—that would change the meaning.