SQL Formatter
Format, beautify, and minify SQL queries with syntax highlighting
Input SQL
Paste or type your SQL query
Format Options
Customize formatting style
4 spaces
Convert SQL keywords to uppercase
Place comma at the beginning of lines
Output
Formatted or minified SQL
Pro Tip
Use uppercase keywords for better readability. Most SQL databases are case-insensitive for keywords, but uppercase makes queries easier to read.