SQL & Query Suite · free · no sign-up
SQL Minifier
Remove comments and extra whitespace from a SQL query.
SQL Minifier
Compress SQL queries by removing whitespace and comments for optimal performance
MINIFY PRO
Compressed Output
About the SQL Minifier
Remove comments and extra whitespace from a SQL query.
How to use the SQL Minifier
- Paste your code into the input box, or click Sample to load an example.
- Press Minify SQL Query.
- Use Copy (or Download where shown) to keep the result. Clear empties the box.
Tips
- Keep your readable original for maintenance.
- Do not minify queries that contain line comments (--) unless they are removed.
Frequently asked questions
When would I minify SQL?
When you need to embed a query in a single line, such as in a config file or log.