SQL Formatter

Paste a SQL query and get it formatted with capitalized keywords and aligned clauses.

Summary

Paste a SQL query and get it formatted with capitalized keywords and aligned clauses.

How it works

  1. Paste your SQL query
  2. Select dialect (MySQL, PostgreSQL, etc.)
  3. Click Format
  4. Copy the formatted query

Use cases

  • Making complex joins readable in code review
  • Formatting auto-generated ORM queries
  • Preparing SQL for documentation

Frequently Asked Questions

Last updated: 2026-06-10 · Reviewed by Nham Vu