Remove Comments from HTML
Strip comments from HTML 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 HTML Comments
HTML comments (<!-- ... -->) are useful during development but add unnecessary bytes to production pages. This tool removes them instantly while preserving everything inside <script>, <style>, <pre> and <textarea>.
Why remove HTML comments?
- Smaller pages — fewer bytes to download.
- Cleaner output — no leftover notes or TODOs in production.
- Privacy — internal remarks are not exposed publicly.