SQL Formatter

Turn dense SQL into readable, consistently indented queries - or compact them back

0 chars ยท 0 lines
0 chars

Notes

The formatter recognizes dialect-specific keywords (like T-SQL's TOP or BigQuery's QUALIFY) when deciding where to break lines. Strings, comments, and identifier quoting are preserved verbatim.

Compact collapses the query to a single line - handy for logs, or for generating one-line seeds.