JSON Formatter & Validator – Beautify, Minify and Fix JSON

Make messy JSON easy to read. Paste JSON to format it with clean indentation, minify it to one line, or check it for errors – the validator shows exactly which line is wrong. You can also sort keys and explore the data as a collapsible tree.

How to format JSON

  1. Paste your JSON (from an API, a config file or a log).
  2. Click Format to make it readable, or Minify to make it one compact line.
  3. If there's a mistake, the tool shows the line and column and highlights it.
  4. Use Tree view to fold and explore big JSON files.

Common JSON errors

  • Keys must be in double quotes: {"name": "Ali"}, not {name: 'Ali'}.
  • No comma after the last item: [1, 2, 3] not [1, 2, 3,].
  • Use true, false and null in lowercase.
  • No comments are allowed in standard JSON.

Frequently asked questions

Is my JSON sent to a server?

No. Everything runs in your browser, so it's safe for private API data.

How big a file can it handle?

Several megabytes work fine on a normal computer.