A SQL minifier online compresses your query by stripping out unnecessary whitespace, comments, and line breaks β without changing the logic. Useful when you're embedding SQL in a JavaScript string, sending it in an API payload with a size cap, or cramming it into a config value.
This minifier handles multi-line comments (/* ... */), single-line comments (-- ...), and all redundant spaces and newlines. Your query stays functionally identical but takes up less space.
Paste your formatted SQL below and get the compressed version in one click. Your query never left your tab.