JSON Formatter
Paste JSON to format, validate or minify it. If the JSON is invalid, the error message tells you why.
Your JSON is processed in your browser and is not uploaded to a server.
How to use this json formatter
- Paste your JSON into the input box.
- Choose Format to indent it, or Minify to compact it.
- If the JSON is invalid, the error message is shown.
- Copy the formatted output when you are done.
Frequently asked questions
What is JSON?
JSON (JavaScript Object Notation) is a lightweight data format used to exchange data between systems and APIs.
Is my JSON sent to a server?
No. Parsing, formatting and validating happen entirely in your browser.
What does Minify do?
It removes all whitespace and produces the smallest valid JSON, which is useful for sending data over the network.
Why does it say invalid JSON?
Common causes are trailing commas, missing quotes around keys or strings, and unclosed brackets. The error message points to the problem.