JSON Formatter
Format and beautify JSON with proper indentation.
What this tool does
JSON Formatter takes messy or minified JSON and re-indents it so it's easy to read, or minifies it to a single compact line. Everything happens in your browser.
How to use
- Paste your JSON into the input box.
- Pick an indentation, or choose Minify.
- Click Format JSON, then copy the result.
Notes
- Invalid JSON shows a clear error message.
- Your data is never uploaded.
Frequently asked questions
Is my JSON sent to a server?
No. Formatting runs entirely in your browser. Your data never leaves your device.
What indentation can I use?
Choose 2 spaces, 4 spaces, or tabs. You can also minify to a single line.
What if my JSON is invalid?
You'll see the parser's error message. Use the JSON Validator for a quick valid/invalid check.