Skip to content
Brain
Coder
Tools
Guides
0 uploads — verify
GitHub
Tool info
HTML Minifier
Minified · 532 B →
354 B
(−33%)
· 532 → 354 chars
Copy minified
Download .html
HTML
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Example page</title> <!-- a comment that will be removed --> <!--[if lt IE 9]> <script src="legacy.js"></script> <![endif]--> <style> .box { color: red; } </style> </head> <body> <div class="box"> <p> Hello <b>world</b> </p> </div> <pre> keep this spacing </pre> <script> // <!-- this string must survive --> console.log( 'hi' ); </script> </body> </html>
Minified
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"> <title>Example page</title> <style> .box { color: red; } </style></head><body><div class="box"><p>Hello <b>world</b> </p></div><pre> keep this spacing </pre><script> // <!-- this string must survive --> console.log( 'hi' ); </script></body></html>
Minify
Pretty-print
Keep conditional comments
Clear
Open .html