↑ ↓ to move, Enter to open, Esc to close

SQL Formatter

Format messy SQL into readable, indented queries. Supports MySQL, PostgreSQL, SQL Server, SQLite and more.

Paste a one-line or messy query and get it back neatly indented with consistent keyword case.

Questions

Does it change what the query does?

No – only whitespace and keyword case change.