SQL Formatter

Format and beautify SQL queries with proper indentation and keyword capitalization.

Input SQL
Formatted SQL
SQL Formatting Tips
Supported Statements
  • SELECT, INSERT, UPDATE, DELETE
  • CREATE, ALTER, DROP
  • JOIN, UNION, SUBQUERIES
Best Practices
  • Use uppercase for SQL keywords
  • Indent subqueries and JOINs
  • One column per line for readability
Supported Dialects
  • Standard SQL (ANSI)
  • MySQL, PostgreSQL
  • SQL Server, Oracle