JSON formatter.

Paste JSON or open a file to check its syntax and choose an indentation style.

Opening workspace…

How it works

  1. Load the document

    Paste JSON, open a .json file or start with the built-in sample.

  2. Choose the layout

    Select Format and an indentation style, or select Minify.

  3. Check the output

    Read the validation message and correct any syntax error in the input.

  4. Copy or download

    Save the valid output when its layout is ready.

Examples

Read the project version

Format the name and version from the 8omni package manifest.

Input JSON
{"name":"8omni","version":"0.1.0"}
Output JSON
{
  "name": "8omni",
  "version": "0.1.0"
}

Minify the language menu data

Minify the Portuguese and Arabic entries used in the language menu.

Input JSON
{
  "pt": [
    "Português",
    "pt-PT"
  ],
  "ar": [
    "العربية",
    "ar"
  ]
}
Output JSON
{"pt":["Português","pt-PT"],"ar":["العربية","ar"]}

Formatting changes whitespace between tokens. Large numbers, escape sequences, duplicate keys, and the original order of keys are preserved.