Beautify / minify JSON with syntax highlighting and error hints
JSON (JavaScript Object Notation) is the most widely used data interchange format. API responses typically return minified single-line JSON that's difficult to read and debug. A JSON formatter converts compressed JSON into indented, human-readable format while validating syntax correctness.
| Type | Syntax | Notes |
|---|---|---|
| String | "value" |
Double quotes only; supports \n \t \uXXXX |
| Number | 42 / 3.14 |
NaN and Infinity not supported |
| Boolean | true / false |
Must be lowercase |
| Null | null |
|
| Array | [1, "a", true] |
|
| Object | {"key": value} |
Key must be double-quoted |
Not supported: Comments, trailing commas. Integers larger than 2⁵³ lose precision — use strings instead.
package.json, tsconfig.json, etc. before making changesUsually caused by single-quoted strings, trailing commas, or comments in your JSON. Standard JSON only supports double quotes and does not allow comments or trailing commas.
JavaScript's Number type cannot accurately represent integers beyond 2⁵³ - 1. If your JSON contains large integers (e.g., snowflake IDs), convert them to strings at the source.
This tool strictly follows the RFC 8259 standard. If your data contains comments or trailing commas, you'll need to remove those non-standard extensions first.