← All Tools
๐๏ธ SQL Formatter & Beautifier
Format and beautify SQL queries with proper indentation and keyword casing. 100% client-side.
Options
Keyword case:
UPPER
lower
Preserve
Indent:
2 spaces
4 spaces
Tab
Trailing semicolons
Comma on new line
Input SQL
Format
Minify
Clear
SELECT u.id, u.name, u.email, o.total, o.created_at FROM users u INNER JOIN orders o ON u.id = o.user_id WHERE u.active = 1 AND o.total > 100 AND o.created_at >= '2024-01-01' GROUP BY u.id, u.name, u.email ORDER BY o.total DESC LIMIT 50;
Formatted Output
๐ Copy
Sample Queries
SELECT + JOIN
INSERT
UPDATE
CREATE TABLE
Subquery
CTE (WITH)
Copied!