Loading Future Forge Tools…

SQL Formatter

Format SQL for PostgreSQL, MySQL, SQL Server, BigQuery, Snowflake and more with consistent indentation and keyword case.

How to use SQL Formatter

  1. Paste your SQL query.
  2. Choose the dialect, keyword case and indentation.
  3. Copy or download the formatted SQL.

Frequently asked questions

Which SQL dialects are supported?

Standard SQL, PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, BigQuery, Snowflake and Oracle PL/SQL.

Can I minify SQL?

Yes. Turn on Minify to put the query on a single line and strip comments.