Highly configurable, well-tested, JavaScript-based HTML minifier with extensive optimization options
86
Parse-mode controls
Uses minify
53%
66%
Strict errors
20%
40%
Tolerant mode
20%
100%
Casing preserved
100%
100%
Script filtering
20%
33%
Whitespace/comment controls
Minify call
60%
100%
Whitespace options
72%
60%
Comment control
66%
60%
Fragment ignores
50%
50%
minify API
Whitespace & comments
100%
100%
Attribute pruning
90%
75%
Doctype & voids
85%
100%
Embedded assets
100%
100%
Flag mapping
70%
100%
Inline CSS/JS minification
Minify call
100%
100%
Inline CSS
100%
100%
Inline JS
100%
80%
Template ignores
53%
100%
Skip non-JS
53%
53%
Tag pruning & doctypes
Short doctype
100%
100%
Optional tag pruning
66%
100%
Empty element removal
20%
88%
Fragment safety
0%
100%
CLI file/dir processing
CLI binary
100%
100%
Config loading
100%
100%
File output
100%
100%
STDIN/STDOUT
100%
100%
Directory batch
88%
0%
Attribute/class sorting
Minifier invocation
100%
100%
Attribute sorting option
100%
100%
Class sorting option
100%
100%
Toggle handling
100%
100%
Limited options
100%
100%
Ignore directives & custom fragments
Uses minify
100%
100%
Fragment ignores
0%
80%
Directive comments
0%
100%
Ignore blocks
0%
33%
Trim around ignores
0%
100%
Attribute cleanup
Uses html-minifier
100%
100%
Empty/default removal
100%
100%
Boolean collapse
100%
100%
Quote handling
100%
100%
Attribute-only scope
100%
100%
Install with Tessl CLI
npx tessl i tessl/npm-html-minifier