Strip whitespace, comments & redundant attributes from HTML β pure JS engine, zero dependencies, 100% in-browser.
HTML minification removes comments, leading/trailing whitespace, blank lines, and excess whitespace between tags. Inline <script> and <style> blocks are minified independently, making the file smaller without affecting rendering.
Whitespace inside <pre>, <textarea>, and <code> is always preserved. Conditional comments are kept when the option is enabled, and attribute values are never corrupted.
Minified HTML reduces download size by 15β40%. Combined with gzip/Brotli at the server level, savings are even greater. Smaller HTML means faster TTFB, faster parse time, and improved Core Web Vitals.