Minify SQL by stripping comments and collapsing whitespace while preserving string literals. SQL Minifier is a free online tool from the ToolsRift Code Formatters collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.
It strips -- line comments and /* block */ comments, then collapses all runs of whitespace and removes extra spaces around commas and semicolons.
No. Text inside single-quoted string literals, including commas, spaces and escaped quotes, is preserved character-for-character.
Single-line SQL is easier to embed in code, logs or config, and smaller queries transmit slightly faster. The logic is unchanged.