JSON formatter

Processed in this browser

Text limit: 10000000 characters

File limit: 10 MB

This tool never uploads your input.

Format

Pretty-print, minify, and pinpoint JSON parse errors in this tab so you can read a minified API body without sending production payloads to a formatter service.

A minified API body landed in your logs and you need the missing comma, not a SaaS “JSON workspace.” That is this page: format, minify, and surface parse errors in the current tab.

JSONFormatter.org and the Chinese omnibox sites (JSON.cn, BeJSON) own the head term with huge sister-tool directories. We are a catalog utility: paste stays here, and we will not pretend this is a schema designer.

Beautify vs minify vs validate

  • Beautify adds whitespace so objects are readable.
  • Minify strips insignificant whitespace for a smaller payload.
  • Validate is JSON.parse — valid or not, with a location when the engine can say.

Common false JSON: trailing commas, 'single quotes', undefined, comments. Those belong in JS or JSON5, not here.

How to use it

  1. Paste the text. Do not wrap it in extra markdown fences inside the box.
  2. Format or minify. If it fails, read the error, fix the source, paste again.
  3. If you needed a spreadsheet, go to JSON ↔ CSV. For config, JSON ↔ YAML. To compare two blobs, text diff.

Honest limits

  • Unicode is fine; we are not a hex editor.
  • We do not generate Java/Go structs from the tree.
  • Production customer JSON still deserves the Network-tab habit: no unexpected POST after you paste.

This is not legal advice and not a security scanner. It only rearranges text.

FAQ

Why is my JSON invalid?

Trailing commas, single quotes, and // comments are JavaScript, not JSON. Keys must be double-quoted. The error position is a starting point — one missing comma can make the next token look guilty.

Do you support JSON5 or JSON Schema?

No. This is standard JSON.parse / pretty-print. Schema validation and JSON5 are different tools.

Is it safe to paste an API response that contains tokens?

Formatting stays in this tab. Still treat live secrets like secrets: redact them, or format on your own machine. A formatter does not need a server.

Can I convert this JSON to CSV or YAML?

Use JSON ↔ CSV for a table of objects, or JSON ↔ YAML for config files. Those are different jobs from beautify/validate.

Will a 10 MB file work?

Maybe, until the tab runs out of memory. There is no cloud queue. For huge logs, use jq or an editor locally.

Is this the same as ‘beautify code’?

No. Code beautify formats HTML/CSS/JS. This page is JSON only.

Related tools