About SQL prettify and format
Beautify and indent unreadable SQL queries immediately on XMOOO Tools. Choose your database dialect (PostgreSQL, MySQL, BigQuery, SQLite, T-SQL, PL/SQL) and keyword casing while keeping proprietary schemas 100% private in your browser.
How to Use SQL prettify and format
- Select your SQL dialect and preferred keyword case (UPPERCASE, lowercase, or preserve).
- Paste your raw or minified SQL query into the input box.
- Copy the cleanly indented SQL query in one click.
Supported SQL Formatting Options
| Setting | Options | Benefit |
|---|---|---|
| SQL Dialect | Standard, PostgreSQL, MySQL, BigQuery, SQLite, T-SQL | Accurate syntax handling per database |
| Keyword Case | UPPER, lower, preserve | Matches team style guides |
| Indent Style | Standard, Tabular Left, Tabular Right | Clear readable SELECT/JOIN alignment |