SQL Minifier
Remove whitespace, line breaks, and comments from SQL to reduce its size.
Remove line comments (--) and block comments (/* */) from SQL.
SQL Comment Remover strips “–” style line comments and “/* */” style block comments from SQL queries. Content inside string literals is protected, so only actual comments are removed. Useful for cleaning up SQL before deploying to production or sharing a query without development notes.
No. Content inside single-quoted, double-quoted, and backtick-quoted strings is protected and is never mistaken for a comment.
Yes. Each type can be toggled on or off independently with its own checkbox.
Enable the "Collapse blank lines" option to merge consecutive blank lines into a single line for cleaner output.
No. All processing happens in your browser.