SQL formatter
Pretty-print SQL in your browser. Uppercase keywords, break major clauses. Nothing is uploaded or executed.
Text helper only. Nothing is executed against a database.
How to use the SQL formatter
- Paste a statement.
- Click Format.
- Copy the result. This is not a query runner.
What it does
A lightweight pretty-printer: uppercase common keywords, newline before SELECT/FROM/WHERE/JOIN/GROUP/ORDER, wrap commas. It is not a full parser and will not understand every dialect. Comments starting with -- are dropped. Pair IN-clause and INSERT-from-CSV when you are assembling lists, not pretty-printing.
Nothing is uploaded
No database session. Caps about 1.5 MB.
SQL formatter FAQ
Will this run my query?
No. There is no Workbench and no DuckDB here.
MySQL vs Postgres?
Keyword casing is shared. Identifier quoting is left as you pasted it.