Minifies SQL by removing comments and extra whitespace.
SQL Minify compresses SQL queries by stripping out comments and collapsing extra whitespace into a single compact line. It removes both block comments (/* ... */) and single-line comments (-- ...), then squeezes all runs of spaces, tabs, and newlines down to one space. This is handy when you want to shrink a query for logging, embedding in code, or sharing without the clutter of formatting and notes.
No. SQL Minify runs entirely in your browser using client-side JavaScript, and nothing is uploaded or stored on any server. The whole codedev.tools site is open source so you can verify this.
It removes block comments wrapped in /* and */ as well as single-line comments that start with -- and run to the end of the line. Both styles are stripped before whitespace is collapsed.
No. The tool only removes comments and collapses whitespace into single spaces; it does not parse, validate, or pretty-print the SQL, and it does not check whether the query is syntactically correct.
Possibly. The minifier uses simple text replacement and does not parse string boundaries, so a literal containing -- or /* could be altered. Review the output when your query contains such literals.
Yes. All whitespace, including newlines and tabs, is collapsed into single spaces and leading and trailing spaces are trimmed, so the result is a single compact line.