SQLSQL Formatter

← Back to tools

Format or minify SQL. Uppercase keywords, control indentation, and align lists with newlines after commas.

⚙️Setup
SQL
Options
Indent size
Minify
Formatting aims to be safe and general; it won't change semantics. Strings are preserved as‑is.
🧾Preview & Download
How this tool works
1
Paste SQL
Drop in any SQL you want to format or minify.
2
Choose options
Uppercase keywords, set indent size, and comma‑newline rules.
3
Format instantly
The formatter updates live as you type.
4
Copy or download
Copy to clipboard or download a .sql file.