SQL Formatter
Paste a messy SQL query to get a clean, indented, readable version, with support for several SQL dialects.
Input SQL
Formatted SQL
SELECT id, name, email FROM users WHERE active = TRUE AND created_at > '2025-01-01' ORDER BY created_at DESC LIMIT 20;
Example input
select id,name from users where active=true;
Example output
SELECT id, name FROM users WHERE active = true;