Guides ·
How to use SQL Formatter
SQL Formatter. Format queries for MySQL, PostgreSQL and more. No. It only reformats text; it never connects to a database.
The short answer
To format SQL, paste a query, choose the dialect (standard SQL, MySQL, PostgreSQL, SQL Server, SQLite, BigQuery, Oracle and more) and keyword case, and click Format. Clauses, joins and subqueries are put on clear, indented lines.
It runs in your browser. What you enter is not uploaded.
How to use it
Type or paste your input into the SQL Formatter.
Choose any options you need.
See the result update instantly.
Copy the result or download it.
Limits worth knowing
Does it run or validate my query? No. It only reformats text; it never connects to a database.
Can I keep my keyword case? Yes. Choose Preserve, UPPER or lower for keywords.