Dev
SQL Formatter
Format and prettify SQL for MySQL, Postgres, SQLite, BigQuery, and 7 more dialects.
Loading tool…
About this tool
Paste any SQL and prettify it with consistent indentation and keyword casing. Supports 11 dialects including MySQL, PostgreSQL, SQLite, MariaDB, BigQuery, Redshift, Snowflake, Spark SQL, T-SQL, and PL/SQL. Minify back to one line in a click.
Frequently asked questions
Which SQL dialects are supported?
Standard SQL, MySQL, PostgreSQL, SQLite, MariaDB, BigQuery, Redshift, Snowflake, Spark SQL, T-SQL (MSSQL), and PL/SQL (Oracle).
Can I minify SQL too?
Yes — the Minify button collapses whitespace for compact one-line output.