JSON formatter / minifier

Pretty-print or minify JSON, with error checking.

Two jobs in one: make unreadable JSON readable, or squeeze readable JSON down for the wire. Paste it in and it's pretty-printed with indentation — or minified to a single line — and if it doesn't parse, it says so rather than failing silently.

How JSON formatter / minifier works

  1. Enter or paste your text or values.
  2. It's processed instantly on your device as you type.
  3. Copy or download the result.

Good to know: Because it runs entirely in your browser, it's safe to paste JSON that has real data in it — an API response with a token, a config with credentials. Nothing is uploaded, which is a promise most online JSON formatters can't make.

Common questions

Is it safe to paste JSON containing secrets?

Here, yes — the parsing happens in your browser and nothing is sent anywhere. Be careful with online formatters generally: most POST your input to a server, which is a genuinely bad idea for a payload containing a token or a key.