Skip to content
HQ8T

SQL Formatter

Format SQL queries for any database.

Keywords
Indent

How to use

  1. 1Paste your SQL query or queries.
  2. 2Pick your database dialect.
  3. 3Choose keyword case and indentation.
  4. 4Copy the formatted SQL.

Frequently asked questions

Which databases are supported?

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

Does formatting change what my query does?

No. Only spaces, line breaks and keyword case change. The query logic stays the same.

Can I format several queries at once?

Yes. Separate them with semicolons and each is formatted with a blank line between them.

Is my SQL sent to a server?

No. Formatting happens in your browser, so table names and data stay private.