CODDY Tool

JSON Formatter

Beautify minified JSON with proper indentation and a tree view.

Turn a wall of minified JSON into something readable. Choose your indentation, optionally sort keys, explore the structure as a collapsible tree, and minify again when you are done.

Everything you enter stays in this browser tab. Nothing is sent to our servers, logged or stored.

This is one of the thingsJSON Tooldoes — open it for everything else it supports.

Loading tool…

What JSON Tool supports

Clean up

  • Format & beautify
  • Minify
  • Validate
  • Tree view
  • Sort keys

Convert

  • JSON → CSV
  • CSV → JSON
  • JSON → YAML
  • YAML → JSON
  • JSON → XML
  • XML → JSON

About JSON Formatter

Minified JSON is unreadable by design — every byte of whitespace is stripped because it costs bandwidth. Formatting puts the structure back so you can actually see what a response contains and where a field sits.

Choose two spaces, four spaces or tabs, and optionally sort object keys alphabetically, which makes two versions of the same response far easier to compare. The tree view is the faster way into a large document: collapse what you do not need and the shape becomes obvious.

How to format JSON

  1. Paste your JSON

    An API response, a config file, anything.

  2. Choose your indentation

    Two spaces, four spaces or tabs.

  3. Copy the result

    Take it to your clipboard or download it as a .json file.

Frequently asked questions

Is my JSON uploaded anywhere?

No. Formatting happens entirely in your browser, which matters because API responses routinely contain access tokens, internal identifiers and customer records.

What indentation should I use?

Two spaces is the most common convention for JSON and keeps deeply nested documents narrow enough to read. Four spaces suits shallower documents, and tabs let each reader choose their own width.

Can I minify as well as format?

Yes. Minifying strips every byte of insignificant whitespace, producing the smallest valid representation of exactly the same data. Use it before storing or transmitting JSON.

Why does my JSON fail to parse?

Usually a trailing comma, single quotes instead of double quotes, unquoted keys or a comment. The error message points at the exact line and column so you can find it quickly.

All Developer Tools

JSON Formatter is free to use with no account, no watermark and no usage limits. Last updated 14 August 2026.