JSON formatter
Format, validate, and minify JSON data.
About JSON formatter
Make compact JSON readable or remove unnecessary whitespace for a smaller representation. Validation checks JSON syntax before formatting, while numeric text is preserved rather than rounded through floating-point conversion.
Steps, example, and limitations
How to use it
- Paste JSON or open a JSON file.
- Choose formatting or minification and the available indentation setting.
- Review any syntax errors, then copy or save the valid result.
Example
Input
{"id":9007199254740993,"ok":true}Result
{
"id": 9007199254740993,
"ok": true
}Things to know
- JSON requires quoted property names and does not allow comments or trailing commas.
- Formatting does not repair missing values or change the meaning of the data.