Skip to content
AlroundConverter

SQL formatter

Beautify SQL queries for PostgreSQL, MySQL, SQLite, SQL Server and more.

Runs in your browser – your files are not uploaded

How to use SQL formatter

  1. 1

    Paste your SQL query.

  2. 2

    Select the SQL dialect.

  3. 3

    Copy the formatted SQL.

About SQL formatter

The SQL formatter turns long single-line queries into clearly structured SQL with indented clauses, joins and subqueries.

Choose the SQL dialect to handle its specific syntax correctly, and optionally convert keywords to uppercase.

Frequently asked questions

Is my SQL executed?

No. The query is only reformatted as text; it is never executed or sent anywhere.

Which dialects are supported?

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