All tools

SQL Formatter

Beautify, minify or format SQL queries for any major dialect

How it works

SQL FormatterBeautify, minify or format SQL queries for any major dialect. All processing happens in your browser — no upload, no signup, no email required. Free forever.

Frequently asked questions

Which SQL dialects are supported?

Standard SQL plus MySQL, PostgreSQL, SQLite, MariaDB, T-SQL (SQL Server), BigQuery, Redshift, Snowflake and Trino. Pick the dialect for the most accurate keyword and identifier handling.

Is my query sent to your server?

No. Formatting runs entirely in your browser using the sql-formatter library. The query never leaves your device.

Will it change the meaning of my query?

No — the formatter only adjusts whitespace and casing. The actual SQL semantics, identifiers and string literals are preserved exactly.

Related tools