JSON Formatter / Validator

Paste JSON to check that it is valid and to format it with the indentation you prefer, minify it for transport, or sort the keys alphabetically.

Loading the tool…

How it works

  • The text is parsed with the browser’s strict JSON parser. If it parses, it is written back with your chosen indentation. Errors report the position.
  • Runs entirely in your browser: what you paste is not sent anywhere.

Assumptions and limits

  • Strict JSON only: comments, trailing commas and single quotes are not allowed. Very large numbers lose precision beyond 15–17 digits, as in all JavaScript tools.

Frequently asked questions

Why does my JSON fail?

The usual causes are trailing commas, single quotes, unquoted keys and comments, none of which are valid JSON.

Related tools

Last reviewed 2026-10-28. More developer, web & seo tools tools. See the disclaimer.

Report a problem with this tool