Pretty-print or minify SQL Server (T-SQL) — with keyword casing and indent control, live in your browser.
Beautify reflows your query with consistent line breaks and indentation — the readable form you want in a migration file, a code review or documentation. Minify strips the extra whitespace and collapses the query to a single line, which is convenient for pasting into a string literal, a shell command or a log line. String literals, quoted identifiers and (optionally) comments are preserved exactly.
Microsoft SQL Server speaks Transact-SQL: [bracketed] identifiers, TOP, MERGE, table variables and stored-procedure syntax. This formatter is T-SQL aware so those statements pretty-print correctly.
SQL engines differ in quoting, functions and keywords. Formatting with the matching dialect gives the cleanest result — for example backticks in MySQL, :: casts in PostgreSQL, or QUALIFY in BigQuery and Snowflake. Jump straight to a dialect-specific page:
Many "format SQL online" sites send your query to their server. This one formats entirely inside your browser tab — your queries, schema names and any embedded values never leave your device. It also works offline once the page has loaded.
Beautify and minify only change whitespace, line breaks and keyword casing — never the meaning of your SQL. If a query can't be fully parsed, it's left exactly as you pasted it and a small notice appears, so nothing is silently rewritten or lost.