This minifier flattens a formatted SQL statement into one line, removing -- line comments, /* block comments */ and redundant whitespace while leaving string literals and identifiers untouched. Single-line SQL is what you need when a query has to live inside a JSON config value, a YAML field, an environment variable or a log line where embedded newlines make the entry unreadable or invalid. It is also handy for pasting a query into a chat or ticket without the indentation collapsing into a mess. Nothing is executed and nothing is uploaded — the transformation is purely textual and runs in your browser, so queries referencing internal schema names stay private.
Free, fast, and runs entirely in your browser — no signup, no upload to a server.