HTML Minifier

Minify HTML using a syntax-aware parser while preserving significant text, preformatted content and inline code.

Workspace

How to use this tool

Paste HTML, choose Minify and compare the output size. Copy or download the result.

What to know

Review the page after minification. Inline script and style content is preserved unless its dedicated minifier is used.

Frequently asked questions

How do I use HTML Minifier?

Paste HTML, choose Minify and compare the output size. Copy or download the result.

What should I check before using the result?

Review the page after minification. Inline script and style content is preserved unless its dedicated minifier is used.

Is an account required?

No. This tool is free and the calculation takes place in your browser.