
Web developers use SQL Minifier when preparing compact code for delivery or a controlled comparison.
Compact SQL while preserving strings and get compact code ready for the next step. Use it for free in your browser, with no account required.
You are about to place a short query inside a deployment script, and the minified version fits on a single line without breaking the strings. Compare it against the original afterwards to make sure no condition disappeared along the way.
Minification runs locally in your browser: the query you paste or import stays on your device and is not sent anywhere. Nothing is stored, and you can use the tool repeatedly without creating an account.
Yes, comments are treated as unnecessary for execution and are dropped. If a comment explains an important decision, move it into your documentation before you compact the query.
You can import it, but the output becomes one very long line. Splitting the file into separate statements first makes the result far easier to check.
The main effect is a smaller file to store or transfer, not a faster database engine. Do not expect minification to fix slow queries caused by missing indexes or heavy joins.