Zestool

SQL Query Formatter & Beautifier

Format SQL queries across PostgreSQL, MySQL, SQLite, Oracle, BigQuery, and SQL Server dialects with capitalized keywords and aligned JOINs/WHERE clauses.

Key Features of SQL Query Formatter & Beautifier

  • Dialects for PostgreSQL, MySQL, SQLite, T-SQL, and BigQuery
  • Uppercase keyword formatting (SELECT, FROM, WHERE, JOIN)
  • Configurable tab or space indentation
  • Minify query mode for API strings

How to Use SQL Query Formatter & Beautifier

  1. Paste Query: Paste raw, unformatted SQL statement.
  2. Select Dialect: Choose Standard SQL, PostgreSQL, MySQL, or BigQuery.
  3. Format Query: Get perfectly indented clauses with UPPERCASE keywords.

Frequently Asked Questions

Does it handle subqueries and CTEs?
Yes, Common Table Expressions (WITH clauses) and subqueries are indented hierarchically.

Related Tools