JSON formatter, validator and minifier
Paste JSON and press Format to get clean, indented output, or Minify to strip whitespace for smaller payloads. If the JSON is invalid the tool tells you what is wrong and where, with a line and column, so you can fix a missing comma or quote quickly.
Common JSON errors
- Trailing commas after the last item, which JSON does not allow.
- Single quotes instead of double quotes around keys and strings.
- Unquoted keys, such as {name: "a"}.
- Comments, which are not part of the JSON standard.
- A missing closing bracket or brace.
Format versus minify
Formatted JSON is easier for people to read and compare. Minified JSON is smaller, which helps for API responses and stored configuration. The data is identical either way.
Private by design
Parsing happens entirely in your browser using the built-in JSON engine, so tokens, customer data or configuration you paste are never sent to a server.