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
- Paste a JSON value into Input JSON.
- Choose an indentation width, then select Format, Minify, or Validate.
- 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.