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.
It focuses on HTML structure. For CSS and JS minification, use the dedicated CSS and JavaScript minifier tools.
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.