JSON Formatter
Indent:
Tip: Press Ctrl + Enter to format
InputPaste your JSON here
JSON Syntax Reference
| Data Type | Syntax | Example |
|---|---|---|
| String | "text" | "Hello World" |
| Number | number | 42, 3.14, -17 |
| Boolean | true / false | true |
| Null | null | null |
| Array | [value, ...] | [1, 2, 3] |
| Object | {"key": value} | {"name": "John"} |
About JSON
JSON (JavaScript Object Notation) is a lightweight data interchange format that is easy for humans to read and write, and easy for machines to parse and generate. It is based on a subset of JavaScript and is language-independent.
Pro Tip
Use 2-space indentation for compact code and 4-space for better readability. JSON does not support comments, trailing commas, or single quotes for strings.