HandyTools

JSON formatter

Paste JSON, beautify or minify it, and see the exact spot of any syntax error.

Input
Output

Files are processed in your browser

How it works

Indent JSON so its structure is clear.

  1. 01

    Paste or type JSON text.

  2. 02

    Pick an indent width and format it, or minify to one line.

  3. 03

    Copy the result; syntax errors point to where they occur.

FAQ

What is the difference between format and minify?

Formatting adds line breaks and indentation so the hierarchy is readable and easy to debug. Minifying removes all extra whitespace, producing the shortest single line — good for embedding in config, URL parameters, or reducing transfer size. Neither changes the data, only the layout.

How do I locate a syntax error?

The tool uses the browser's built-in JSON parser, and the error message points to the problem as closely as it can. Common causes are unquoted keys, a trailing comma on the last item, or single quotes — JSON only accepts double quotes.

Does it change number precision or key order?

Key order is preserved as you entered it. Numbers follow JavaScript's numeric rules, so integers beyond 2^53 may lose precision — a general JSON limitation. Store very long IDs as strings to be safe.

Is my data uploaded?

No. Parsing, formatting, and copying all happen in your browser. The JSON is never sent to this site or a third party and clears when you refresh or leave.