json.peykraft.com
JSON Formatter and Validator
Format, minify and validate JSON. It runs in your browser and nothing is uploaded.
Paste JSON to validate it.
About this formatter
What it does
Paste JSON and it checks the text against the JSON standard. Valid JSON is pretty-printed with 2 spaces, 4 spaces or tabs, or minified onto one line to make it smaller. Sort keys orders every object's keys alphabetically, at every level, which makes two files easier to compare.
Finding errors
When the JSON is invalid, it shows your browser's parser message, with the line and column when the browser reports a position. Common causes are a trailing comma, single quotes instead of double quotes, a key without quotes, and a comment, which JSON does not allow.
Privacy
Formatting runs in your browser. Your JSON is not sent to a server or stored, so it is safe to use with API responses and config files.