DEVELOPER TOOLS

JSON formatter

Validate, format or minify a JSON document.

Getting the tool ready...

Inputs are processed in your browser. This build does not send them to a server.

How it works

Validate, format or minify a JSON document. Fill in the form and choose Run tool. It opens with an example already filled in, so you can see how it works first.

What you need

  • Output style (Pretty print, Minify)
  • JSON input

What you get

  • The result as text
  • Copy or save the result

Example

The tool opens with Output style: Pretty print, and some example text.

{
  "hello": "world",
  "tools": [
    "useful",
    "simple",
    "private"
  ]
}

Good to know

Uses JavaScript JSON parsing: duplicate keys are collapsed and numbers beyond safe precision can be rounded. Keep identifiers and very large numbers as strings.

Your privacy

What you type is worked out in your browser and is not sent anywhere. There are no accounts, adverts or tracking scripts.

KAMRAN.UK