Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

128 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Minifier Benchmarks

A collection of regularly updated benchmarks for HTML+ minifiers (context).

Two tests are run: One exclusively applying HTML minification (with the most aggressive settings that do not impact conformance), the other enabling all minification features the respective minifier offers (this is playβ€”it’s not a fair comparison and may exceed project needs).

0. Minifier Overview

@swc/html HTML Minifier Next htmlΒ­comΒ­pressor.Β­com htmlnano minify-html minimize
Last npm update npm @swc/html npm HTML Minifier Next n/a npm htmlnano npm minify-html npm minimize
Socket health status Socket @swc/html Socket HTML Minifier Next n/a Socket htmlnano Socket minify-html Socket minimize
GitHub sponsors Sponsors @swc/html Sponsors HTML Minifier Next n/a n/a n/a n/a

1. HTML Minification Compared

Site Original Size (KB) @swc/html HTML Minifier Next htmlΒ­comΒ­pressor.Β­com htmlnano minify-html minimize
Minifier Test 31 26
(–17.2%)
25
(–19.6%)
26
(–17%)
26
(–16.5%)
25
(–19.1%)
26
(–16.3%)
A List Apart 63 59
(–5.8%)
57
(–8.4%)
58
(–7.2%)
58
(–7.7%)
57
(–8.2%)
58
(–7.3%)
Apple 244 231
(–5.1%)
225
(–7.5%)
229
(–5.9%)
228
(–6.3%)
227
(–6.6%)
229
(–6%)
BBC 676 671
(–0.7%)
666
(–1.5%)
n/a 669
(–1.1%)
668
(–1.2%)
671
(–0.8%)
Bun 283 272
(–3.8%)
264
(–6.8%)
278
(–1.7%)
275
(–2.6%)
274
(–3.1%)
276
(–2.4%)
CERN 290 279
(–4%)
271
(–6.8%)
278
(–4.2%)
278
(–4.3%)
277
(–4.7%)
278
(–4.3%)
CSS-Tricks 148 136
(–8%)
133
(–9.8%)
134
(–9.1%)
134
(–9.5%)
134
(–9.4%)
135
(–9%)
DeepSeek 98 97
(–0.8%)
91
(–7.5%)
97
(–1.2%)
97
(–1.5%)
97
(–1.3%)
97
(–1.2%)
DIN 254 183
(–28.3%)
176
(–30.7%)
184
(–27.8%)
182
(–28.3%)
181
(–29%)
183
(–27.9%)
DLR 544 541
(–0.6%)
539
(–1%)
n/a 540
(–0.8%)
539
(–0.9%)
541
(–0.5%)
ECMAScript 7421 7054
(–4.9%)
6813
(–8.2%)
n/a 6929
(–6.6%)
6958
(–6.2%)
6983
(–5.9%)
EDRi 84 78
(–7.7%)
77
(–8.2%)
78
(–6.6%)
78
(–7.6%)
77
(–7.9%)
78
(–6.7%)
EFF 53 49
(–8%)
47
(–12.5%)
49
(–7.8%)
48
(–10%)
47
(–11.2%)
48
(–9.7%)
European Alternatives 49 33
(–33.1%)
33
(–33.9%)
33
(–32.9%)
33
(–33.1%)
33
(–33.5%)
33
(–33.1%)
FAZ 1606 1555
(–3.2%)
1477
(–8%)
n/a 1553
(–3.3%)
1550
(–3.5%)
1549
(–3.5%)
French Tech 174 139
(–19.9%)
138
(–20.6%)
140
(–19.6%)
139
(–19.9%)
138
(–20.4%)
140
(–19.7%)
Front-End Social 43 41
(–4.1%)
40
(–6.4%)
42
(–3.4%)
40
(–6.3%)
40
(–6.3%)
42
(–3.5%)
Frontend Dogma 222 229
(+3.6%)
222
(0%)
221
(–0.2%)
235
(+6%)
221
(0%)
240
(+8.4%)
Google 80 123
(+54.8%)
79
(–0.6%)
79
(–0.3%)
79
(–0.8%)
79
(–0.5%)
79
(–0.3%)
Ground News 2488 2465
(–0.9%)
2425
(–2.5%)
n/a 2469
(–0.8%)
2465
(–0.9%)
2474
(–0.5%)
HTML 3.2 123 119
(–3%)
119
(–3%)
121
(–1.2%)
124
(+0.8%)
119
(–2.7%)
123
(+0.5%)
HTML Living Standard 151 154
(+1.8%)
150
(–0.6%)
151
(–0.2%)
155
(+2.6%)
151
(–0.2%)
157
(+3.8%)
IETF 82 34
(–58.4%)
32
(–61%)
34
(–57.9%)
34
(–59%)
33
(–59.4%)
34
(–58.4%)
Igalia 44 34
(–21.9%)
32
(–27.7%)
34
(–23%)
34
(–23.4%)
34
(–23.7%)
34
(–23.3%)
Ladybird 30 28
(–3.9%)
28
(–6.4%)
28
(–5%)
28
(–5.4%)
28
(–5.7%)
28
(–5%)
Leanpub 360 356
(–1.1%)
349
(–3%)
n/a 355
(–1.2%)
353
(–1.8%)
354
(–1.6%)
Legge Stanca 17 12
(–28.5%)
12
(–30.4%)
12
(–27.3%)
12
(–30%)
12
(–30.1%)
12
(–27.5%)
Mastodon 43 41
(–4.1%)
40
(–6.4%)
41
(–3.4%)
40
(–6.4%)
40
(–6.3%)
41
(–3.5%)
MDN 118 70
(–40.2%)
67
(–42.7%)
72
(–38.8%)
71
(–39.5%)
69
(–41.2%)
71
(–39.2%)
Mistral AI 425 411
(–3.2%)
340
(–20%)
n/a 423
(–0.3%)
415
(–2.2%)
425
(0%)
Mondoweiss 403 399
(–1%)
383
(–5%)
n/a 387
(–3.9%)
387
(–3.9%)
388
(–3.6%)
Mozilla 47 37
(–21%)
35
(–25.8%)
37
(–22.2%)
36
(–23.7%)
35
(–25.6%)
36
(–23%)
Nielsen Norman Group 103 86
(–16.3%)
85
(–17.3%)
86
(–15.9%)
87
(–15.5%)
85
(–16.8%)
87
(–15.5%)
Opera 185 135
(–26.9%)
132
(–28.7%)
135
(–27.1%)
134
(–27.4%)
134
(–27.6%)
134
(–27.6%)
OSCE 171 143
(–16.1%)
141
(–17.3%)
144
(–16%)
144
(–15.8%)
142
(–16.9%)
144
(–15.8%)
Scrum Guide 34 31
(–8.9%)
30
(–10.7%)
32
(–7.3%)
31
(–7.9%)
31
(–10%)
31
(–7.8%)
SELFHTML 21 19
(–7.6%)
17
(–17.4%)
18
(–13.7%)
18
(–14.6%)
18
(–16.5%)
18
(–14.2%)
SitePoint 241 237
(–1.3%)
237
(–1.5%)
239
(–0.7%)
238
(–0.9%)
238
(–0.9%)
239
(–0.7%)
Smashing Magazine 313 313
(+0.2%)
311
(–0.5%)
n/a 312
(–0.2%)
312
(–0.4%)
313
(0%)
Startup-Verband 51 38
(–26.3%)
36
(–29.3%)
37
(–27.2%)
37
(–27.7%)
37
(–28.2%)
37
(–27.1%)
TAZ 415 392
(–5.6%)
372
(–10.3%)
n/a 383
(–7.7%)
384
(–7.5%)
385
(–7.2%)
TetraLogical 60 54
(–10.1%)
54
(–10.5%)
54
(–9.8%)
54
(–9.8%)
54
(–10.1%)
54
(–9.8%)
TPGi 177 162
(–8.5%)
160
(–9.9%)
162
(–8.4%)
161
(–9.3%)
161
(–9.4%)
162
(–8.5%)
United Nations 152 132
(–13.7%)
127
(–16.7%)
131
(–13.7%)
130
(–14.6%)
129
(–15.2%)
131
(–14%)
UX Collective 156 201
(+29%)
152
(–2.2%)
154
(–0.7%)
154
(–1.3%)
154
(–1.3%)
151
(–2.7%)
Vivaldi 91 83
(–8.8%)
82
(–10.7%)
83
(–9.5%)
82
(–9.8%)
82
(–10.5%)
83
(–9.4%)
W3C 52 42
(–18.4%)
41
(–20.4%)
42
(–18.8%)
42
(–19.1%)
42
(–19.9%)
42
(–18.7%)
WordPress Blog 221 203
(–8%)
200
(–9.4%)
205
(–7.5%)
203
(–8.1%)
202
(–8.6%)
205
(–7.2%)
Sites processed (of sites overall) 48/48 48/48 38/48 48/48 48/48 48/48
Average processing time 32 ms 39 ms 857 ms 43 ms 9 ms 199 ms
Average result (KB) 399 380
(–4.7%)
366
(–8.2%)
388
(–2.6%)
375
(–5.9%)
374
(–6.1%)
377
(–5.5%)

