About the JSON Formatter & Validator
Paste JSON to validate it and format it with 2 spaces, 4 spaces or tabs, or minify it to one line. Invalid JSON shows the parser message with the line and column so you can fix it quickly.
How to use it
- Paste your JSON into the input box.
- Choose format or minify, indentation and key sorting.
- Copy or download the output.
Frequently asked questions
- Why does my JSON show an error?
- Common causes are trailing commas, single quotes, unquoted keys and comments, none of which JSON allows.
- Is my data sent to a server?
- No. Parsing runs in your browser.
Private by design: this tool runs in your browser. Read the privacy policy.