What is a JSON formatter?
A JSON formatter takes compact or messy JSON data and lays it out with indentation so people can read it. It also checks that the JSON is valid and points to the error if it is not.
How to use it
- Paste your JSON into the input box.
- Click Format to beautify it, Minify to compress it, or Validate to check it.
- Copy the result from the output box.
Common uses
- Reading API responses while learning to code
- Debugging configuration files
- Checking JSON before sending it to a server
- Shrinking JSON to save space
Tips
- Keys and text values in JSON must use double quotes.
- Remove trailing commas, which JSON does not allow.
- Use Minify before sending data over a network to save bandwidth.
Frequently asked questions
What makes JSON invalid?
Common causes are missing quotes, trailing commas and unmatched brackets.
Is my data uploaded?
No. Everything runs in your browser.
What is the difference between format and minify?
Format adds spaces for readability. Minify removes them to make the file smaller.