JSON Formatter

Format, validate, and tidy up your JSON.

Runs in your browser

Your input

0 / 100,000 characters

Your result

A little input. A useful result.

Run the tool to see your result here.

Your input stays on this device. No uploads, no account.
A LITTLE CONTEXT

About this json formatter

Turn compact JSON into an indented document you can read and copy. Choose Format for two-space indentation or Minify to remove unnecessary whitespace. The validator identifies the approximate line and column of a syntax error so you can repair a missing quote, comma, or bracket. Input is parsed as data in your browser and never executed as code or uploaded to a server.

How it works

The browser JSON parser validates the input. The parsed value is serialized with two-space indentation, or no indentation in Minify mode.

Try these examples

01

{"name":"Ada","active":true}

{
  "name": "Ada",
  "active": true
}
02

[1, 2, 3]

[1,2,3] in Minify mode

Limitations & privacy

Maximum input: 100,000 characters. JavaScript number precision applies; very large integers can lose precision. Duplicate keys retain the last value. Comments and trailing commas are not JSON. Errors identify a location, not a semantic object path.

Inputs and results stay in this browser. Only tool identifiers are stored for your recently used tools. You can clear that history from the directory.

A few good questions

Can I format JSON with comments?

No. Remove comments and trailing commas before formatting.

Does this reorder keys?

Object key ordering follows JavaScript serialization rules, including numeric keys.

Is pasted JSON executed?

No. JSON is parsed as data and displayed as escaped text.

Updated September 12, 2026

Keep the momentum going.

All tools