SQL Formatter

Format SQL with clear indentation and keyword casing, for standard SQL, MySQL, PostgreSQL, SQLite, SQL Server, BigQuery and other dialects.

Free · No upload · 100% on your device

How to use SQL Formatter

  1. Type or paste your code or data, or open a file.
  2. Choose the settings in the side panel. The result updates as you type.
  3. Copy the result or download it as a file.

Private by design. Everything you type, open or record is processed in this browser tab and is never uploaded to KittySuite.

About SQL Formatter

Choose the dialect your database uses so its special syntax is understood. Several queries separated by semicolons are formatted one after another. Formatting only changes whitespace and keyword case, never what the query does.

Everything runs in this browser tab: your text is never uploaded or stored, and the result updates as you type. It keeps working offline once the page has loaded.

SQL Formatter: frequently asked questions

How do I format a SQL query?

Paste the query or open a .sql file, choose your database dialect and copy the formatted SQL.

Which SQL dialects are supported?

Standard SQL, MySQL, MariaDB, PostgreSQL, SQLite, SQL Server, Oracle PL/SQL, BigQuery, Snowflake, Redshift and Spark SQL.

Can formatting change what my query does?

No. Only whitespace and keyword case change.

Can I format several queries at once?

Yes. Queries separated by semicolons are formatted one after another.