Skip to content
>_TulzaBox
Tools

SQL Formatter

Formats and minifies SQL for popular databases.

Keywords
Indent

Everything runs in your browser: your input and files are never uploaded.

How to use

  1. Paste a SQL query and choose the dialect.
  2. Set keyword case and indentation.
  3. 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.

Related tools