NoUploads

SQL Formatter

Beautify and minify SQL queries across 10 dialects — free, private, no upload required.

About this tool

The SQL Formatter beautifies and minifies SQL queries directly in your browser. Paste a query or upload a .sql file to reflow it with consistent indentation, keyword casing, and line breaks — or strip comments and collapse whitespace for a single-line minified form. Dialect-aware across MySQL, PostgreSQL, SQLite, SQL Server, Oracle, BigQuery, Snowflake, and Redshift so vendor-specific syntax stays intact. The sql-formatter library is lazy-loaded on first format so the page itself opens instantly, and nothing is ever uploaded.

Frequently Asked Questions

Powered by sql-formatter · MIT

Related Tools