JSON Formatter

Format, validate and minify JSON with clear error messages.

Loading tool...

Everything is processed locally in your browser. Nothing you enter is uploaded. Privacy details

What this tool does

Check an API response or configuration file, then expand its nested structure for inspection. Formatting validates syntax, not business rules, and does not repair incorrect data.

How to use it

  1. Paste JSON into the input. Keys and string values need double quotes.
  2. Choose Format for readable indentation or Minify for compact output.
  3. If parsing fails, check trailing commas, single quotes and unmatched brackets before trying again.

Example

Input: {"name":"OhMy","count":2}
Formatted:
{
  "name": "OhMy",
  "count": 2
}

Limits and common mistakes

This tool uses JSON.parse and JSON.stringify. Comments and trailing commas are unsupported. Duplicate keys may be overwritten and integers outside the JavaScript safe range may lose precision. Encode long identifiers as strings at the source. Large inputs can consume substantial browser memory.

JSON specification: RFC 8259

Why use this tool?

Fast and private

Everything is processed locally in your browser. Nothing you enter is uploaded.

Works on every device

Responsive controls for desktop, tablet and mobile.

Frequently asked questions

Is my data stored?

Local processing does not upload your input. Some tools, such as the notepad, save content or preferences in this browser; clearing site data removes that local storage. Usage counters are described in the privacy policy.