JSON formatter
Paste JSON and get it formatted, or the exact place of the error.
- Category
- For developers
- Price
- free
The tool starts in your browser.
Everything is calculated in your browser. Nothing you type is sent to our server.
How to use it in three steps
The tool as a schematic with this page's example. Each step's number stands where you take it: in the fields, at the result or outside the tool.
Paste the JSON.
Choose pretty-print or minify.
Copy the result, or fix the error at the given line and column.
Six inputs through the JSON formatter
An error, an empty field, how numbers are written, a repeated key and a large integer. The last row shows a JavaScript limit: keep Discord IDs in JSON as quoted text.
{"a":1,"b":[1,2,}a comma before the bracket, the example from the description{"name":"VulCode","active":true}pretty-print{"price":1.50,"qty":1e3}minify{"role":"admin","role":"mod"}the same key twice{"id":175928847299117063}a number above 9007199254740991" "only spaces5 of 6 cases as expected
Questions
Related tools
The tool does one job. If the same thing should happen automatically in your bot, server or system, we build it.
Missing a tool you need?
Tell us what you want to calculate or generate. We will tell you whether a tool is enough or an integration in your system fits better.