Paste SQL, choose options, then click Format to fill the output pane.
Pretty-print SQL in the browser. Results may vary by dialect for very complex or non-standard syntax.
Lines: 0
Columns: 0
Selection: 0 chars
Case (global)
Comma / line break
List / arguments
Keyword tab alignment
Lines: 0
Columns: 0
Selection: 0 chars
Features
- Uses sql-formatter for indentation and line breaks.
- Applies the same case rule to keywords, identifiers, functions, and data types.
- Comma placement: trailing (after), leading on next line (before), or leading with a space.
- Vertical lists follow the formatter; horizontal merges consecutive comma-ending lines at the same indent (heuristic).
- Tabular left/right aligns keywords such as SELECT and FROM.
Usage
- Pick a dialect (MySQL, PostgreSQL, SQLite, T-SQL, etc.).
- Set case, comma, list, and alignment options.
- Click Format, then copy the result.
Notes
- Does not guarantee valid output for every stored procedure or extension.
- For many more formatting knobs, see external tools such as dpriver Instant SQL Formatter.