SQL Formatter
Free online SQL formatter for MySQL, PostgreSQL, T-SQL, and PL/SQL. Instantly beautify and indent SQL queries for maximum readability. No sign-up required.
Input SQL
Formatted SQL
Frequently Asked Questions
What SQL dialects does this support?
The SQL formatter supports MySQL, PostgreSQL, T-SQL (SQL Server), PL/SQL (Oracle), and standard ANSI SQL.
Can it format complex stored procedures?
Yes. The formatter handles JOINs, subqueries, CTEs, stored procedures, and complex multi-statement queries.