SQL Formatter & Beautifier

Example:
Minified: SELECT*FROM users WHERE id=1 Formatted: SELECT * FROM users WHERE id = 1
Format SQL queries with proper indentation and spacing. Supports MySQL, PostgreSQL, SQL Server, and Oracle syntax.
Try SQL Beautifier →

FAQs

Which SQL dialects are supported?

MySQL, PostgreSQL, SQL Server, Oracle, SQLite - all major SQL dialects.