JSON formatter and validator
Paste JSON to pretty-print it, find syntax errors, or convert it to YAML.
Output
Common questions
How do I find where my JSON is broken?
The error shows the line and column where parsing stopped, with a pointer under the problem. Common causes are trailing commas, single quotes instead of double quotes, and comments, none of which JSON allows.
Is the YAML output safe for Kubernetes and Docker Compose?
Yes. Strings that YAML would read as another type, like "true", "8080", "no" or dates, are quoted so they stay strings.
Are large numbers kept exactly?
Numbers bigger than 253 (about 9 quadrillion) lose precision in JavaScript. If your JSON has large IDs, keep them as strings.
Is my JSON sent anywhere?
No. Everything runs in your browser, so it is safe for configs and API responses.