- All dev tools
- JSON formatter
JSON formatter and validator
Paste JSON to pretty-print it, check it is valid, or minify it. If something is wrong, you get the line, the column and a plain-English reason.
How to use the jSON formatter and validator
- Paste your JSON into the box.
- It is checked and formatted as you type. Pick Minify for one line, or sort the keys.
- Copy the result or download it as a .json file.
Questions
Why does it say my JSON is invalid?
The most common causes are a trailing comma after the last item, single quotes instead of double quotes, keys without quotes, and comments. JSON allows none of these. The error message points at the exact line and column.
Does it change my data?
No. Only whitespace changes, unless you tick "Sort keys", which reorders object keys alphabetically. Values are kept exactly. Very large numbers beyond 2⁵³ can lose precision, as in any JavaScript tool.
Is my data sent anywhere?
No. Everything runs in your browser with JavaScript. What you paste is never sent to a server, and the site's security policy stops the page from connecting to any other website. That matters for tokens, keys and customer data, which people paste into tools like this every day.
Related tools
- JSON to CSVTurn JSON arrays into a spreadsheet.
- JWT decoderRead a JWT and check its signature.
- Diff checkerCompare two texts line by line.
More developer tools
- CSV to JSONTurn a spreadsheet into JSON.
- Base64 encode and decodeText and files to and from Base64.
- URL encode and decodePercent-encode text for URLs.
- Hash generatorMD5, SHA-1, SHA-256, SHA-512.
- Regex testerTest regular expressions live.
- Case convertercamelCase, snake_case, Title Case…
- Lorem ipsum generatorPlaceholder text on demand.
- Cron expression explainerCron schedules in plain English.
- Unix timestamp converterEpoch time to dates and back.
- UUID generatorRandom v4 and time-ordered v7 UUIDs.