How it works
Uses sql-formatter's default SQL setting to add readable indentation and line breaks. It never sends a query to a database or executes it.
Format SQL queries for readability without executing them.
select id from users where active = true
select id from users where active = true
Uses sql-formatter's default SQL setting to add readable indentation and line breaks. It never sends a query to a database or executes it.
To review a compact query, paste the SQL, run the formatter, and copy the structured result.
There is no dialect selector. Formatting does not validate SQL or predict execution results. If parsing fails, inspect quotes, parentheses, and query syntax.
No. It formats the SQL text locally in the browser.
The input area shows the accepted format and available controls for this tool.
No. Your input is handled in the browser you are using. Privacy