Development
SQL Formatter
Paste or upload SQL, pick a dialect, then beautify or compact it. Change keyword and identifier casing, comma placement, and stacked lists — then export as SQL, HTML, C#, Java, PHP, VB, or XML, the same format-and-export flow as a dedicated SQL beautifier.
Quick start
- 1
Paste or upload SQL
Add the query or script.
- 2
Pick a dialect
Auto-detect, or choose MySQL, PostgreSQL, SQL Server, Oracle, BigQuery, Snowflake, and others.
- 3
Format or compact
Set keyword and identifier case, comma placement, stacked lists, and a max line width.
- 4
Export
Copy SQL, or take HTML, C#, Java, PHP, VB, or XML after it formats.
Features
Dialects
Auto-detect or choose MySQL, PostgreSQL, SQL Server, Oracle, BigQuery, Snowflake, and more.
Format and compact
Pretty-print stacked lists, place commas before or after, and compact lines to a max width.
Language export
Copy formatted SQL as HTML spans, C#, Java, PHP, VB, or XML after it formats.
Specifications
- Actions
- Format, compact
- Output
- SQL, HTML, C#, Java, PHP, VB, XML
- Case
- Upper · Lower · InitCap · Unchanged
- Privacy
- Processed on the toolbox API
Use cases
- Normalize a query before a pull request.
- Compact a statement to one line.
- Embed formatted SQL in HTML or application code.
Frequently asked questions
Does this run the query?
No. It only formats the text. It does not connect to a database.