HTML Minifier - Free Online Code Optimizer Tool | IconVault
Minify HTML in your browser: strip comments, collapse whitespace, drop optional quotes, shrink inline CSS and JS. Preserves pre and code blocks.
HTML Minifier
Shrink HTML: strip comments, collapse whitespace, minify inline code
Options
5 of 5 free runs left - runs in your browser, nothing is uploaded.
Minified output
The contents of <pre>,<textarea>,<script> and<style> blocks are never whitespace-collapsed. Optional quotes are only removed from simple values with no spaces or special characters.
About this tool
IconVault's HTML Minifier shrinks your markup by stripping comments, collapsing whitespace, removing optional quotes and applying basic minification to inline CSS and JavaScript. Paste your HTML, tune the options, and copy the compact output, with before-and-after sizes so you can see exactly how many bytes you saved.
Smaller HTML means faster page loads and less bandwidth, especially on large templates. Content inside <pre>, <textarea>, <script> and <style> is always preserved, so code samples and scripts survive minification untouched. It is free with no signup and runs fully in your browser. The honest note: always test the minified page before deploying, because aggressive whitespace removal can change rendering where spacing is significant.
Frequently asked questions
Popular searches
More tools
Code Playground
Write HTML, CSS & JS with live preview.
JSON Formatter
Beautify, validate & minify JSON.
Base64 Encoder
Encode & decode text and files.
JWT Decoder
Inspect tokens without sending them anywhere.
Coming soon
CLI
Coming soon
Figma plugin
Coming soon
VS Code extension
Coming soon
Chrome extension
Coming soon
AI icon generator
Coming soon
Team workspaces
Coming soon