JSON Formatter
Pretty-print, validate and minify JSON, with the line and column of any error and an option to sort keys. Your JSON stays in your browser.
Your JSON stays in this browser tab. Nothing is sent to a server.
How to use it
- 1
Paste your JSON
Drop in the JSON you want to tidy.
- 2
Format or minify
Choose an indent and press Format, or Minify to make it compact.
- 3
Copy the result
Copy the formatted output, or read the error if the JSON is invalid.
Questions about json formatter
Will it tell me where an error is?
Yes. Invalid JSON shows a message with the line and column of the problem.
Can it sort the keys?
Yes, tick "Sort keys A–Z" to order every object alphabetically.
Is my JSON uploaded?
No. Formatting runs entirely in your browser.