SQL formatter
Pretty-print SQL: keyword case, one clause per line, simple indentation — or minify to a single line.
How to use
- Paste SQL.
- Choose keyword case and indent width.
- Format or minify, then copy.
What it supports
A cosmetic subset: keyword case, clause-per-line for major clauses (SELECT/FROM/WHERE/GROUP/ORDER/JOIN/…), and consistent indent. Comments and string literals are preserved; the query is not re-validated or optimized. Input up to 512 KB.