A SQL query formatter does one thing and needs to do it well: take whatever mess of SQL you throw at it and return consistently indented, readable output. No reformatting your logic, no weird line breaks in the middle of a CASE. Just clean white space where it belongs.
This formatter handles the tricky stuff β deeply nested subqueries, CASE WHEN blocks with multiple branches, CTEs with window functions, and multi-table joins. The output looks indented by someone who actually reads SQL.
Choose your dialect, set your indent preference (2 spaces, 4 spaces, or tabs), and format. The engine runs in your tab. Your query doesn't go anywhere.