HTML minifier
Shrink HTML by removing comments and extra whitespace, leaving <pre>, <textarea> and scripts untouched.
Set up for this job. It runs on JS, CSS and HTML minifier, where every option is there to change.
Questions
What does it remove?
Comments and extra whitespace between tags and attributes. Conditional comments are kept, and you can tick Keep comments to keep all of them.
Is it safe for my page?
It is deliberately cautious: the contents of <pre>, <textarea> and <script> are left as they are, and inline <style> blocks are minified only when that option is on.
Is my code uploaded?
No. Minification runs in this tab. Nothing you paste leaves your device.