Skip to content

About the JSON Formatter

Format and validate JSON with your choice of indentation. Large integers and number spellings are kept exactly, and errors show the line and column.

How to use it

Examples

Questions

Does it change my numbers?
No. Numbers keep their exact text, so large integers such as 12345678901234567890 and trailing zeros such as 1.10 are not rounded the way JSON.parse would round them.
Why is my JSON rejected?
JSON is stricter than JavaScript: keys and strings need double quotes, and comments, trailing commas, NaN and Infinity are not allowed. The error names the line and column.
Is my input uploaded?
No. Everything is calculated in your browser tab and nothing is uploaded or stored.

Free and runs in your browser. Sign in only if you want to save your work.