SQL Query Formatter
Format, indent, and validate SQL queries across multiple dialects.
🔒 Client · OfflineAbout SQL query formatting
SQL query formatting indents clauses, aligns keywords, and wraps expressions. This improves readability for complex database statements.
The formatter supports all standard and popular SQL dialects, including PostgreSQL, MySQL, SQLite, Transact-SQL, BigQuery, Snowflake, DuckDB, MariaDB, and ClickHouse. You can configure indentation to two spaces, four spaces, or tabs. You can also transform keywords to UPPERCASE or lowercase.
Syntax checks are syntax parsing only, not live database validation. The tool parses statement structure and grammar tokens using Lezer SQL dialect parsers, including Transact-SQL (T-SQL). It checks grammar only and does not validate against live database connections, schemas, tables, or column catalogs.
Select Format or press ⌘Ctrl + ↵ to run the formatter.