How to use the JSON Formatter
- Paste your JSON on the left, or drop a .json file there.
- Pick 2 spaces, 4 spaces or tabs, and tick Sort keys if you want keys in alphabetical order.
- Copy the formatted result. If the JSON is broken, the status line tells you where.
Questions
Is my data uploaded anywhere?
No. The tool runs entirely in your browser. Nothing you paste or drop is sent to a server, logged or stored, so it's safe for API responses, config files and other private data.
Does it keep comments?
Yes. It formats JSON with comments (JSONC, as used in tsconfig.json and VS Code settings) without removing them.
Will it change my numbers?
No. Formatting works on the text, so values like 1.0, 1e3 or very large integers stay exactly as you wrote them instead of being rounded by JavaScript.
What's the difference between a JSON formatter and a JSON beautifier?
None. Both mean pretty-printing JSON with indentation and line breaks so it's easy to read.