HTML Minifier
Reuse the HTML5 parser and existing formatter validation.
Enabling local controls…
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.
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.