Need to format or generate TypeScript types from this JSON?
Open in full MyJSONPal StudioJSON Sanitizer
JSON Secret & Sensitive-Field Sanitizer
Scan JSON for recognized secret patterns and sensitive-field names, then review and redact matches locally in your browser.
Review JSON for secret-like values and sensitive field names
Use a JSON sanitizer to replace selected values before sharing a sample, log, or payload. MyJSONPal scans locally for recognized token and connection-string patterns, secret-like field names, email-shaped values, hashes, and high-entropy strings.
Some PII categories, including phone numbers, card numbers, SSNs, IP addresses, and postal addresses, are identified from field names; their values are not generally detected by content alone. Pattern matching can miss secrets or flag ordinary values, so inspect every result before sharing.
Review matches in the Keys manager, force-redact a field, or add a custom substring, wildcard, or regular-expression rule. Copy or download the resulting JSON after checking that it contains no values you need to protect.
Runs in your browser
Scanning and replacement run locally; editor contents are not uploaded for processing.
Pattern-based detection
Checks configured token and connection-string patterns, email-shaped values, secret-like field names, hashes, and high-entropy strings.
Custom redaction rules
Force-redact selected fields or add substring, wildcard, and regular-expression rules saved in this browser.
Example of automatic value replacement
{
"apiKey": "sk_test_1234567890abcdef",
"email": "ada@example.com"
}
→
{
"apiKey": "REDACTED_API_KEY_SAMPLE",
"email": "user@example.com"
}How it works
Paste JSON
Drop your payload into the editor or drag & drop a .json file. Nothing is uploaded.
Auto-Detect & Redact
Recognized matches are replaced with sample values; detection can miss data or flag ordinary values.
Download / Copy Clean JSON
Review the output for missed sensitive values, then copy it or download it as JSON.
Built for developers sharing JSON safely
Scrub JSON before feeding LLMs
Prepare a sample payload for a prompt or discussion, then inspect the result for secrets the scanner may not recognize.
Safe for public GitHub issues
Review stack traces and configuration examples for credential-like values before attaching them to a bug report.
Share fixture data without risk
Use redacted examples as a starting point for documentation or tests, and verify no real sensitive values remain.
Frequently asked questions
Does my JSON ever get sent to a server?
Your JSON is scanned locally in your browser and is never uploaded. The site uses Google Analytics and Cloudflare Web Analytics to measure visits, but the tool does not send your editor contents with analytics.
What does the automatic scanner detect?
It checks field names for credentials and sensitive categories, recognizes configured JWT and service-token patterns, selected database connection strings, email-shaped values, long hexadecimal hashes, and high-entropy strings. Detection is heuristic and is not a complete inventory of secrets.
Can it detect phone numbers, card numbers, or addresses by value?
Not reliably by value. Those categories are selected mainly from matching field names such as phone, card_number, or address. Review the JSON and add a custom rule or force-redact the relevant field when needed.
What if the scanner misses a sensitive field?
Use the Keys manager to force-redact a field or add a plain-substring, wildcard, or regular-expression rule. Always review the output; automatic matching can miss values and can also produce false positives.
Can I revert to the original un-sanitized JSON if needed?
Yes. Toggle Auto-Sanitize off at any time, or use the Revert to Raw Paste banner that appears after a sanitization to restore the original values immediately.
Will sanitizing my JSON break its structure or invalidate my JSON schema?
The tool replaces detected string or numeric values with sample values while keeping JSON parseable. These replacements can change formats or constraints, so validate the output against your schema before using it.
Why should I mask sensitive data in JSON before sharing it on Slack, Teams, or GitHub?
Removing secrets before sharing examples can reduce accidental disclosure. Because automatic detection is not exhaustive, review the complete output rather than relying on the scanner alone.
Can I revert or un-sanitize my JSON back to its original values?
You can turn Auto-Sanitize off or use the Revert to Raw Paste control to restore the original values in the current session. Take care not to copy the raw version by mistake.
Can I download or copy the sanitized JSON directly?
Yes. Use Copy or Download in the output pane after reviewing the sanitized JSON.
How does the sanitizer handle nested objects and large JSON arrays?
The scanner recursively visits object values and array items in a Web Worker. Browser memory and processing time still depend on the size and nesting of your input.