Skip to content

SQL & Query Suite · free · no sign-up

SQL Minifier

Remove comments and extra whitespace from a SQL query.

How it works Report a problem

SQL Minifier

Compress SQL queries by removing whitespace and comments for optimal performance

MINIFY PRO
Source Query
Compressed Output

                    

About the SQL Minifier

Remove comments and extra whitespace from a SQL query.

How to use the SQL Minifier

  1. Paste your code into the input box, or click Sample to load an example.
  2. Press Minify SQL Query.
  3. 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.