JSON Formatter

Format JSON and remove sensitive fields.

How to use this tool

Steps

  1. Paste or type a copy of the JSON and validate it before making assumptions about the structure.
  2. Use formatting for review and minification only when a compact representation is actually required.
  3. Configure scrub rules for exact field names used in the document, then inspect every replacement in context.
  4. Copy or download the result and validate it again in the destination system.

Supported formats

  • Input: one valid JSON value, including an object, array, string, number, boolean, or null.
  • Output: formatted, minified, or scrubbed JSON text.
  • Comments, trailing commas, NaN, Infinity, and JavaScript object syntax are not standard JSON.

Things to know

  • A valid document can still have the wrong schema or misleading values.
  • Key-based scrubbing misses secrets stored under unexpected names or embedded in text.
  • Large pasted documents can make the editor and browser storage slow.
  • Formatting does not encrypt, anonymize, or validate business rules.
Read the full guide