About SQL Formatter
SQL Formatter is a free, private tool that runs entirely in your web browser. It beautifies or minifies SQL for many dialects, instantly and locally. Because everything happens on your device, your queries are never uploaded to a server. No sign-up or installation is required, and the tool works offline. It supports 13 dialects including MySQL, PostgreSQL, SQL Server, BigQuery, Snowflake and more. Like every free tool by Digital Heroes, it has no usage limits.
Frequently asked questions
Is SQL Formatter free?
Yes. SQL Formatter is completely free for everyone. No sign-up, no account and no usage limits.
Is it private? Is my SQL uploaded anywhere?
No. SQL Formatter runs entirely in your browser, so your queries never leave your device. Nothing is uploaded to a server.
Does it work offline?
Yes. Once the page has loaded, the tool keeps working offline. You can also install it as an app from your browser.
Which SQL dialects are supported?
13 dialects are supported: Standard SQL, MySQL, MariaDB, PostgreSQL, SQL Server (T-SQL), BigQuery, SQLite, Redshift, Snowflake, Spark, Trino, Db2 and Oracle PL/SQL.
What does SQL Formatter do?
It reformats SQL queries for readability (beautify) or compresses them to a single line (minify). You can control the dialect, indentation, keyword case and blank lines between statements. The result can be copied or downloaded as a .sql file.