Tools › T-SQL formatter

T-SQL formatter: beautify messy SQL Server queries

Legacy systems cough out one long line. This puts SELECT, FROM and LEFT JOIN on their own lines and uppercases the keywords. It never leaves your browser.

Analysts search for “SQL formatter” and “T-SQL beautifier” because SSMS’s own format is fussy and the query arrived as a single line from a ticket or a view definition.

This one is built for SQL Server: TOP, ISNULL, GETDATE, square brackets, GO. It is not a full parser. Odd macros can still look odd. For anything you will send, read the result once.

Related: run a query in SSMS, why SELECT * fails.

Learn it on a real ticket

Monday is free on WorkSQL. Write the T-SQL yourself. We mark it like a colleague would.

Clock in free