SQL Formatter
Paste messy SQL and get a readable version: uppercase keywords, one clause per line, indented conditions and subqueries. Or minify everything onto one line.
Result
What it does: keywords from a built-in list of 90+ SQL keywords are uppercased; major clauses (SELECT, FROM, WHERE, JOIN variants, GROUP BY, ORDER BY, HAVING, LIMIT, UNION and friends) each start a new line; AND / OR conditions are indented under their clause; subqueries indent by parenthesis depth. String literals ('...', "..."), backtick identifiers, and comments (-- and /* */) are preserved exactly as written, never uppercased or reflowed. Minify strips comments and collapses everything to a single line. This is a layout tool, not a validator: it will happily format SQL that would not run. Everything runs locally, nothing is uploaded.