JSON formatter & validator

Pretty-print, minify and validate JSON with clear error messages.

How to use the JSON Formatter

  1. Paste JSON into the box.
  2. Click Format to beautify or Minify to compress it.
  3. If the JSON is invalid, the error message shows what is wrong.

JSON is the most common data format for web APIs and config files. Formatting it with indentation makes it readable; minifying removes whitespace for smaller payloads.

Frequently asked questions

Is my text sent anywhere?

No. Everything is processed in your browser; nothing you type is uploaded or stored.

Why is my JSON invalid?

Common causes are trailing commas, single quotes instead of double quotes, and unquoted keys. The error message points to the position.