Guides ·
How to use SQL Minifier
SQL Minifier. Compress SQL onto one line. No. Quoted strings like 'New York' keep every space.
The short answer
To minify SQL, paste a query and click Minify: comments are removed and whitespace is collapsed onto one line, while text inside quotes and quoted identifiers is left exactly as written.
It runs in your browser. What you enter is not uploaded.
How to use it
Type or paste your input into the SQL Minifier.
Choose any options you need.
See the result update instantly.
Copy the result or download it.
Limits worth knowing
Are strings with spaces changed? No. Quoted strings like 'New York' keep every space.
Why minify SQL? For embedding queries in code, logs, URLs or config files where line breaks are awkward.