advertisement
// messy JSON → readable JSON

JSON formatter & validator

Paste JSON to check it's valid — errors are pinpointed by line and column — then format it for reading or minify it for shipping.

advertisement

The usual suspects when JSON won't parse

JSON is stricter than JavaScript: keys must be in double quotes, no trailing comma after the last item, no comments, and no single quotes. The validator here runs while you type and tells you the line and column of the first problem it hits.

What's the difference between Format and Minify?

Both produce the exact same data. Format adds indentation and line breaks so humans can read it; Minify strips every unnecessary character so it's as small as possible for transfer or storage.

Is my JSON sent anywhere?

No — this runs entirely in your browser with plain JavaScript. Nothing is uploaded, which also makes this safe for data you'd rather not paste into a random website.