JSON Formatter & Validator
Pretty-print, validate, minify or sort JSON - errors show the exact line and column.
0 characters
How to use JSON Formatter & Validator
- 1Type or paste your text into the box.
- 2Choose your options and press “Format JSON”.
- 3Copy the result or download it as a file.
About this tool
Pretty-print, validate, minify or sort JSON - errors show the exact line and column. It works instantly in your browser with nothing to install. It's part of our free text tools, which work together - you can pass the result straight into related tools below.
Frequently asked questions
Is my JSON sent anywhere?
No. It's parsed by your browser's own JSON engine on this page, so API responses and config files with secrets stay on your device.
Why does it say my JSON is invalid?
Common causes are trailing commas, single quotes instead of double quotes, comments and unquoted keys - all allowed in JavaScript but not in JSON. The error gives the line and column to look at.
Is JSON Formatter & Validator free?
Yes. There's no sign-up, no watermark and no usage limit.
Is my data stored?
No. Everything is calculated in your browser and nothing is sent to a server.
Does it work on mobile and offline?
Yes. It works in any modern browser on phones, tablets and computers, and keeps working offline once the page has loaded.