Remove Code Comments cleans comments from many languages with options to drop blank lines and Python docstrings.
Remove Code Comments
Strip Code Comments
Remove //, /* */, #, HTML, SQL, Ruby, and Python comments from pasted code or uploaded files - free in your browser.
Loading tool…
Need AI study tools beyond developer utilities? Try Studix free today.
No credit card required
What is this?
How it works
1. Paste code or upload a file.
2. Pick the language (auto from extension when uploading).
3. Click Remove comments.
4. Copy or download the clean code.
Features
- JS/TS, HTML, CSS, SCSS
- Python, SQL, Bash, Ruby, YAML
- C-like languages
- Blank-line cleanup
- Docstring option
- Copy and download
Benefits
Prepare snippets for demos or minify readability without a build step.
Trust & privacy
Your source stays on the device. Nothing is uploaded.
Frequently asked questions
JS-like removal skips // and block comments inside strings when possible.
They are kept by default. Enable the docstring option to remove them.