JSON Formatter
Beautify, minify and sort the keys of any JSON — instantly, in your browser.
Input
Paste your JSON below. Invalid JSON? Check the error message — it tells you exactly where.
Output
What does "beautify" do?
Beautifying adds line breaks and indentation so nested structures become readable. Minifying strips all whitespace to produce the smallest possible payload — useful for API requests and config files.
Frequently Asked Questions
What does "sort keys" change?
It rewrites every object with keys in alphabetical order — handy for diffing two config files.
Does it support JSON5 or comments?
No. Standard JSON only — comments are technically invalid JSON.
Is my JSON sent anywhere?
No. Formatting happens entirely in your browser.
Is this tool free?
Yes, completely.