JSON Formatter
Paste any JSON - minified, copied from a log or an API response - and get a clean, consistently indented version you can actually read. Formatting runs entirely in your browser.
How to use
- Paste your JSON into the input box.
- Choose the indent size (2 or 4 spaces).
- Click Format. The formatted result appears below, or a precise error if the JSON is invalid.
- Use Copy to copy the result to your clipboard.
Examples
Minified API response
Input: {"id":7,"name":"Ada","tags":["admin","dev"]}
Output: {
"id": 7,
"name": "Ada",
"tags": [
"admin",
"dev"
]
}
Frequently asked questions
Is my JSON uploaded to a server?
No. Formatting runs 100% in your browser with JavaScript. Nothing is sent anywhere.
What happens if my JSON is invalid?
The tool shows the exact parse error message and position reported by the JavaScript engine so you can fix it quickly.
Can it handle large files?
Yes, up to several megabytes comfortably, since everything is local. Extremely large inputs depend on your device memory.