SQL Formatter
Formats and minifies SQL for popular databases.
KeywordsIndent
Everything runs in your browser: your input and files are never uploaded.
How to use
- Paste a SQL query and choose the dialect.
- Set keyword case and indentation.
- Copy the result or download .sql.
FAQ
Which databases are supported?
Standard SQL, PostgreSQL, MySQL, MariaDB, SQLite, SQL Server (T-SQL), Oracle PL/SQL, BigQuery and ClickHouse.
Does formatting change the query?
No, only whitespace, line breaks and keyword case change. String literals stay as they are.
Are queries uploaded?
No, formatting runs in your browser.