Paste your JSON: it is checked and tidied up instantly, with the line and column of every error.
1
Waiting for your code.
Tree
Path
Everything happens in your browser: nothing you type is sent.
Format JSON so you can read it
An API response or a configuration file often sits on a single line. The formatter breaks it into indented lines, with two spaces, four spaces or tabs, without changing the data: strings and numbers are copied exactly as written, large identifiers included.
Validate and find errors
The check follows the JSON standard (RFC 8259) and runs as you type. The first error is explained with its line and column, and a button takes you there. When it is a common slip (extra comma, comment, apostrophes, unquoted key, True or None coming from Python), an automatic fix is offered: read its result before using it.
Three ways to see the result
Format: airy text, with sorted keys if you wish, handy for comparing two files.
Minify: everything on one line, without a single useless space, to shrink a transfer.
Tree: blocks you open one at a time; a click gives the path to a value, such as $.items[0].price.
Limits
The tool checks syntax, not a schema (JSON Schema). Files are limited to 5 MB; beyond a few hundred thousand characters the browser may slow down.
Frequently asked questions
Is my JSON sent to a server?
No. It is analysed in your browser and saved nowhere. Only your settings (indentation, sorting, mode) are kept on your device.
Why are comments rejected?
The JSON standard has none. Some configuration files tolerate them (JSONC, JSON5), but an ordinary JSON reader stops on them. The automatic fix removes them.
Does sorting keys change the data?
Not the data: the order of keys in an object has no meaning in JSON. The order of items in an array is always preserved.
What should I do with a large identifier?
Above 9,007,199,254,740,991 JavaScript rounds integers. This tool copies them unchanged and tells you; in your programs, preferably send them as strings.