SQL Formatter
Format SQL for 6 modern dialects. Client-side — your SQL never leaves your browser.
Indent
Case
Input
Formatted OutputWaiting…
Frequently Asked Questions
+Does my SQL leave my browser?
No. The formatter runs 100% client-side. Your query is not uploaded, logged, or stored anywhere.
+Which SQL dialects are supported?
Snowflake, BigQuery, Databricks, PostgreSQL, MySQL, and SQL Server. Switch the tab at the top of the tool to pick your dialect.
+Can I control the indentation?
Yes — pick 2, 4, or 8 spaces. The formatter also lets you keep keywords uppercase, lowercase, or unchanged via the CASE toggle.
+Does it auto-format while I type?
Yes. The formatter debounces your input by 250ms and re-formats as you edit. You can also click the Format button explicitly.
+How do I copy or download the formatted SQL?
Use the Copy button to put it on your clipboard, or the .sql button to download the result as a file.
+Is there a character or query size limit?
There is no hard limit. Very large queries (100k+ characters) may feel slow since Monaco and the formatter both run in your browser.
Advertisement