Developer Tools
JSON Formatter and Validator
Format, minify and validate JSON with clear error messages.
- Free
- No sign-up
- Runs in your browser
Valid JSON
Your JSON is processed in this page and is never sent anywhere.
How to use JSON Formatter and Validator
Follow these steps:
- Paste your JSON on the left. It is checked as you type.
- Choose Format to make it easy to read, or Minify to make it as small as possible.
- Pick the indentation and, if you like, sort the keys A to Z.
- Copy the result.
If the JSON is invalid, the message says what is wrong and, where your browser gives it, the line and column.
Examples
Tidy a response
Paste {"name":"OEWER","tools":[1,2]} and choose Format to see it spread over several indented lines.
Find a mistake
A trailing comma such as {"a": 1,} is not valid JSON. The error message points to where it goes wrong.
Frequently asked questions
Is my JSON sent to a server?
No. It is checked and formatted in your browser and never leaves your device.
Why is my JSON invalid when it works in my code?
JSON is stricter than JavaScript: keys need double quotes, single quotes are not allowed, and trailing commas and comments are not allowed.
How large can the input be?
Up to 5 million characters.