Common JSON errors
- Trailing commas:
{"a": 1,}is not allowed in JSON. - Single quotes: strings and keys must use double quotes.
- Unquoted keys:
{name: "x"}is valid JavaScript but not valid JSON. - Comments: JSON has no // or /* */ comments.
Tick Fix common mistakes to repair all four automatically. Everything runs in your browser, so API keys and private data in your JSON are never uploaded.
Frequently asked questions
What is the difference between beautify and minify?
Beautify adds line breaks and indentation so people can read it. Minify removes all unnecessary whitespace to make the file as small as possible for sending over a network.
Can it convert JSON to YAML?
Yes. Set Output to YAML, which is useful for Kubernetes, Docker Compose and GitHub Actions configuration files.