Toolboxn

JSON Formatter

Format, minify or validate JSON.

Loading tool…

Your input stays in this browser.

How to use JSON Formatter

Paste a JSON value and choose two spaces, four spaces or minified output. The formatter validates JSON and shows the error when it finds invalid syntax.

Try this

JSON uses double quotes around object keys. Trailing commas and comments can cause a validation error.