All tools
TinyTools
Free tool
SQL Formatter
UPPER keywords
lower keywords
Indent:
2 spaces
4 spaces
Tab
Input SQL
SELECT u.id, u.name, u.email, o.order_id, o.total FROM users u INNER JOIN orders o ON u.id = o.user_id WHERE u.status = 'active' AND o.total > 100 GROUP BY u.id, u.name, u.email ORDER BY o.total DESC LIMIT 50;
Formatted
Copy