Jens Oliver Meiert

Use my latest work: latest tech book · latest non-tech book · latest optimization tool · latest defense tool

How to Upgrade From HTML Minifier 4 to 5

Published on Nov 3, 2026, filed under , , , , . (Share this post, e.g., on Mastodon.)

More than seven years after version 4.0.0, HTML Minifier (HM) has a new major release. HM 5 brings everything the HTML Minifier family gained through HTML Minifier Terser and especially HTML Minifier Next—it’s richer in features, easier to use, significantly faster, and actively maintained!

As a lot has changed over the years, here’s a checklist to help you upgrade:

When given a removed option as a command-line flag, HM stops with an error; in config files and programmatically, it warns and ignores the option.

Depending on your preferences:

For all details, please check the HTML Minifier changelog as well as the HTML Minifier Next changelog, which documents most of what changed on the way to HM 5. If you run into any problems, please file an issue. (Note that I might need to prioritize my sponsors for help requests.)

Finally, if you like HM as a powerful HTML optimization tool, spread the word and consider supporting the work on it! (Thank you!)

About Me

Portrait sketch of Jens Oliver Meiert.

I’m Jens (long: Jens Oliver Meiert), and I’m an engineering lead, guerrilla philosopher, and indie publisher. I’ve worked as a technical lead and manager at various companies (e.g., Google); I’m an active web and tool developer (code optimization, digital defense), a contributor to web standards (like HTML, CSS, WCAG), and a book author (O’Reilly, Frontend Dogma). Stay in touch.