JSON prettify and format

Prettify your JSON string into a friendly, human-readable format.

About JSON prettify and format

Formats a JSON string into an indented, readable layout. It also accepts relaxed JSON5 input (comments, trailing commas, unquoted keys) and always outputs standard JSON.

When you would use it

How to use it

  1. Paste or type your JSON into the left field; the formatted result appears below right away.
  2. Choose the indent size (0 to 10 spaces).
  3. Turn "Sort keys" on or off, then copy the result with the copy button.

Things worth knowing

Frequently asked questions

Why does the output not appear?
When the input is not valid JSON or JSON5, the validation message under the input shows the problem and the output stays empty. Typical causes are a missing comma, an unmatched bracket, or text pasted before or after the JSON.
Does it validate against a schema?
No. It only checks that the text is syntactically valid and then reformats it. It does not check types or required fields.

All the tools