SQL Minifier
Strip comments and extra whitespace to compress a query onto one line. Runs entirely in your browser.
How to use:
- Paste your SQL query with comments and formatting
- Click "Minify SQL" to compress the query
- See the size reduction percentage
- Copy the minified result for use in production
Input
Minified
Minified SQL will appear here.
About this tool
SQL Minifier is a free online tool that compresses SQL by removing comments (`--` and `/* */`) and collapsing extra whitespace onto a single line — handy for embedding queries in application code, logs, or config files where size and line count matter.
- Removed
- Line comments (`--`), block comments (`/* */`), and redundant whitespace
- Preserved
- String literals and their internal spacing are left untouched
- Output
- Single-line SQL plus a size-reduction percentage
- Signup
- Not required
- Processing
- Entirely in your browser — pasted SQL is never uploaded
- Difference
- Reports the size-reduction percentage so the compression is visible, not assumed
- Price
- Free, no usage limits
Limitations
- Minified SQL is not validated — run it through your database to confirm it still parses
- Statement-terminating semicolons are preserved but not added; multi-statement scripts stay multi-statement
SQL Minifier — FAQ
Is the SQL Minifier free?
Yes. The SQL Minifier is completely free with no signup and no usage limits, like all SqlInt mini tools.
What does the minifier remove?
Comments and extra whitespace, compressing the query onto one line — with a size-reduction percentage so you can see the savings.
Will minified SQL still run?
Yes. Minifying only removes insignificant whitespace and comments; the query semantics are unchanged.
Does my data leave my browser?
No. Every mini tool processes data locally in your browser — pasted text and uploaded files never leave your device.