About this tool
This is a lightweight, regex-based SQL formatter — not a full SQL parser. It recognizes common keywords (SELECT, FROM, WHERE, JOIN, GROUP BY, ORDER BY and more), uppercases them, and places major clauses on new lines to make hand-written or minified queries easier to read. Very complex nested subqueries or vendor-specific syntax may not format perfectly.
Examples
- "select id,name from users where active=1 order by name" formats into SELECT / FROM / WHERE / ORDER BY on separate lines.