Prettify JSON
Format and beautify minified JSON with flexible indentation options
Last updated: October 14, 2026
How to use
- Paste or type your JSON code in the input field
- Or upload a JSON/text file using the file upload
- Choose your preferred indentation style (spaces or tabs)
- Optionally sort object keys alphabetically
- Click "Format" to beautify and validate your JSON
- Click "Minify" to compress your JSON into a single line
- Use "Copy" to copy the result or "Download" to save as a file
- Real-time formatting shows errors with line and column numbers
Result actions
Copy or download the tool output, or share a link to Prettify JSON.
Get new tools in your inbox
An occasional email when we ship new free tools. No spam, unsubscribe anytime.
Related tools
Convert Hex to Text
Convert hexadecimal strings to readable text instantly
Convert Hex to UTF8
Convert hexadecimal representation back to UTF-8 text
URL Encoder/Decoder
Encode and decode URLs with component or full URL support
Analyze JSON
Analyze JSON structure and get detailed statistics about your data
Base64 Decode
Decode standard Base64 text as UTF-8 in your browser
Base64 Encode
Convert plain text to base64 encoded format instantly
Format JSON for inspection and editing
Paste JSON or upload a JSON file, then format it with 2, 4, or 8 spaces or tabs. The tool parses the input as JSON before producing output, so malformed syntax is reported with a line and column instead of being silently reformatted. It can also minify valid JSON and optionally sort object keys; arrays keep their order.
Example: the compact input {"name":"Ada","active":true} becomes an indented object with one property per line. Formatting changes whitespace, not the data values. Sorting keys changes property order and can make the result harder to compare with the original, so leave it off when order matters to your workflow.
You can copy or download the formatted result. JSON is parsed in your browser and is not uploaded. This tool handles JSON, not JavaScript object literals with comments, trailing commas, or unquoted keys.