Developer Tools

JSON formatter and validator

Check JSON syntax, format it for reading, or compact it for copying.

JavaScript is required to run the interactive tool. Open the tool separately if it does not load in the frame.

How to use it

Paste JSON into the field, choose Format or Minify, then press Run. A syntax error returns an error code without changing your input.

Example

For example, format a compact object to make each property easier to read.

Frequently asked question

Does formatting change JSON values?

The data is parsed and written again. Whitespace changes, but numbers beyond JavaScript precision may also be rounded.

Limits and privacy

Input is limited to 2 million characters. No schema is checked. Numbers use JavaScript precision; store long numeric identifiers as strings to avoid rounding.

Tool input is processed in a separate browser environment without advertising or analytics scripts. This page does not upload it to the service.