SQL Formatter

Format and beautify SQL for PostgreSQL, MySQL, SQL Server, SQLite, BigQuery, Snowflake, and Oracle. Choose keyword case and indentation. Free and private.

Keywords
Indent
Formatted

Frequently asked questions

Which SQL dialects are supported?

Standard SQL, PostgreSQL, MySQL, SQLite, SQL Server (T-SQL), BigQuery, Snowflake, and Oracle PL/SQL.

Does formatting change what my query does?

No. Only whitespace, line breaks, and optionally keyword case are changed.

Can I format several queries at once?

Yes. Separate them with semicolons and each is formatted with a blank line between.