Tools
SQL & KQL Formatter
SQL & KQL Formatter
Format, beautify, and minify your T-SQL and Kusto (KQL) queries. Everything runs in your browser — nothing is sent to a server.
Formatted query will appear here...
Client-side only
Your queries never leave your browser. All formatting is performed locally using JavaScript.
Multiple dialects
Supports T-SQL, Standard SQL, PL/SQL, MySQL, PostgreSQL, and KQL (Kusto Query Language).
Configurable output
Choose your indent width, keyword casing, and switch between formatted and minified output.
How the SQL and KQL formatter helps
Use the formatter to make dense queries easier to review, standardize keyword casing, or create compact SQL for transport. Processing stays in this browser tab.
When to use it
- Reformat T-SQL before code review or troubleshooting.
- Normalize KQL used in Azure Monitor and Log Analytics.
- Switch between readable and minified output without changing query semantics.
- Compare indentation and keyword styles across supported SQL dialects.
Continue with the database tools directory, browse technical articles, or check the SQL Server release tracker.