How to Use the SQL Query Formatter
- Paste your SQL query into the input area.
- Click Format to apply keyword casing and indentation.
- Use Advanced Options to choose uppercase/lowercase keywords and indent width.
- Copy the formatted query with one-click feedback.
Examples & Reference
Tokenizes SQL by keywords (SELECT, FROM, WHERE, JOIN, etc.), applies casing rules, and inserts line breaks before major clauses with configurable indentation.
Frequently Asked Questions
The formatter handles standard ANSI SQL keywords. Dialect-specific syntax (T-SQL, PL/pgSQL) is supported for basic formatting.