Options

SQL dialects

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.

JSON layout

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.

JSON mode

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

0 lines · 0 chars

Output

Paste or drop something on the left,
then press Format.