2. Maximum Minification Compared

Site Original Size (KB) @swc/html HTML Minifier Next htmlΒ­comΒ­pressor.Β­com htmlnano minify-html minimize
Minifier Test 31 24
(–23.3%)
23
(–25.5%)
24
(–22.9%)
23
(–26.5%)
23
(–25.2%)
26
(–16.3%)
A List Apart 63 57
(–9.1%)
53
(–14.8%)
56
(–10%)
39
(–37.4%)
55
(–11.5%)
58
(–7.3%)
Apple 244 231
(–5.2%)
216
(–11.5%)
229
(–5.9%)
219
(–10.1%)
227
(–6.7%)
229
(–6%)
BBC 676 636
(–6%)
621
(–8.1%)
n/a 630
(–6.8%)
632
(–6.5%)
671
(–0.8%)
Bun 283 272
(–3.9%)
259
(–8.3%)
278
(–1.7%)
271
(–4%)
274
(–3.2%)
276
(–2.4%)
CERN 290 263
(–9.4%)
248
(–14.5%)
268
(–7.7%)
216
(–25.6%)
262
(–9.8%)
278
(–4.3%)
CSS-Tricks 148 131
(–11.3%)
119
(–19.2%)
130
(–11.9%)
103
(–30.6%)
129
(–12.5%)
135
(–9%)
DeepSeek 98 95
(–3.2%)
71
(–27.4%)
95
(–3.4%)
77
(–21.6%)
95
(–3.5%)
97
(–1.2%)
DIN 254 176
(–30.8%)
164
(–35.4%)
177
(–30.6%)
136
(–46.5%)
175
(–31.1%)
183
(–27.9%)
DLR 544 512
(–6%)
502
(–7.8%)
n/a 497
(–8.6%)
504
(–7.4%)
541
(–0.5%)
ECMAScript 7421 7054
(–4.9%)
6812
(–8.2%)
n/a 6928
(–6.6%)
6958
(–6.2%)
6983
(–5.9%)
EDRi 84 75
(–11.2%)
71
(–16%)
76
(–9.6%)
55
(–34.7%)
75
(–11.1%)
78
(–6.7%)
EFF 53 47
(–10.8%)
43
(–18.6%)
48
(–10.1%)
46
(–14.1%)
47
(–12.2%)
48
(–9.7%)
European Alternatives 49 33
(–33.2%)
31
(–37.7%)
33
(–33%)
31
(–36.9%)
33
(–33.5%)
33
(–33.1%)
FAZ 1606 1483
(–7.6%)
1422
(–11.5%)
n/a 1351
(–15.8%)
1542
(–4%)
1549
(–3.5%)
French Tech 174 133
(–23.6%)
128
(–26.5%)
134
(–23%)
58
(–66.9%)
132
(–24%)
140
(–19.7%)
Front-End Social 43 41
(–5.2%)
37
(–14.4%)
41
(–3.7%)
37
(–14.2%)
40
(–6.6%)
42
(–3.5%)
Frontend Dogma 222 229
(+3.6%)
214
(–3.3%)
221
(–0.2%)
227
(+2.3%)
221
(0%)
240
(+8.4%)
Google 80 76
(–4.6%)
75
(–5.3%)
79
(–0.8%)
64
(–19.8%)
77
(–3.6%)
79
(–0.3%)
Ground News 2488 2321
(–6.7%)
2246
(–9.7%)
n/a 2290
(–7.9%)
2317
(–6.9%)
2474
(–0.5%)
HTML 3.2 123 119
(–3.1%)
118
(–3.4%)
121
(–1.3%)
123
(+0.6%)
119
(–2.8%)
123
(+0.5%)
HTML Living Standard 151 154
(+1.8%)
150
(–0.7%)
151
(–0.3%)
155
(+2.5%)
151
(–0.2%)
157
(+3.8%)
IETF 82 34
(–58.7%)
31
(–61.8%)
34
(–58.1%)
33
(–59.8%)
33
(–59.5%)
34
(–58.4%)
Igalia 44 34
(–23.4%)
31
(–30.1%)
33
(–23.9%)
33
(–26.1%)
33
(–25.3%)
34
(–23.3%)
Ladybird 30 28
(–3.9%)
27
(–7.7%)
28
(–5%)
25
(–14.1%)
28
(–5.7%)
28
(–5%)
Leanpub 360 344
(–4.3%)
328
(–8.9%)
n/a 335
(–7%)
341
(–5.1%)
354
(–1.6%)
Legge Stanca 17 10
(–43.8%)
9
(–46.5%)
10
(–42.7%)
9
(–46.7%)
10
(–40.3%)
12
(–27.5%)
Mastodon 43 41
(–5.2%)
37
(–14.4%)
41
(–3.7%)
37
(–14.3%)
40
(–6.6%)
41
(–3.5%)
MDN 118 70
(–40.3%)
66
(–43.8%)
72
(–38.9%)
54
(–53.9%)
69
(–41.3%)
71
(–39.2%)
Mistral AI 425 411
(–3.2%)
258
(–39.2%)
n/a 333
(–21.7%)
415
(–2.3%)
425
(0%)
Mondoweiss 403 381
(–5.5%)
367
(–9%)
n/a 360
(–10.6%)
376
(–6.6%)
388
(–3.6%)
Mozilla 47 37
(–21%)
32
(–31.6%)
37
(–22.2%)
33
(–29.4%)
35
(–25.6%)
36
(–23%)
Nielsen Norman Group 103 85
(–17%)
60
(–41.7%)
86
(–16.6%)
61
(–41%)
85
(–17.4%)
87
(–15.5%)
Opera 185 130
(–29.5%)
122
(–33.8%)
134
(–27.4%)
85
(–53.9%)
129
(–30%)
134
(–27.6%)
OSCE 171 143
(–16.1%)
134
(–21.5%)
144
(–16%)
135
(–20.8%)
142
(–17%)
144
(–15.8%)
Scrum Guide 34 31
(–9%)
30
(–10.9%)
32
(–7.3%)
31
(–8.3%)
31
(–10%)
31
(–7.8%)
SELFHTML 21 18
(–14.2%)
17
(–19.1%)
18
(–14.4%)
18
(–16%)
17
(–17.3%)
18
(–14.2%)
SitePoint 241 229
(–4.9%)
215
(–10.5%)
231
(–4.1%)
217
(–9.8%)
229
(–4.6%)
239
(–0.7%)
Smashing Magazine 313 312
(–0.2%)
309
(–1.2%)
n/a 296
(–5.4%)
310
(–0.8%)
313
(0%)
Startup-Verband 51 37
(–26.4%)
35
(–31.1%)
37
(–27.3%)
36
(–29.6%)
36
(–28.4%)
37
(–27.1%)
TAZ 415 373
(–10.1%)
349
(–16%)
n/a 363
(–12.4%)
374
(–9.8%)
385
(–7.2%)
TetraLogical 60 54
(–10.2%)
50
(–17%)
54
(–9.9%)
50
(–16.4%)
54
(–10.2%)
54
(–9.8%)
TPGi 177 136
(–23.4%)
133
(–25.1%)
142
(–20%)
117
(–34.2%)
138
(–22%)
162
(–8.5%)
United Nations 152 128
(–16.2%)
113
(–25.5%)
124
(–18.5%)
85
(–44.2%)
125
(–17.6%)
131
(–14%)
UX Collective 156 145
(–6.5%)
132
(–15.1%)
153
(–1.4%)
133
(–14.8%)
144
(–7.7%)
151
(–2.7%)
Vivaldi 91 80
(–12%)
73
(–20%)
81
(–11.5%)
64
(–29.8%)
80
(–12.8%)
83
(–9.4%)
W3C 52 40
(–22.1%)
37
(–28.4%)
40
(–22.5%)
38
(–27%)
40
(–23.7%)
42
(–18.7%)
WordPress Blog 221 182
(–17.9%)
171
(–22.7%)
191
(–13.6%)
153
(–30.9%)
189
(–14.5%)
205
(–7.2%)
Sites processed (of sites overall) 48/48 48/48 38/48 48/48 48/48 48/48
Average processing time 38 ms 65 ms 1244 ms 153 ms 11 ms 196 ms
Average result (KB) 399 368
(–7.6%)
350
(–12.2%)
386
(–3.1%)
348
(–12.7%)
367
(–8%)
377
(–5.5%)

Benchmarks last updated: Jul 27, 2026

Notes

  • Minifiers:
    • htmlcompressor.com incorrectly converts no-break spaces to spaces which can give an impression of greater effectiveness (last confirmed Apr 4, 2026).
    • Minimize only minifies HTML.
    • HTML Minifier Terser is currently not included due to issues around whitespace collapsing and removal of code using modern CSS features, issues which appeared to distort the data.
  • Calculation:
    • Calculations are done based on bytes, which are used to compare effectiveness.
    • Failed sites are not excluded from the calculation for the average result, but counted as unminified. This avoids test failures advantaging the respective minifier.
  • Benchmarks are currently run manually (on a 2024 Apple Mac Mini) but may be automated in the future.

Used by

Contributors

Languages