About this tool
Choose MySQL, PostgreSQL, or SQLite to format SELECT, JOIN, WHERE, and CTE queries with dialect-aware tokenization. Use two spaces, four spaces, or tabs and upper- or lowercase keywords. Comments, quoted identifiers, and string literals are handled according to the selected dialect. Formatting does not execute SQL or verify tables, columns, permissions, or performance. SQL input is not uploaded or persisted; only layout settings are remembered.
Practical Notes
Readable SQL reduces review errors. Formatting should be treated as a collaboration standard, not personal preference.
Team conventions
Adopt one style for keyword casing, join alignment, and line breaks across the repository.
Consistent formatting makes query diffs smaller and review comments more focused on logic.
Safety in practice
Use formatting before running query reviews to catch missing predicates or accidental Cartesian joins.
Pair formatter usage with execution plan checks on critical queries.