🧰Formatty

JSON Formatter

Indent:

Tip: Press Ctrl + Enter to format

InputPaste your JSON here

JSON Syntax Reference

Data TypeSyntaxExample
String"text""Hello World"
Numbernumber42, 3.14, -17
Booleantrue / falsetrue
Nullnullnull
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.