▶What does a SQL formatter do?
A SQL formatter organizes SQL statements with consistent indentation, line breaks, and keyword casing to make queries easier to read and maintain.
▶Which SQL dialects are supported?
The formatter supports Standard SQL, MySQL, MariaDB, PostgreSQL, SQLite, SQL Server T-SQL, Oracle PL/SQL, BigQuery, Snowflake, Redshift, Spark SQL, Trino, Db2, N1QL, and SingleStore.
▶Does formatting change what a SQL query does?
Formatting is intended to improve presentation rather than query logic. Always review the formatted query before using it in production, especially when working with database-specific syntax.
▶Are my SQL queries uploaded to a server?
Formatting is performed in your browser. The SQL Formatter component does not send your query to a formatting API.
▶Can I format SQL from a file?
Yes. Drag and drop a supported .sql or .txt file into the editor, then format the loaded query.