← All tools

HTML Minifier

Reuse the HTML5 parser and existing formatter validation.

html-minifierLOCAL WORKSPACE

Enabling local controls…

Local processing inputs

Local Worker: 10s startup, 1s processing. 32KiB per field, 1MiB complete result. Editing or clearing cancels work and stale output. Generated HTML/CSS is not mounted; remote image preview requires a separate action.

Preview and code

Edit fields and build a preview; complete code can be copied or downloaded.

Model and scope

Reuse the HTML5 parser and existing formatter validation. Normal mode collapses ASCII text whitespace to one space, preserving inline separators and pre/script/style/textarea/title/template/foreign content. Choose Preserve for CSS-defined preformatted text or text-node consumers. HTML5 serialization may normalize markup and increase small inputs. Code is never mounted; 32 KiB / 2000 nodes / 40 levels.

WHATWG HTML parsing ↗ToolHub source controls ↗

How to use this tool

Edit the bounded fields, process locally, inspect the native preview, then copy or download complete code. Editing clears stale output.

When not to use it

Reuse the HTML5 parser and existing formatter validation. Normal mode collapses ASCII text whitespace to one space, preserving inline separators and pre/script/style/textarea/title/template/foreign content. Choose Preserve for CSS-defined preformatted text or text-node consumers. HTML5 serialization may normalize markup and increase small inputs. Code is never mounted; 32 KiB / 2000 nodes / 40 levels.