JSON and YAML
Convert between JSON and YAML.
Format, minify and validate JSON, with the exact line and column of any error.
Your files stay on your device
This tool runs in your browser. The JSON you paste is never sent to a server, so API keys and private data stay with you.
No. Everything is done in your browser. You can even disconnect from the internet after the page has loaded and it keeps working.
Common causes are a trailing comma, single quotes instead of double quotes, an unquoted key or a missing bracket. The message shows the line and column so you can go straight to the problem.
No. Standard JSON does not allow comments. Remove them first, or use a format such as JSONC in your own editor.
No. Objects have no order in JSON, so sorting keys only changes how the text looks. Arrays are never reordered.
Several megabytes work fine on most devices. Very large files depend on your browser memory.