JSON Formatter
Beautify, validate and minify JSON.
How to use JSON Formatter
Paste your JSON into the editor, or drop a .json file onto it.
Pick an indent size — 2 spaces, 4 spaces or tabs — or switch to Minify.
Invalid JSON is flagged with the exact line and column so you can fix it.
Copy the formatted JSON or download it as a .json file.
Frequently Asked Questions
Is my JSON sent to a server?
No. Formatting and validation run in your browser with the native JSON parser, so API responses, tokens and customer data never leave your machine.
How big a file can I format?
Documents of a few megabytes format instantly. Very large files (above roughly 20 MB) depend on your device's memory, since everything is held in the browser tab.
Can it sort the keys of my JSON?
Yes. Turn on Sort keys to order every object alphabetically and recursively — handy when you want to diff two API responses that list fields in a different order.
Related tools
Looking for something else? Browse all developer tools.