SQL Query Formatter
Format, indent, and validate SQL queries across multiple dialects.
About SQL query formatting
SQL query formatting indents clauses, aligns keywords, and wraps expressions. This improves readability for complex database statements.
The formatter supports Standard SQL, PostgreSQL, MySQL, SQLite, and Transact-SQL. You can configure indentation to two spaces, four spaces, or tabs. You can also transform keywords to UPPERCASE or lowercase.
Live syntax checking highlights syntax errors directly in the editor as you type. Select Format or press + โต to run the formatter.