SQL Formatter
LiveFormattersBeautify SQL queries — uppercase keywords, newlines before major clauses, indented columns. Updates live.
Input SQL
Formatted
Formatted SQL will appear here.
Share:
About SQL Formatter
The SQL formatter re-indents and aligns your queries, uppercases keywords, and structures joins and subqueries for readability. It works across standard SQL dialects including MySQL, PostgreSQL and SQLite. Use it to make complex queries readable before committing them or sharing in code reviews.
Common uses
- Beautify long, auto-generated ORM queries
- Standardize keyword casing across a codebase
- Make stored procedures easier to read and review