JSON formatter and validator
Developer tools
Paste JSON. It is formatted as you type, and if it will not parse you get told where and probably why.
Runs in your browser
Nothing is uploaded. The work happens on your own device, so your file or text never reaches us.
About this tool
Errors that are actually useful
Unexpected token } in JSON at position 1472 is not help when the JSON is one minified line.
So a failure here reports the line and column, shows the text around it, and names the likely cause when the shape of the input gives it away:
- a trailing comma before a closing bracket, which JavaScript allows and JSON does not
- single quotes, which are JavaScript strings and not JSON ones
True,None,NaNorundefined— Python or JavaScript literals rather than JSON’s lowercasetrue,falseandnull- comments, which JSON5 and JSONC allow and strict JSON does not
It never leaves your browser
JSON you are debugging tends to contain tokens, keys, customer records and internal hostnames. Pasting that into a site that posts it to a server is a data leak, however the site is worded.
This one parses in your browser. There is no request to inspect, because there is no request.