SQL Formatter
Format SQL queries with consistent indentation, keyword case and line breaks. Multi-dialect.
Quick answer: Format SQL queries with consistent indentation, keyword case and line breaks. Multi-dialect.
Last updated
Frequently asked questions
- Will the formatter break my query?
- No — formatting only changes whitespace and keyword case. The semantics of the query are identical to the input. The exception: if you have syntax errors, the formatter may not be able to indent gracefully.
- Which dialects are supported?
- Standard SQL, PostgreSQL, MySQL, MariaDB, SQLite, BigQuery, Snowflake, Redshift and T-SQL (SQL Server). Pick the closest match for the most accurate keyword recognition.
- Can I keep keywords lowercase?
- We default to UPPERCASE because it's the dominant convention; future versions will expose a toggle. For now, you can lowercase manually after formatting.
- Are my queries uploaded?
- No — formatting runs entirely in your browser. Nothing leaves your device.
- Will it format CTEs and window functions?
- Yes — common table expressions, window functions, recursive CTEs and stored procedures format cleanly.