SQL Formatter
Dialect
Standard SQL
MySQL
PostgreSQL
SQL Server
Oracle PL/SQL
SQLite
BigQuery
MariaDB
Keywords
UPPER
lower
Preserve
Indent
2 spaces
4 spaces
SQL
Sample
Open file
Clear
select u.id,u.name,count(o.id) as orders from users u left join orders o on o.user_id=u.id where u.created_at>='2026-01-01' and u.active=1 group by u.id,u.name having count(o.id)>2 order by orders desc limit 10;
Formatted SQL
Run
Copy
Download
Press Run to see the result
Free tool by
Imaginex AI SQL Formatter