RU

JSON formatter

Format, minify and validate JSON.

Result

Your result will appear here.

ReadyCtrl / ⌘+Enter
Processing runs locally in your browser

About this tool

Indent JSON, remove whitespace or check its syntax. Formatting preserves the original number literals and key order.

How to use it

Paste JSON, select an indent width and click Format. Minify removes whitespace between values. Validate reports whether the syntax is valid.

Practical example

Paste {"active":true,"tags":["api","web"]}. Formatting puts properties and array items on separate lines.

Frequently asked questions

Why does JSON with a trailing comma fail validation?

Standard JSON requires double quotes around keys and disallows comments and trailing commas. JavaScript object literals and JSON5 accept some of these constructs.

Does formatting round large integers?

Digits, exponents and property order are preserved. Formatting changes whitespace between tokens.