π οΈ Online HTML Minifier
δΈζ
English
β Back to Home
Updated: 2026-07-11
Input HTML Code
π
Drag & drop HTML file here, or click to upload
{ "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ { "@type": "ListItem", "position": 1, "name": "Home", "item": "https://webtools-cn.github.io/tools-site/en/" }, { "@type": "ListItem", "position": 2, "name": "Developer Tools", "item": "https://webtools-cn.github.io/tools-site/en/#developer-tools" }, { "@type": "ListItem", "position": 3, "name": "π οΈ Online HTML Minifier", "item": "https://webtools-cn.github.io/tools-site/en/html-minifier/" } ] }
Hello World
π¬
π Feedback
β
π‘ Feature Request
π Bug Report
π¬ Other
0/1000
Submit
β Thank you! Your feedback has been submitted to GitHub Issues
'
Minified
'+formatSize(compSize)+'
'+ '
Reduction
'+saved+'%
'+ '
Saved
'+formatSize(origSize-compSize)+'
'; resultSection.scrollIntoView({behavior:'smooth'}); }); document.getElementById('clearBtn').addEventListener('click',function(){inputEl.value='';resultSection.style.display='none'}); document.getElementById('copyBtn').addEventListener('click',function(){outputEl.select();document.execCommand('copy');const btn=document.getElementById('copyBtn');btn.textContent='β Copied';setTimeout(function(){btn.textContent='π Copy'},1500)}); document.getElementById('sampleBtn').addEventListener('click',function(){inputEl.value='\n\n\n
\n
Example Page
\n \n \n\n \n
Hello World
\n
This is a sample page.
\n \n
Click
\n
π¬
π Feedback
β
π‘ Feature Request
π Bug Report
π¬ Other
0/1000
Submit
β Thank you! Your feedback has been submitted to GitHub Issues