T-SQL
Paste a T-SQL query below.
Paste T-SQL for SQL Server and get clean formatting with uppercase keywords and indented subqueries. Handles TOP, bracketed identifiers, NVARCHAR types and SQL Server specific keywords.
Paste a T-SQL query below.
Bracketed identifiers like [Order Details], strings and comments are masked before formatting, so they are never altered. SQL Server keywords including TOP, IDENTITY, NVARCHAR, GETDATE, MERGE and TRY CATCH blocks are uppercased, with clauses broken onto lines and subqueries indented.
Generic SQL formatters miss TOP, choke on brackets and do not know NVARCHAR. A dialect aware formatter keeps SQL Server idioms intact, which means less manual cleanup on stored procedures and reporting queries.