JSON Formatter

Format and beautify JSON with your choice of indentation.

How to Use

Paste minified or messy JSON into the box below and get a clean, indented, readable version instantly. If your JSON has a syntax error, you'll get a clear message instead of a cryptic parser error.

Examples

Minified input

json: {"a":1,"b":2}

{ "a": 1, "b": 2 }

Frequently Asked Questions

Is my JSON data sent to a server?
No — formatting happens entirely in your browser. Nothing is uploaded.
What happens if my JSON is invalid?
You'll see a clear message telling you the JSON couldn't be parsed, so you can fix it.