DevToolbox

โ†‘ โ†“ to select ยท Enter to open ยท Esc to close

JSON Formatter

Format, minify, or validate JSON in your browser with adjustable indentation.

Optional local history

Save only non-sensitive examples. Entries stay in this browser until you clear them.

How to use the JSON Formatter

Format, minify, or validate JSON in your browser with adjustable indentation.

Steps

  1. Paste a JSON value into Input JSON.
  2. Choose an indentation width, then select Format, Minify, or Validate.
  3. Copy the output or read the parser message when the input is invalid.

Example: Input becomes readable JSON

{"name":"Ada","active":true}

Limitations

This uses the browserโ€™s JSON parser. Comments, trailing commas, and other JavaScript-only syntax are not valid JSON and are not repaired automatically.