JSON Formatter · How it works
How it works
Formatting without changing your data
Format with 2 or 4 spaces, or minify to remove whitespace between tokens. Whitespace inside strings, key order, duplicate keys and number notation are preserved. Editing the original tokens avoids rounding large integers such as 9007199254740993.
Standard JSON and input limits
Keys and strings need double quotes. Comments, single quotes and trailing commas are not allowed. Objects, arrays, strings, numbers, true, false and null are supported. Input is limited to 1,000,000 characters and 128 nesting levels.
Worked example
Enter {"id":9007199254740993,"active":true}. Formatting changes whitespace, not the number token. Minify removes optional whitespace. RFC 8259 defines JSON syntax; comments and trailing commas are rejected. Formatting does not validate your API schema.