Developer utility

JSON Formatter

Validate, format, minify and inspect JSON locally with readable output, tree view, path table and parser feedback.

Input

Paste JSON

ValidationWaiting

Paste JSON to validate, format, minify and inspect structure.

Size0 B
Depth0
Keys0
Items0

Output

Formatted or minified JSON

Tree view

JSON structure

Paths

Key paths and value types

#PathTypePreview

Examples

Common JSON samples

JSON quick reference

ValueValid JSON exampleNotes
Object{"name":"Ada"}Keys require double quotes.
Array[1,2,3]Values are ordered.
String"hello"Strings use double quotes.
Number42Numbers do not use quotes.
BooleantrueUse lowercase true or false.
NullnullUse lowercase null.

JSON formatter FAQ

Does this formatter upload JSON?

No. Parsing and formatting happen locally.

Can it fix invalid JSON automatically?

No. It reports syntax errors without guessing changes.

Can I minify after formatting?

Yes. Both actions parse the current input.

What does sorting keys do?

It recursively sorts object keys and changes property order.