Options
Each dialect has its own keywords and quoting rules — pick the one your
query targets so identifiers like [brackets] or
`backticks` survive formatting. PostgreSQL is the default.
Expanded puts every key and array element on its own line, like
jq. Compact keeps objects and arrays on one line while
they fit in 80 columns — Prettier's own style for source files.
Lenient accepts and quietly repairs single quotes, unquoted keys, trailing commas and comments. Strict checks the document against RFC 8259 first and reports the exact position of anything that isn't valid JSON, instead of fixing it for you.
Input
Output
Paste or drop something on the left,
then press Format.