Skip to content

Database

SQL Query Formatter

Paste a one-line SQL query and get it broken onto clauses with keywords uppercased - instantly readable, nothing sent anywhere.

Paste your SQL

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.created_at > '2024-01-01'
AND u.active = true
GROUP BY u.id, u.name
ORDER BY order_count DESC
LIMIT 20