Text UtilitiesText CleanersFree Tool

Remove SQL Comments

Strip /* block */ and -- line comments from SQL code, plus the resulting blank lines.

How to Use Remove SQL Comments
  1. 1Paste your SQL code
  2. 2Click Convert
  3. 3Copy the code with comments removed
Frequently Asked Questions

Both /* block comments */ (including multi-line ones) and -- single-line comments, which cover the two standard SQL comment syntaxes.

Yes — lines that become empty (or were empty) after comment removal are cleaned up, and the result is trimmed.

No — only /* */ and -- styles are recognized; MySQL's # single-line comment syntax isn't matched by this tool.

No — the removal happens entirely in your browser.

Related Tools

Related Articles

More from Text Utilities