JSON formatter
Pretty-print, minify and validate JSON, with the exact line and column of any error. Your data stays in this tab, so it’s safe for API responses with private data.
Runs in your browser. Your files are never uploaded or stored.
Something not working, or missing an option?
How to use JSON formatter
- Paste JSON or open a .json file.
- Choose the indentation, or minify.
- Copy or download the result.
Questions
Is it safe to paste API responses with personal data?
Yes. Unlike most online formatters, this page can’t send anything anywhere; the formatting runs in your browser.
Are my files uploaded?
No. The tool runs inside your browser, and the page is blocked from sending data anywhere. You can check by turning off your internet connection: it keeps working.
Open-source parts
This tool uses only features built into your browser: no third-party code.