๐Ÿงฉ JSON Formatter

Input
Output

Beautify messy or minified JSON to make it readable, or minify it to save space. Invalid JSON is validated and the parse error is shown. Useful for inspecting an API response, reviewing a config file, or checking logs while debugging.

How to use

  1. Paste the JSON you want to format or minify into the input box.
  2. Choose an indent width (2 or 4 spaces).
  3. Click "Format" or "Minify" to see the result. Any syntax error is shown right there.
  4. Click "Copy" to copy the result to your clipboard.

FAQ

Does it tell me about JSON syntax errors?

Yes โ€” if you enter invalid JSON, the parse error is displayed.

Can I choose the indent width?

Yes โ€” choose between 2-space and 4-space indentation.

Is this useful for checking an API response?

Yes โ€” paste a single-line API response and format it to see the structure clearly.

When would I want to minify JSON?

Useful for shrinking a config file or request payload, or when you need the data as a single-line JSON string.

Is my JSON sent to a server?

No, formatting, minifying, and validation all happen in your browser and nothing is sent externally.