About This Tool

What does this tool do?

A full-featured HTML optimizer that strips HTML comments, collapses contiguous whitespace, minifies embedded `<style>` and `<script>` blocks, removes redundant attribute quotes/types (`type="text/javascript"`), collapses boolean attributes (`disabled`), and calculates exact byte savings.

When should you use it?

Use this tool before deploying static landing pages or single-page apps to reduce document size, improve Time to First Byte (TTFB), and boost Google Lighthouse Performance scores.

Key Capabilities & Features

Advanced HTML5 minification stripping comments, redundant whitespaces, and optional closing tags
Inline CSS and JavaScript compression within <style> and <script> tags
Attribute compression: boolean attribute collapse, redundant default attribute stripping, and quote cleanup
Detailed file size metrics showing bytes saved and compression percentage
Download compressed .min.html file or copy to clipboard instantly