en

JSON Formatter

Pretty-print, minify, and explore JSON with an interactive tree view.⌘⏎ run · ⇧⌘C copy · ⎋ reset
INPUTIndent spaces
2
Paste or type JSON. Errors are underlined in red.
OUTPUT
❯ _Run an operation to see results here.then press ⌘⏎
ADSponsored

What is JSON Formatter?

The JSON Formatter pretty-prints, validates and minifies JSON entirely in your browser, and offers an interactive tree view. It pinpoints syntax errors with line and column and can sort keys for stable diffs. Nothing you paste ever leaves your device, so it is safe for production data.

How to use it

  1. 01Paste raw JSON into the input.
  2. 02Pick an indent width (or 0 to minify).
  3. 03Press Format, then copy, download, or explore the tree.

FAQ

Is my JSON uploaded?

No — parsing and formatting run locally; the page even works offline.

Can it minify instead of format?

Yes — set indent to 0 or use Minify to strip all whitespace.

What is the maximum size?

Large documents format smoothly; extremely large inputs may switch to a lighter view.

Examples

Format compact JSON{ "json": "{\"a\":1,\"b\":[2,3]}", "indent": 2 }

Related tools