toolkitly
Search tools…
⌘
K
~
/
Data
/
SQL Formatter
SQL Formatter
Pretty-print SQL with dialect rules.
SQL input
Postgres
MySQL
SQLite
MariaDB
T-SQL
select u.id, u.email, count(o.id) as order_count from users u left join orders o on o.user_id = u.id where u.created_at > '2024-01-01' group by u.id, u.email having count(o.id) > 5 order by order_count desc limit 25;
Keyword case
UPPER
lower
Preserve
Indent with tabs
Width
4
Formatted SQL
No output yet
Press Format (⌘↵) to pretty-print your SQL.
Related tools
Data
SQL Validator
Validate and format SQL.
Cheat sheets
SQL Cheat Sheet
SQL reference.