Skip to content
Labs

Developer

JSON Formatter & Validator

Pretty-print, minify and validate JSON in the browser. Invalid documents show the parser error instead of a rewritten file.

Loading tool…

This runs entirely in your browser. Nothing you type is sent to a server.

How to format JSON

  1. 1Paste a JSON document into the editor.
  2. 2Format it with indentation, minify it onto one line, or sort object keys.
  3. 3Copy or download the result. If the document is invalid, the error stays on screen and the input is left unchanged.

Questions

Does this accept JavaScript object notation?

No. The tool uses the JSON parser, so keys must be in double quotes and trailing commas are rejected. That is the point of validation.

Is my JSON sent anywhere?

No. Parsing and formatting happen locally. Do not paste secrets into a shared screen, but the page itself does not transmit the text.

Related tools