SQL Formatter
Pretty-print SQL queries: uppercase keywords, one clause per line, indented columns and conditions. This is a formatter, not a validator — it beautifies your SQL but does not check that it runs.
Formatted SQL will appear here...
This formatter uses keyword-based pretty-printing: it uppercases SQL keywords, puts each major clause (SELECT, FROM, WHERE, JOIN, GROUP BY, ORDER BY...) on its own line, indents column lists and AND/OR conditions, and preserves strings, quoted identifiers, and comments untouched. It works with most dialects — PostgreSQL, MySQL, SQLite, SQL Server — because it never parses the grammar. That also means it is not a validator: syntactically broken SQL will be formatted without complaint. Your queries never leave your browser.