The minifier uses html-minifier-terser with whitespace collapsing enabled. It keeps the document as HTML while removing spacing and line-break noise that does not need to be shipped in a production response.
This is useful for static embeds, sample pages, or quick size checks. For source editing and review, keep the formatted HTML nearby so you can compare readable markup with the compact output.
Common questions and answers about this topic.
Collapses unnecessary whitespace and line breaks in HTML to reduce file size while keeping the markup structure intact.
Yes. Enable CSS and JavaScript minification independently below the result. Both are off by default. Only embedded code is processed; external files are not fetched. Review the output before using it.
For normal markup it should preserve the structure, but review whitespace-sensitive inline content before replacing your source.
No, HTML minification happens entirely in your browser. Your markup is processed locally with JavaScript and never uploaded to any server.