SQL Formatter / Minifier

Pretty-print or minify an SQL statement in your browser. Each top-level clause on its own line, columns indented, JOIN clauses aligned. Keyword case, indent, and semicolons are configurable. Nothing is uploaded.

 

Loosely PostgreSQL-flavoured but tolerant of MySQL, SQLite, SQL Server, and Oracle-style syntax. Pure client-side, no upload. Not a parser — it doesn't validate that your SQL is syntactically correct.