JSON formatter
Format, validate & minify
This JSON formatter pretty-prints your data with readable indentation, checks that it is valid and points you to the exact location of a syntax error. You can also minify the JSON down to a single line before sending it to an API or storing it.
Pasting, parsing and formatting all happen 100% in your browser: no data is uploaded, no tracking and no ads.
FAQ
Does the tool detect syntax errors?
Yes, it validates the JSON and tells you where the error is.
What is the difference between format and minify?
Formatting adds indentation and line breaks for readability, minifying removes whitespace to shrink the size.
Can I choose the indentation size?
Yes, you can set the indentation, for example two or four spaces.
Is my JSON sent to a server?
No, all processing stays in your browser.