About the JSON Formatter & Validator
Formats, minifies and validates JSON. Invalid input gets the parser's own error message, including the character position, which is usually enough to spot the missing comma or bracket. Valid input gets a quick summary of key count and nesting depth.
Format, minify and validate
Format adds indentation and line breaks so nested objects and arrays are easy to read - handy for API responses and config files. Minify strips the whitespace back out for the smallest payload. Validate runs the text through a strict JSON parser and reports what is wrong when it fails.
Common JSON errors
- A trailing comma after the last item - allowed in JavaScript, not in JSON.
- Single quotes - JSON strings and keys need double quotes.
- Unquoted keys -
{name: 1}must be{"name": 1}. - Comments - JSON has none; remove them or use JSONC/JSON5 where your tool supports it.
Your JSON is parsed in the browser and never sent anywhere, so it is safe for tokens and customer data. Working with spreadsheets? The CSV to JSON converter goes both ways, and Base64 decode unpacks encoded payloads.

