SQL Formatter
Quick SQL reformat with uppercased keywords and indented clauses.
Paste a SQL statement. Output appears formatted on the right.
SELECT id
, name
, email
FROM users u
LEFT JOIN orders o
ON o.user_id = u.id
WHERE u.created_at > '2025-01-01' AND o.status = 'paid'
ORDER BY u.created_at desc
LIMIT 100About this tool
Light-touch reformat: uppercases SELECT / FROM / WHERE / GROUP BY / ORDER BY / JOIN, line-breaks top-level clauses, and indents comma-separated columns. Works well for simple queries; complex CTEs and nested subqueries may need a heavier formatter (sqlfluff, pgFormatter, sql-formatter) for production-grade output.
All processing happens entirely in your browser — no input is sent to our servers.