SQL Formatter
Your SQL never leaves your browser — everything runs on your device.
Paste a one-line SQL query and get clean, readable SQL back: SELECT, FROM, WHERE, GROUP BY, and JOINs each start on their own line, keywords are uppercased (or lowercased, your choice), and subqueries are indented. Sixteen dialects are supported, including MySQL, PostgreSQL, SQLite, SQL Server, BigQuery, and Snowflake, so dialect-specific syntax is handled correctly. Free, no signup, and your SQL never leaves your browser.
Frequently asked questions
How do I format SQL?
Paste your query, pick your dialect, and click Format SQL. Major clauses move to their own lines, keywords are cased the way you chose, and indentation makes the structure easy to follow.
Which SQL dialects are supported?
Sixteen: Standard SQL, MySQL, MariaDB, PostgreSQL, SQLite, SQL Server (T-SQL), BigQuery, Snowflake, Redshift, Hive, Spark, Oracle PL/SQL, DB2, Trino, DuckDB, and ClickHouse. Pick the one your database uses for the most accurate result.
Does formatting change what my query does?
No. Formatting only changes whitespace, line breaks, and keyword case. The query returns exactly the same results after formatting.
Is my SQL uploaded anywhere?
No. Formatting happens entirely in your browser. Your queries are never sent to a server, stored, or shared.