HTML Comment Stripper
Remove all HTML comments from your code in one click.
Comments removed:
Size saved:
Paste HTML or upload a file
HTML with all comments removed
Tips: HTML comments (
<!-- ... -->) are stripped by default.
Enable Strip IE conditional comments to also remove <!--[if IE]>...<![endif]--> blocks.
Features
- Strip All Comments: Removes every
<!-- ... -->block, including multi-line ones. - IE Conditional Comments: Optionally strips legacy
<!--[if IE]>blocks. - Comment Counter: Shows how many comments were removed.
- Bytes Saved: Shows how much file size was reduced.
- Auto Strip: Toggle live stripping as you type.
- File Upload: Upload an .html file directly.
How to Use
- Paste or Upload: Paste HTML or click "Upload .html".
- Options: Enable IE conditional comment stripping if needed.
- Strip: Click "Strip Comments" or enable Auto strip.
- Copy: Click "Copy" to copy the cleaned HTML.