JSON Formatter / Validator

Paste JSON to pretty-print it, minify it, or just check it’s valid. If there’s an error, you’ll see exactly where.

How it works

Your JSON is parsed with the browser’s native JSON.parse. Formatting just re-serializes it with the chosen indentation; minifying removes all whitespace.

When parsing fails, the error message is turned into a precise line and column so you can jump straight to the problem.

Frequently asked questions

Why does my JSON fail to parse?

Common causes: trailing commas, single quotes, unquoted keys, or comments — none of which are valid in strict JSON. The error message will point to the line and column.

What’s the difference between format and minify?

Format adds indentation and newlines for readability. Minify strips all whitespace to make the output as small as possible — useful for APIs and storage.