How to use the JSON Pretty Printer
- Paste JSON.
- Choose indentation and whether to sort keys.
- Press Pretty print and copy the result into your document.
Features
- Compact arrays: lists of numbers, strings and booleans stay on one line when they fit in 80 columns
- Recursive key sorting for stable output
- Lossless values
Supported input
Valid JSON.
Limitations
- Arrays that contain objects or other arrays are always expanded, for readability.
Privacy
Everything this tool does happens in your browser. What you paste or open is never uploaded, stored, logged or used for advertising. Closing the tab discards it. Read the privacy policy.
Frequently asked questions
01How is this different from the JSON Formatter?
The formatter uses one-item-per-line everywhere, which is ideal for diffs. The pretty printer optimises for human reading by keeping short lists compact.
02Is my data uploaded anywhere?
No. This tool runs entirely in your browser tab. Your input is never sent to our servers, stored, or logged. You can disconnect from the internet after the page loads and it keeps working.