HTML Minifier
Paste an HTML page or snippet. Comments and extra whitespace are removed, and inline <style> and <script> blocks can be minified too. <pre> and <textarea> are left untouched.
Input
Output
How to use the HTML Minifier
- Paste your HTML code into the Input box, or open a file.
- Choose the options you need and press Minify.
- Copy the result or download it as a file.
Less HTML means a faster first byte to render and lower bandwidth for every visitor.
Read the guide: How to Minify HTML Online Without Breaking Your Page
Private: this tool runs entirely in your browser – nothing you paste is uploaded or stored.
