7 min read
2026-02-12
SQL queries can be simple or contain dozens of JOINs, subqueries and conditions. Without formatting, complex queries become unreadable.
SQL keywords - uppercase (`SELECT`, `FROM`, `WHERE`)
Each sentence is on a new line
Subqueries - with additional indentation
Lists of columns - one per line for long queries
The single-line query turns into a structured view with a clear indentation hierarchy.
| Style | Description |
|---|---|
| Standard | Keywords on the left |
| Compact | Minimum transfers |
| Expanded | Maximum readability |
Insert SQL Query
Select a dialect (MySQL, PostgreSQL, MSSQL)
Customize your formatting style
Get formatted result
The tool supports all major SQL dialects and preserves comments when formatting.
See also: JSON Formatter, Diff Checker, XML Formatter