Format and beautify JSON with adjustable indentation. Paste minified API responses or config files and get readable, consistently indented output instantly.
Output will appear here.
Frequently Asked Questions
What does the JSON Formatter do?
It parses your JSON and reprints it with consistent indentation so configs, API payloads, and log snippets are easier to read and compare.
Will invalid JSON be auto-fixed?
No. Invalid JSON shows an error message. Use the JSON Validator to pinpoint syntax problems before formatting.
Can I choose indentation size?
Yes. Switch between 2 spaces, 4 spaces, or tabs. Output updates live as you type.
Is my JSON sent to a server?
No. Formatting runs entirely in your browser. Your data never leaves your device.
Is this tool free and does it work on mobile?
Yes on both counts. The JSON Formatter on draft21 is completely free with no sign-up required and works on all devices.
Related Tools
JSON ValidatorCheck JSON syntax and see line-level error messages.Base64 EncoderEncode text or binary-safe strings to Base64.URL EncoderPercent-encode URLs and query string values.Regex TesterTest regular expressions with live match highlighting.JWT DecoderDecode JWT header and payload without sending data online.Developer & Web UtilitiesBrowse all developer and web utility tools on draft21.