All Tools
Contact Admin
HTML Minifier
You can minify HTML code and reduce the HTML file size.
Minify
Options
Clear
Remove comments
Conditional comments are left intact, but their inner (insignificant) whitespace is removed.
Also remove comments from scripts and styles
Remove CDATA sections from scripts and styles
Collapse whitespace
Conservative whitespace collapse
Collapse boolean attributes
Remove attribute quotes
Remove redundant attributes/values
Use short doctype
Remove empty (or blank) attributes
Valid attributes are: class, id, style, title, lang, dir, event attributes
Remove optional tags
Remove ignored tags
Currently, only tags starting and ending with:
% ... %>
and
? ... ?>
Remove empty elements
All except
textarea
Remove
Remove
from
Values other than "text/css" (e.g. "text/plain" or "application/atom+xml") are left intact.
Case-sensitive attributes
Useful when minifying SVG
Keep closing slash
Useful when minifying SVG
Minify JS
Minify CSS
Minify URLs
Convert absolute URLs to relative
Site URL: