SQL Server / T-SQL Formatter
Start in the SQL Server / T-SQL dialect with a query using TOP (10), bracketed identifiers and an @active variable. Paste SELECT, INSERT, UPDATE or other supported SQL statements and choose the keyword case and indentation your team uses. This is a browser formatting workflow for query text; it does not connect to SQL Server or install an SSMS extension.
Preparing current SQL output…
- Output
- Keywords
- Indent
Formatting arranges SQL statements for the selected dialect. It does not execute queries, validate database objects or optimize performance. Stored procedures and client batch directives are outside this formatter’s scope. SQL stays in this browser. Your input and settings are remembered in local browser storage; Start over clears them.
Common questions
- Can I paste GO-separated batches?
- Remove GO lines and format one SQL batch at a time. GO is a client batch separator used by tools such as SSMS; it is not a SQL statement, and this formatter refuses standalone GO directives.
- Are bracketed identifiers and @parameters supported?
- The SQL Server dialect recognizes names such as [dbo].[users], escaped closing brackets such as [a]]b], TOP and @variables. It preserves quoted identifier text rather than renaming database objects.
- Does it format stored procedures or integrate with SSMS?
- Stored procedure bodies are outside the supported formatting scope. This page runs in a browser and supplies output to copy; it is not an SSMS add-in or an editor extension.
Formats SQL statements for the selected dialect; it does not execute SQL, check database objects, optimize queries or validate a complete SQL grammar. Stored procedures and client batch directives are outside its scope. Minify preserves comments and quoted values and can retain meaningful newlines.