What does prettifying JSON mean?
Prettifying (or beautifying) JSON adds indentation, line breaks, and spacing to make the nested structure of a JSON document visible to human readers. It is the opposite of minification.
Compact JSON like {"users":[{"id":1,"name":"Alice"},{"id":2,"name":"Bob"}]} becomes fully expanded and indented — each key-value pair on its own line, each nesting level indented consistently.
How to prettify JSON
- Paste your JSON into the text area above.
- Choose your indentation — 2 spaces (default), 4 spaces, or minify.
- The output is formatted immediately. Copy it with the Copy button or
Ctrl+K.
Indentation options
2 spaces is the most common convention — used by most JavaScript/TypeScript projects, Prettier, and many API tools. 4 spaces is preferred in some Python and Java environments. Choose what matches your project's style guide.