Skip to main content

Format JSON online and see exactly where it breaks

JSON
Formatted

The result appears here as you type.

Paste JSON on the left and read the indented result on the right. If it will not parse, you get the line, the column and a caret under the character that broke it, rather than a position number to count to by hand. Also works as a JSON beautifier and pretty printer: paste minified JSON and read it back indented.

If it will not parse

These are the messages people usually arrive with: Unexpected token } in JSON at position 42, Unexpected end of JSON input, SyntaxError: JSON.parse, Expecting value. Paste the input that produced one and the result pane names the problem and points at it.

How to use the JSON Formatter, step by step

Real screenshots of the tool, captured while running it.

  1. 1

    Open the tool

    JSON Formatter opens empty, with json on the left and formatted on the right.

    Empty JSON Formatter before any input
  2. 2

    Add your input

    Paste your own json, or load the sample. The formatted pane fills in as you type.

    JSON Formatter with input in place
  3. 3

    Read the result

    The formatted appears on the right with copy and save beside it.

    JSON Formatter showing its result

Questions people ask

Related tools