SQL Minifier — Minify SQL Online
Paste SQL to strip comments and collapse whitespace. Minified output updates automatically with a one-click copy button.
How to use
- Paste your SQL query in the input box.
- Minified output updates automatically as you type.
- Click Copy to copy the compact SQL.
Frequently asked questions
What does SQL minification remove?
Line and block comments, extra spaces, and line breaks while keeping the query executable.
Does minification change SQL meaning?
No. It only removes comments and redundant whitespace outside string literals.
Which SQL dialects are supported?
Standard SQL comment syntax (-- and /* */) is handled for most databases.
Is my SQL sent to a server?
No. Minification happens entirely in your browser.
Last updated
Powered by maratool