How to use the SQL Formatter
- Paste SQL on the left.
- Pick the dialect, keyword case and indentation.
- Copy the formatted query.
Questions
Is my data uploaded anywhere?
No. The tool runs entirely in your browser. Nothing you paste or drop is sent to a server, logged or stored, so it's safe for API responses, config files and other private data.
Which SQL dialects are supported?
Standard SQL, PostgreSQL, MySQL, MariaDB, SQLite, SQL Server (Transact-SQL), Oracle PL/SQL, BigQuery, Snowflake, Redshift, Spark, Hive, Trino, DB2 and more.
Does it support dbt and Jinja templates?
Yes. {{ }} and {% %} blocks are kept intact while the SQL around them is formatted.