SQL Formatter
Pretty-print SQL with clause breaks and uppercased keywords.
This is a keyword-based formatter: it uppercases SQL keywords and breaks each major clause (SELECT, FROM, WHERE, JOIN, ORDER BY…) onto its own line, with AND / OR / ON indented underneath. String literals in single quotes are left untouched. It is not a full SQL parser, so very complex nested queries may need a hand-tidy.
How to format SQL
Paste your query and choose Format. Keywords are uppercased and each major clause — SELECT, FROM, WHERE, JOIN, ORDER BY — starts a new line, with AND / OR / ON indented beneath. Minify collapses it back to a single line.
What stays untouched
String literals in single quotes are preserved exactly, including their case and spacing, so your data values are never altered by the formatter.
Questions
Which SQL dialect does it support?
It's dialect-neutral. The formatter works on common keywords shared across SQL dialects — SELECT, FROM, WHERE, JOIN, GROUP BY and so on — so it tidies most queries regardless of the database.
Is this a full SQL parser?
No, by design. It's a fast keyword-based formatter: it uppercases keywords and breaks major clauses onto their own lines without fully parsing the grammar. Very complex nested or vendor-specific queries may need a small hand-tidy.