SQL Formatter

Beautify SQL with dialect-aware rules. PostgreSQL, MySQL, T-SQL, BigQuery, Snowflake, and more — live as you type.

Dialect
Keyword case

SQL

Formatted

Formatted

Input chars433
Output lines36
Output size0.54 KB

Reference

DialectMatch your engine so ::casts, backticks, brackets, and vendor keywords survive formatting.
Keyword caseUPPER is the classic DBA style; lower is common in app SQL; Preserve leaves casing alone.
IndentOutput always uses 2-space indentation.
CTEs & windowsWITH, window functions, and multi-statement scripts format clause-by-clause.