Developer utility
JSON Beautifier
Turn compact or messy JSON into clean, readable text. Choose 2 spaces, 4 spaces or tabs, and beautify entirely in your browser.
Input
Your JSON is processed locally in your browser. We don't upload your JSON to any server.
Why beautify JSON?
Minified JSON is efficient to send over a network but painful to read. Beautifying adds line breaks and indentation so you can see the hierarchy of objects and arrays at a glance. It is the same operation as formatting, with the emphasis on readability.
Choosing an indentation style
- 2 spaces — compact and common in JavaScript and web projects.
- 4 spaces — roomier, popular in Python and Java tooling.
- Tabs — lets each reader configure their own display width.
The beautifier validates your input as it works, so you will be told if the JSON is not valid before any output is produced.
Advertisement