HTML Runner

HTML Minifier

Compact HTML tag syntax while preserving text whitespace and embedded source.

How to use HTML Minifier

Select Minify, then compare the original and output in HTML Runner, especially around inline text.

Limitations

This conservative pass retains text whitespace, comments and embedded scripts or styles. Template languages can require their own build step.

Frequently asked questions

Will it remove every line break?

Line breaks between elements can be meaningful, so the tool leaves them in text.

Test your web code in the live HTML workspace.

Related resources