Web & development

JSON Formatter & Validator

Format JSON · Locate syntax errors · Minify · Save as a file

Your input stays on this device.

JSON input

⌘/Ctrl + Enter to format

Result

JSON is processed on this device.

Paste JSON, then select Format JSON.
Objects
0
Arrays
0
Keys
0
Maximum depth
0

How to use this tool

  1. Paste JSON or load the sample.
  2. Choose Format JSON or Minify JSON; fix any reported syntax error.
  3. Copy the result or download it as a JSON file.

Before you start

  • Only spacing and line breaks change. Large numbers, repeated keys and input order are preserved.
  • Valid syntax does not check dates or required fields. Check the requirements of the service using the data.

Frequently asked questions

Is my JSON saved?

No. Reloading the page clears the input and result. Copy or download your output before leaving.

Does it accept comments or trailing commas?

No. Only standard JSON is supported. Remove comments and trailing commas, and use double quotes around object keys and string values.