SQL Formatter Live
Format SQL queries for readability.
SQL formatter
How the SQL Formatter works
Format SQL queries into readable, consistently indented statements.
- 01
Step 1
Paste a query and choose the SQL dialect.
- 02
Step 2
Click Format SQL and copy the result.
Why use it
Dialect aware
Supports MySQL, PostgreSQL, SQLite, MariaDB and T-SQL.
Keyword casing
Keywords are uppercased for readability.
Frequently asked questions
Does it execute the query?
No — it only formats text.
Why did formatting fail?
The query may contain syntax the selected dialect does not understand.