$ json --format
json formatter / validator.
Format, validate, and beautify JSON with syntax highlighting. 100% client-side.
input
1
2
3
4
5
2
3
4
5
0 / ∞ chars
output
Common causes: trailing commas, single quotes instead of double quotes, unquoted keys, or comments (JSON does not support comments).
Validation checks if JSON syntax is correct. Formatting beautifies valid JSON with proper indentation. The tool does both in one click.
Click the "Minify" button. This removes all whitespace, reducing file size for faster API transfers.
learn more in our detailed guide.
→ read the guide