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

Usage

  • Pick a dialect (MySQL, PostgreSQL, SQLite, T-SQL, etc.).
  • Set case, comma, list, and alignment options.
  • Click Format, then copy the result.

Input, output, limits

Input is SQL text. Output is formatted SQL using dialect, case, comma, and alignment options. Runs in the browser. Stored procedures and extensions are not guaranteed.

Example

select id,name from users where id in (1,2,3) → Format wraps and aligns SELECT / FROM / WHERE. Switching dialect to PostgreSQL may change identifier quoting.

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.

FAQ

Is SQL uploaded?
No. Paste and file input are formatted in the browser.
Does it support every dialect perfectly?
No. Stored procedures and extensions can break. Dialect is a hint.
What is horizontal list mode?
A heuristic that merges consecutive same-indent comma lines onto one line.