SQL formatter
Format SQL for the chosen database dialect without executing a query. Files and entered content are not sent to or stored on a server.
How to use
Format SQL for the chosen database dialect without executing a query.
Supported formats & limits
Values → Result
Processing stays in this browser. File formats and available memory may limit the result.
No database connection or execution occurs. Formatting does not replace database-specific syntax validation.
SQL formatter User guide
Instructions
- Choose the database dialect.
- Paste SQL and set indentation and keyword case.
- Format, compare with the source, then copy or save SQL.
Example
Input / settings
select id from users where active=1
Result / checks
Indented SELECT / FROM / WHERE
Please note
- No database connection or execution occurs. Formatting does not replace database-specific syntax validation.
- Choose the correct dialect for placeholders and vendor-specific syntax. Input stays in this tab.