SQL formatter

Paste a SQL query to format it with clean indentation and consistent keyword case, or minify it onto one line.

Runs in your browser. Your files are never uploaded.

Frequently asked questions

Which databases are supported?

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

Are my queries uploaded?

No. It runs entirely in your browser. Nothing you add is uploaded to a server.