🗃️ Data

SQL Formatter & Beautifier

Format messy SQL queries with proper indentation and keyword uppercasing. Handles SELECT, INSERT, UPDATE, DELETE, CREATE TABLE, JOINs and subqueries.

📖 How to Use
1
Paste messy SQL into the input area
2
Formatted output appears instantly with proper indentation
3
Toggle Uppercase keywords and adjust indent size
📝 Examples
Messy query
select u.name,o.total from users u join orders o on u.id=o.user_id where o.total>100
SELECT\n u.name,\n o.total\nFROM users u\nJOIN orders o ON u.id = o.user_id\nWHERE o.total > 100
📝 Input SQL
Indent:
✅ Formatted SQL