Minify your SQL queries to reduce file size and improve readability. Remove unnecessary whitespace, comments, and optimize your SQL structure.
Enter the SQL content you want to minify
Remove SQL comments (-- and /* */)
Remove blank lines from SQL
Remove unnecessary whitespace
Remove extra spaces around operators
Convert SQL keywords to uppercase
Remove trailing commas in lists
Compact JOIN statements
Compact WHERE clauses
Compact GROUP BY clauses
Compact ORDER BY clauses
Keep string literals unchanged
Keep number literals unchanged
Keep table/column names unchanged
Your minified SQL will appear here