SQL Formatter
Beautify SQL queries with indentation and keyword formatting for several common database dialects.
Runs in your browser.
Tool settings
Result
How to use this tool
Select the database dialect, paste a query and format it. Queries are handled as text and are never executed.
Example input
select id, name from customers where active = 1 order by name;