JSON Formatter

Paste JSON to pretty-print it, check that it is valid, or minify it into one line.

🔒 Your files and text never leave your device. Everything is processed in your browser.

How to use

  1. Paste your JSON into the input box.
  2. Choose Beautify or Minify and the indent size.
  3. Copy the result, or fix the error shown.

Why format JSON

APIs and logs often return JSON on a single line, which is hard to read. Beautifying adds line breaks and indentation so you can see the structure; minifying removes all spaces to make the payload smaller for sending or storing.

The most common JSON errors

Keys must be in double quotes ("name", not name or 'name'). Trailing commas after the last item are not allowed. Comments are not part of JSON. Numbers cannot have leading zeros, and true, false and null must be lowercase. When the input is invalid, the error message shows where parsing stopped.

Private by design

API responses often include tokens or customer data. This formatter parses JSON entirely in your browser, so nothing you paste is sent to a server.

Frequently asked questions

Is my JSON sent to a server?

No. Formatting and validation run in your browser.

Why is my JSON invalid?

Common causes are trailing commas, single quotes and keys without double quotes.

Other free tools