JSON Formatter
FeaturedFormat, minify and validate JSON with optional key sorting — directly in your browser.
How to use
- 1Paste your JSON into the left text area.
- 2Choose an indentation, then click Format to pretty-print it (or Minify to remove whitespace).
- 3Enable Sort keys to order object keys alphabetically. Copy the result with one click.
Examples
- Pretty-print
- {"b":2,"a":1} becomes a multi-line document with two-space indentation.
- Sort keys
- With sorting enabled, {"b":2,"a":1} becomes {"a":1,"b":2}.