JSON Formatter & Validator
Paste JSON to format, validate or minify it.
Paste JSON to format, validate or minify it.
JSON is the standard text format for data on the web, but minified or broken JSON is hard to read. This tool checks that your JSON is valid and shows the parser's error message when it is not, such as a trailing comma or a missing quote. Format it with 2 spaces, 4 spaces or tabs, sort the keys alphabetically to compare files, or minify it to save space. Everything runs in your browser, so API responses and configuration files are never uploaded.
Use Format to read an API response and Minify to reduce its size before sending it. Sorting keys makes two JSON files easier to compare. JSON requires double quotes and does not allow comments or trailing commas. Avoid pasting secrets such as API keys into online tools you do not trust. This one processes everything locally.
Common causes are trailing commas, single quotes instead of double quotes, comments and unquoted keys. JSON does not allow them.
No. The processing happens locally in your browser.