UTILS.
100% in-browser
{}

JSON Formatter & Validator

Pretty-print, minify and validate JSON, with inline error messages.

result

About this tool

Format messy JSON into clean, indented output, minify it to a single line, or validate it and get a precise inline error message when something is wrong. Choose 2 spaces, 4 spaces or tabs. All parsing happens in your browser.

Frequently asked questions

Does it validate JSON?
Yes. If the input is not valid JSON it shows the parser's error message so you can find the problem quickly.
What does minify do?
It removes all unnecessary whitespace to produce the smallest valid JSON, ideal for sending over the network.

More tools