How to format JSON
Paste your JSON and click Format to pretty-print it with proper indentation, or Minify to strip all whitespace. If the JSON is invalid, you'll see the error and where it is, and the problem character gets highlighted.
Is my data safe?
Yes. Many online formatters send your JSON to a server. This one parses it in your browser, so API keys, tokens and customer data never leave your machine.
Common JSON errors
- Trailing commas after the last item:
[1, 2, 3,] - Single quotes instead of double quotes:
{'a': 1} - Unquoted keys:
{a: 1} - Comments, which standard JSON doesn't allow