htmlcompressor
« Back to VersTracker
Description:
Minify HTML or XML
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: html minifier xml compression web-optimization
Install: brew install htmlcompressor
About:
Htmlcompressor is a Java-based command-line tool that minifies HTML and XML files by removing unnecessary whitespace, comments, and optional CDATA sections. It can optionally compress embedded CSS and JavaScript using YUI Compressor or Google Closure Compiler. This results in smaller file sizes, leading to faster page loads and reduced bandwidth usage.
Key Features:
  • Removes redundant whitespace and comments
  • Optional minification of inline CSS and JavaScript
  • Java-based for cross-platform compatibility
  • Command-line interface for automation
Use Cases:
  • Optimizing web assets for production deployment
  • Reducing bandwidth costs for high-traffic websites
  • Automating build pipelines for front-end projects
Alternatives:
  • html-minifier – Node.js-based tool with more extensive configuration options and active maintenance.
Version History
Detected Version Rev Change Commit