Remove Comments from SQL
Strip comments from SQL code.
100% Private — Nothing is Uploaded
All processing happens locally in your browser. Your files never leave your device and are never sent to any server.
Other languages
Remove SQL Comments
SQL supports -- line comments and /* ... */ block comments. This tool removes them all while preserving quoted strings and identifiers — a -- inside 'foo--bar' will never be mistaken for a comment.
Why remove SQL comments?
- Cleaner queries — ready to paste into a client or ORM.
- Smaller migration scripts — remove old explanatory notes.
- Privacy — no leftover developer remarks in shared SQL.