JSON Formatter & Validator

Format, validate, and beautify JSON online. Shows the exact line and column of syntax errors, sorts keys, minifies, and runs entirely in your browser.

Indent
Formatted

Valid JSON6 keysdepth 2132 bytes

Frequently asked questions

Is my JSON sent to a server?

No. Formatting and validation happen in your browser, so API responses and config files stay private.

Why is my JSON invalid?

Common causes are trailing commas, single quotes instead of double quotes, unquoted keys, and comments. The error shows the line and column to check.

Can it minify JSON too?

Yes. Choose Minify to remove all whitespace.