Reduces HTML file size by removing unnecessary whitespace between tags, stripping HTML comments, collapsing redundant attributes, and optionally removing optional closing tags. Shows the original and minified file sizes and the percentage reduction. All processing is done locally in your browser.
Paste your HTML and minify it instantly — configure what to strip with the option toggles. To also minify any inline CSS, use it alongside the CSS Formatter & Minifier.
Simple HTML
Input
<p> Hello </p> <!-- comment -->
Output
<p>Hello</p>
Format messy CSS or minify it for production.
Format and beautify JavaScript code with Prettier.
Encode special characters to HTML entities and decode them back.
Convert Markdown to HTML instantly.
Compare two blocks of text and highlight the differences.
Test regular expressions against sample text with live match highlighting.