Formatter · T-SQL
Format T-SQL SQL online
Reformat T-SQL queries against T-SQL's own grammar: consistent indentation, aligned clauses and uppercase keywords. Paste one-line or ORM-generated SQL and get structured, reviewable output.
1Paste your T-SQL query into the editor.
2Press Format — or ⌘↵.
3Copy clean, highlighted SQL.
Why format T-SQL?
T-SQL (SQL Server) has its own dialect: TOP instead of LIMIT, [bracket]-quoted identifiers, ISNULL, and statement terminators SSMS is picky about. The formatter follows Transact-SQL rules so bracketed names and TOP clauses format correctly.
Especially useful for queries copied out of SSMS or Profiler traces that need to go back in clean.