JSON Formatter

Turn minified API responses and config dumps into readable JSON. Choose your indent style, format in the browser, and copy the result for docs, PRs, or debugging.

Result

Result appears here.

How to format JSON

  1. Paste JSON into the input (minified, pretty-printed, or messy).
  2. Choose indent: 2 spaces, 4 spaces, or tab.
  3. Click Format, or press Ctrl+Enter (Cmd+Enter on Mac).
  4. Review the formatted output, then copy or download it.

FAQ

No. Formatting only adds or removes whitespace and line breaks. Keys, values, and structure stay the same.
Yes. Paste a single-line JSON string from logs or network tabs — the formatter expands it with your chosen indentation.
You can use 2 spaces, 4 spaces, or a tab character. Pick the style that matches your project or team convention.
Inputs up to 5 MB are supported. Larger files should be split or processed with a local CLI tool.
No. Formatting runs entirely in your browser. Nothing is uploaded or stored on a server.

Related tools