Format and beautify SQL queries with proper indentation and keyword casing, across dialects including PostgreSQL, MySQL, SQLite, T-SQL, BigQuery, and Snowflake. Paste a one-line query and get readable SQL instantly, in your browser.
How to use SQL Formatter & Beautifier
Paste your SQL and choose the dialect.
Pick keyword casing (UPPER, lower, or keep) and indent size.
Copy the formatted query.
Frequently asked questions
Which SQL dialects are supported?
Standard SQL plus PostgreSQL, MySQL, MariaDB, SQLite, SQL Server (T-SQL), BigQuery, Snowflake, Redshift, and Spark.
Does it change my query’s logic?
No — formatting only adds whitespace and adjusts keyword casing. The query runs exactly the same.