HTML
Shrink HTML by collapsing whitespace and stripping optional comments — see the size savings instantly.
Minification runs locally in your browser. Nothing is uploaded, logged, or stored.
Consecutive spaces, tabs, and line breaks between and inside tags are collapsed to single spaces (or removed entirely where they carry no visual effect). Comments are removed only when you opt in. Text inside <pre>, <script>, and <style> blocks is left untouched so formatting-sensitive content keeps working.
Need readable markup again? Run the output through the HTML Formatter. For XML documents, use the XML Minifier instead.
Minify hand-written HTML templates before deploying to shave kilobytes off every request.
Reduce inline-styled email markup size before pasting it into a sending platform.
Pretty-print HTML with clean indentation — normalize messy markup in one click.
Check HTML tag balance and nesting with line-level issue reports.
Describe what you want to match and get a working regular expression with explanations and examples.
Test regular expressions against sample text with match highlighting, capture groups, and explanations.
Looking for something else? Browse all tools