Frequently asked questions
How do I pretty print JSON?
Paste it into the input. The formatted version appears on the right straight away, indented with 2 spaces by default and ready to copy.
Should I use 2 or 4 spaces for JSON?
Either is valid. 2 spaces is the most common; 4 spaces is easier to follow in deeply nested data. Pick one per project and stay consistent.
Is my JSON sent to a server?
No. Formatting runs in your browser, so the data never leaves your device. That makes it safe for API responses that contain personal data or tokens.
Why did a large ID number change?
JavaScript numbers are exact only up to 9,007,199,254,740,991. Bigger integers are rounded when the JSON is read, and the tool shows a note when that happens. Store long IDs as strings to keep every digit.