JSON Formatter
Format JSON with 2-space, 4-space or tab indentation, minify it to one line, or sort keys A to Z. Syntax errors are reported with line and column.
5 tools
| Tool | What it answers |
|---|---|
| JSON Beautifier | A JSON beautifier parses minified or messy JSON and prints it again with one member per line and consistent indentation. |
| JSON Formatter | Paste JSON and it is parsed with the strict RFC 8259 grammar, then rewritten with 2 spaces, 4 spaces, tabs or no whitespace at all. |
| JSON Minifier | Paste a JSON document and the minifier parses it, then writes it back out with no whitespace between tokens. |
| JSON Validator | Paste JSON and the validator parses it with strict RFC 8259 rules. |
| JSON Viewer | Paste a JSON document and the viewer lists every value with its path, such as $.tags[1], its type and its value. |
Format JSON with 2-space, 4-space or tab indentation, minify it to one line, or sort keys A to Z. Syntax errors are reported with line and column.
Paste JSON and see every value as a path, type and value row, with nesting depth and counts of objects, arrays, strings, numbers and nulls.
Check JSON against strict RFC 8259 rules and see the exact line, column and reason for the first error, plus counts of objects, arrays and keys.
Pretty-print minified JSON with 2-space, 4-space or tab indentation, optional A to Z key sorting, and counts of lines, keys and nesting depth.
Minify JSON by removing indentation, spaces and line breaks between tokens, and see the size before and after in UTF-8 bytes with the percentage cut.