SQL Formatter
Format SQL statements for the database dialect you use.
Runs on your device. Nothing you add is uploaded.
Formatted SQL
SELECT bed, count(*) AS plants FROM seedlings WHERE planted_at >= '2026-03-01' GROUP BY bed ORDER BY plants DESC;
How to use SQL Formatter
- Paste the SQL source.
- Choose your database dialect and indentation.
- Copy the output.
Questions
What does the tool change?
Choose the dialect that matches your database. The formatter parses SQL for layout and never executes the statement.
Where is my input processed?
On your device. The tool does not upload the input or its result.
How this works
Uses sql-formatter’s dialect-aware parser and formatter.
Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. Your last settings are kept in this browser so the tool opens the way you left it. Privacy
Related tools
More in DeveloperHTML Formatter
Indent HTML markup and lay out attributes and elements consistently.
CSS Formatter
Indent CSS selectors and declarations so a stylesheet is easier to read.
CSS Minifier
Remove unnecessary spacing from CSS while keeping values and selectors intact.
JSON Formatter
Indent JSON so objects and arrays are easy to read.