JSON Formatter

Pretty-print JSON with consistent indentation. Minify, copy, or download — all in your browser.

Processed in your browserNo upload, no signup

JSON input

0 lines · 0 chars

Formatted JSON

0 lines · 0 bytes
Your input is processed locally and isn't uploaded for processing. Verify by opening DevTools → Network — there are no requests carrying your data.

JSON Formatter examples.

// Minified input → readable output

{
  "a": 1,
  "b": [
    2,
    3,
    4
  ],
  "c": {
    "d": true
  }
}
{"a":1,"b":[2,3,4],"c":{"d":true}}

Frequently asked questions.

Does it sort keys?

No. The formatter preserves key order so you keep the structure your tooling expects.

Can I change the indent size?

Yes — edit the value in the "Indent" controls under the output panel. Default is 2 spaces.

Is my JSON sent anywhere?

No. Formatting happens in your browser.

Related tools.