JSON Formatter & Validator🔒 Processed on your device

Pretty-print and validate JSON, or minify it to the smallest text.

Converts as you type
0 chars

How to use

Paste standard JSON and choose Format or Minify. Comments and trailing commas are not allowed. Parsing uses the browser’s native JSON parser: numbers beyond the safe integer range may lose precision, and for duplicate keys only the last value is kept.

FAQ

Why is my JSON invalid?

Common causes are single quotes, unquoted keys, trailing commas and comments. Standard JSON allows none of them.

Will large numbers change?

Integers larger than 9,007,199,254,740,991 may lose precision, because JavaScript stores numbers as 64-bit floating point values.