JSON Formatter & Validator

Format, minify and validate JSON with the exact line of any error.

  • Free
  • No sign-up
  • Runs in your browser: nothing is uploaded

Format, validate and minify JSON

Paste JSON from an API, a config file or a log. Format makes it readable with indentation, Minify removes spaces to make it small, and if something is wrong you'll see the exact line and column with a plain-English reason: a missing comma, single quotes, an extra comma at the end, or an unclosed bracket. Nothing is uploaded.

Questions

Why is my JSON invalid?

The usual causes are single quotes instead of double quotes, a comma after the last item, a missing comma between items, or comments (JSON doesn't allow comments).

Is my data safe?

Yes. It's checked in your browser and never sent to a server, so it's fine for API responses with private data.