SQL formatter
Paste a SQL query to format it with clean indentation and consistent keyword case.
Frequently asked questions
Which databases are supported?
Standard SQL plus the MySQL, MariaDB, PostgreSQL, SQLite, SQL Server (T-SQL), Oracle (PL/SQL), BigQuery, Snowflake and Redshift dialects, using the open-source sql-formatter library.
Does formatting change what the query does?
No. Only whitespace, line breaks and the case of keywords change; names, values and the order of everything stay the same.
Is my SQL uploaded?
No. It is formatted in your browser and not put into the page link.