How it works
SQL Formatter — Beautify, 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
- URL Encoder/DecoderPercent-encode and decode URI components and full URLs
- UUID GeneratorGenerate cryptographically random UUID v4 in bulk
- JWT DecoderDecode and inspect JSON Web Tokens (header, payload, expiry)
- Regex TesterTest regular expressions with live match highlighting
- Cron Expression BuilderBuild and explain cron expressions in plain language
- YAML ↔ JSON ConverterConvert between YAML and JSON in either direction