⚡
DeftTools
.io
Developer Tools
SQL Formatter
Format and beautify SQL queries. Supports keywords, joins, subqueries.
SQL Input
Clear
select u.id, u.name, count(o.id) as order_count from users u left join orders o on o.user_id = u.id where u.active = 1 and u.created_at > '2024-01-01' group by u.id, u.name having count(o.id) > 5 order by order_count desc limit 10
Formatted SQL
Copy
Download
Indent:
2 spaces
4 spaces
Tab
Uppercase keywords
Format SQL