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

  1. Paste or Upload: Paste HTML or click "Upload .html".
  2. Options: Enable IE conditional comment stripping if needed.
  3. Strip: Click "Strip Comments" or enable Auto strip.
  4. Copy: Click "Copy" to copy the cleaned HTML.