Minifier Benchmarks

August 7, 2026 Β· View on GitHub

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/htmlHTML Minifier NexthtmlΒ­comΒ­pressor.Β­comhtmlnanominify-htmlminimize
Last npm updatenpm @swc/htmlnpm HTML Minifier Nextn/anpm htmlnanonpm minify-htmlnpm minimize
Socket health statusSocket @swc/htmlSocket HTML Minifier Nextn/aSocket htmlnanoSocket minify-htmlSocket minimize
GitHub sponsorsSponsors @swc/htmlSponsors HTML Minifier Nextn/an/an/an/a

1. HTML Minification Compared

SiteOriginal Size (KB)@swc/htmlHTML Minifier NexthtmlΒ­comΒ­pressor.Β­comhtmlnanominify-htmlminimize
Minifier Test3126
(–17.2%)
25
(–19.6%)
26
(–17%)
26
(–16.5%)
25
(–19.1%)
26
(–16.3%)
A List Apart6359
(–5.8%)
57
(–8.4%)
58
(–7.2%)
58
(–7.7%)
58
(–8.1%)
58
(–7.3%)
Apple251238
(–5.2%)
232
(–7.7%)
236
(–5.9%)
235
(–6.4%)
234
(–6.7%)
236
(–6.1%)
BBC651647
(–0.7%)
642
(–1.5%)
n/a644
(–1%)
644
(–1.2%)
646
(–0.8%)
Bun283272
(–3.8%)
264
(–6.8%)
278
(–1.7%)
275
(–2.6%)
274
(–3.1%)
276
(–2.4%)
CERN290279
(–4%)
271
(–6.8%)
278
(–4.2%)
278
(–4.3%)
277
(–4.7%)
278
(–4.3%)
CSS-Tricks170157
(–7.5%)
154
(–9.3%)
155
(–8.5%)
154
(–9%)
155
(–8.9%)
155
(–8.5%)
DeepSeek9897
(–0.8%)
91
(–7.5%)
97
(–1.2%)
97
(–1.5%)
97
(–1.3%)
97
(–1.2%)
DIN253182
(–28%)
176
(–30.4%)
183
(–27.6%)
182
(–28.1%)
180
(–28.7%)
183
(–27.7%)
DLR545541
(–0.6%)
539
(–1%)
n/a540
(–0.8%)
540
(–0.9%)
542
(–0.5%)
ECMAScript74137046
(–4.9%)
6805
(–8.2%)
n/a6921
(–6.6%)
6950
(–6.2%)
6974
(–5.9%)
EDRi8478
(–7.7%)
77
(–8.2%)
79
(–6.6%)
78
(–7.6%)
78
(–7.9%)
79
(–6.7%)
EFF5450
(–7.9%)
47
(–12.4%)
50
(–7.7%)
48
(–9.9%)
48
(–11.1%)
49
(–9.6%)
European Alternatives4933
(–33.1%)
33
(–33.9%)
33
(–32.9%)
33
(–33.1%)
33
(–33.5%)
33
(–33.1%)
FAZ15251474
(–3.4%)
1401
(–8.2%)
n/a1472
(–3.5%)
1469
(–3.7%)
1468
(–3.7%)
French Tech171136
(–20.4%)
134
(–21.2%)
136
(–20.1%)
136
(–20.4%)
135
(–20.9%)
136
(–20.2%)
Front-End Social4341
(–4.1%)
40
(–6.4%)
42
(–3.4%)
40
(–6.3%)
40
(–6.3%)
42
(–3.5%)
Frontend Dogma217225
(+3.6%)
217
(0%)
217
(–0.2%)
231
(+6.2%)
217
(0%)
236
(+8.5%)
Google82128
(+56.6%)
81
(–0.6%)
81
(–0.3%)
81
(–0.8%)
81
(–0.5%)
81
(–0.3%)
Ground News15141490
(–1.6%)
1450
(–4.2%)
n/a1495
(–1.3%)
1491
(–1.6%)
1500
(–0.9%)
HTML 3.2123119
(–3%)
119
(–3%)
121
(–1.2%)
124
(+0.8%)
119
(–2.7%)
123
(+0.5%)
HTML Living Standard151154
(+1.8%)
150
(–0.6%)
151
(–0.2%)
155
(+2.6%)
151
(–0.2%)
157
(+3.8%)
IETF8234
(–58.5%)
32
(–61%)
35
(–58%)
34
(–59.1%)
33
(–59.5%)
34
(–58.5%)
Igalia4435
(–21.9%)
32
(–27.6%)
34
(–22.9%)
34
(–23.4%)
34
(–23.7%)
34
(–23.3%)
Ladybird2928
(–3.9%)
27
(–6.4%)
28
(–5%)
28
(–5.4%)
28
(–5.7%)
28
(–5%)
Leanpub363359
(–1%)
353
(–3%)
n/a359
(–1.2%)
357
(–1.8%)
357
(–1.7%)
Legge Stanca1712
(–28.5%)
12
(–30.4%)
12
(–27.3%)
12
(–30%)
12
(–30.1%)
12
(–27.5%)
Mastodon5451
(–4.6%)
50
(–7.3%)
52
(–3.8%)
50
(–7.2%)
50
(–7.2%)
52
(–3.9%)
MDN11770
(–40.2%)
67
(–42.7%)
72
(–38.8%)
71
(–39.5%)
69
(–41.2%)
71
(–39.2%)
Mistral AI425412
(–3.2%)
341
(–19.9%)
n/a424
(–0.3%)
416
(–2.2%)
425
(+0%)
Mondoweiss354351
(–1.1%)
335
(–5.4%)
n/a339
(–4.2%)
339
(–4.3%)
341
(–3.9%)
Mozilla4838
(–21%)
35
(–25.8%)
37
(–22.2%)
36
(–23.8%)
35
(–25.6%)
37
(–23%)
Nielsen Norman Group10286
(–16.3%)
85
(–17.3%)
86
(–16%)
86
(–15.6%)
85
(–16.8%)
86
(–15.6%)
Opera183134
(–26.6%)
131
(–28.4%)
134
(–26.9%)
133
(–27.2%)
133
(–27.3%)
133
(–27.2%)
OSCE173145
(–16%)
143
(–17.2%)
145
(–15.9%)
146
(–15.7%)
144
(–16.8%)
146
(–15.7%)
Scrum Guide3431
(–8.9%)
30
(–10.7%)
32
(–7.3%)
31
(–7.9%)
31
(–10%)
31
(–7.8%)
SELFHTML2119
(–7.6%)
17
(–17.3%)
18
(–13.5%)
18
(–14.5%)
18
(–16.4%)
18
(–14%)
SitePoint237234
(–1.3%)
233
(–1.6%)
235
(–0.7%)
235
(–0.9%)
235
(–0.9%)
235
(–0.7%)
Smashing Magazine296297
(+0.2%)
295
(–0.5%)
n/a296
(–0.2%)
295
(–0.4%)
296
(0%)
Startup-Verband5238
(–26.3%)
36
(–29.3%)
38
(–27.2%)
37
(–27.7%)
37
(–28.2%)
38
(–27.2%)
TAZ411388
(–5.7%)
368
(–10.5%)
n/a380
(–7.6%)
380
(–7.5%)
382
(–7.1%)
TetraLogical6054
(–10.1%)
54
(–10.5%)
54
(–9.8%)
54
(–9.8%)
54
(–10.1%)
54
(–9.8%)
TPGi188171
(–9%)
169
(–10.5%)
173
(–8.3%)
170
(–9.9%)
170
(–9.9%)
173
(–8.3%)
United Nations154133
(–13.5%)
128
(–16.6%)
133
(–13.6%)
131
(–14.5%)
130
(–15.1%)
132
(–13.9%)
UX Collective118163
(+37.8%)
116
(–2.3%)
118
(–0.6%)
117
(–1.1%)
117
(–1.1%)
116
(–1.7%)
Vivaldi9183
(–8.8%)
82
(–10.8%)
83
(–9.5%)
82
(–9.8%)
82
(–10.5%)
83
(–9.4%)
W3C5041
(–18.8%)
40
(–20.8%)
41
(–19.1%)
40
(–19.5%)
40
(–20.3%)
41
(–19%)
WordPress Blog207192
(–7.4%)
189
(–8.9%)
193
(–6.7%)
192
(–7.5%)
191
(–8%)
194
(–6.5%)
Sites processed (of sites overall)48/4848/4838/4848/4848/4848/48
Average processing time34 ms43 ms853 ms41 ms8 ms196 ms
Average result (KB)374356
(–5%)
342
(–8.7%)
364
(–2.8%)
351
(–6.3%)
350
(–6.5%)
353
(–5.8%)

2. Maximum Minification Compared

SiteOriginal Size (KB)@swc/htmlHTML Minifier NexthtmlΒ­comΒ­pressor.Β­comhtmlnanominify-htmlminimize
Minifier Test3124
(–23.3%)
23
(–25.5%)
24
(–22.9%)
23
(–26.5%)
23
(–25.2%)
26
(–16.3%)
A List Apart6357
(–9.1%)
53
(–14.7%)
56
(–9.9%)
39
(–37.3%)
55
(–11.4%)
58
(–7.3%)
Apple251238
(–5.1%)
222
(–11.6%)
236
(–5.9%)
226
(–10.1%)
234
(–6.8%)
236
(–6.1%)
BBC651613
(–5.8%)
600
(–7.9%)
n/a607
(–6.7%)
610
(–6.3%)
646
(–0.8%)
Bun283272
(–3.9%)
259
(–8.3%)
278
(–1.7%)
271
(–4%)
274
(–3.2%)
276
(–2.4%)
CERN290263
(–9.4%)
248
(–14.5%)
268
(–7.7%)
216
(–25.6%)
262
(–9.8%)
278
(–4.3%)
CSS-Tricks170148
(–12.7%)
136
(–19.9%)
149
(–12.2%)
115
(–32.1%)
148
(–13%)
155
(–8.5%)
DeepSeek9895
(–3.2%)
71
(–27.4%)
95
(–3.4%)
77
(–21.6%)
95
(–3.6%)
97
(–1.2%)
DIN253176
(–30.5%)
164
(–35.1%)
176
(–30.3%)
136
(–46.3%)
175
(–30.8%)
183
(–27.7%)
DLR545512
(–6%)
502
(–7.8%)
n/a497
(–8.7%)
505
(–7.4%)
542
(–0.5%)
ECMAScript74137046
(–4.9%)
6804
(–8.2%)
n/a6920
(–6.6%)
6950
(–6.2%)
6974
(–5.9%)
EDRi8475
(–11.2%)
71
(–16%)
76
(–9.6%)
55
(–34.7%)
75
(–11.1%)
79
(–6.7%)
EFF5448
(–10.7%)
44
(–18.7%)
48
(–10%)
46
(–14.3%)
47
(–12.1%)
49
(–9.6%)
European Alternatives4933
(–33.2%)
31
(–37.7%)
33
(–33%)
31
(–37%)
33
(–33.6%)
33
(–33.1%)
FAZ15251407
(–7.7%)
1347
(–11.7%)
n/a1272
(–16.6%)
1461
(–4.2%)
1468
(–3.7%)
French Tech171129
(–24.2%)
124
(–27.2%)
130
(–23.6%)
56
(–66.9%)
129
(–24.6%)
136
(–20.2%)
Front-End Social4341
(–5.2%)
37
(–14.4%)
41
(–3.7%)
37
(–14.2%)
40
(–6.6%)
42
(–3.5%)
Frontend Dogma217225
(+3.6%)
210
(–3.3%)
217
(–0.2%)
222
(+2.4%)
217
(0%)
236
(+8.5%)
Google8278
(–4.5%)
77
(–5.2%)
81
(–0.8%)
66
(–19.3%)
79
(–3.5%)
81
(–0.3%)
Ground News15141424
(–6%)
1348
(–11%)
n/a1395
(–7.9%)
1424
(–6%)
1500
(–0.9%)
HTML 3.2123119
(–3.1%)
118
(–3.4%)
121
(–1.3%)
123
(+0.6%)
119
(–2.8%)
123
(+0.5%)
HTML Living Standard151154
(+1.8%)
150
(–0.7%)
151
(–0.3%)
155
(+2.5%)
151
(–0.2%)
157
(+3.8%)
IETF8234
(–58.8%)
31
(–61.8%)
34
(–58.1%)
33
(–59.9%)
33
(–59.6%)
34
(–58.5%)
Igalia4434
(–23.4%)
31
(–30.1%)
34
(–23.9%)
33
(–26.1%)
33
(–25.3%)
34
(–23.3%)
Ladybird2928
(–3.9%)
27
(–7.6%)
28
(–5%)
25
(–14.2%)
28
(–5.7%)
28
(–5%)
Leanpub363347
(–4.4%)
331
(–9%)
n/a338
(–7.1%)
344
(–5.2%)
357
(–1.7%)
Legge Stanca1710
(–43.8%)
9
(–46.5%)
10
(–42.7%)
9
(–46.7%)
10
(–40.3%)
12
(–27.5%)
Mastodon5451
(–5.6%)
46
(–13.9%)
52
(–4.1%)
46
(–13.8%)
50
(–7.6%)
52
(–3.9%)
MDN11770
(–40.3%)
66
(–43.8%)
71
(–38.8%)
54
(–53.9%)
69
(–41.3%)
71
(–39.2%)
Mistral AI425412
(–3.2%)
259
(–39.2%)
n/a333
(–21.7%)
416
(–2.3%)
425
(+0%)
Mondoweiss354334
(–5.7%)
321
(–9.4%)
n/a315
(–11.1%)
329
(–7.2%)
341
(–3.9%)
Mozilla4838
(–21%)
32
(–31.6%)
37
(–22.2%)
34
(–29.4%)
35
(–25.6%)
37
(–23%)
Nielsen Norman Group10285
(–17.1%)
60
(–41.8%)
85
(–16.6%)
60
(–41.1%)
85
(–17.4%)
86
(–15.6%)
Opera183130
(–29.2%)
122
(–33.4%)
133
(–27.2%)
84
(–53.9%)
129
(–29.7%)
133
(–27.2%)
OSCE173145
(–16%)
136
(–21.3%)
145
(–15.9%)
137
(–20.7%)
144
(–16.9%)
146
(–15.7%)
Scrum Guide3431
(–9%)
30
(–10.9%)
32
(–7.3%)
31
(–8.3%)
31
(–10%)
31
(–7.8%)
SELFHTML2118
(–14.2%)
17
(–19%)
18
(–14.3%)
18
(–15.9%)
17
(–17.2%)
18
(–14%)
SitePoint237225
(–5%)
212
(–10.5%)
227
(–4.1%)
213
(–9.9%)
226
(–4.6%)
235
(–0.7%)
Smashing Magazine296296
(–0.3%)
293
(–1.3%)
n/a279
(–5.7%)
294
(–0.8%)
296
(0%)
Startup-Verband5238
(–26.4%)
35
(–31.2%)
37
(–27.3%)
36
(–29.6%)
37
(–28.4%)
38
(–27.2%)
TAZ411370
(–10.1%)
344
(–16.2%)
n/a361
(–12.1%)
371
(–9.6%)
382
(–7.1%)
TetraLogical6054
(–10.2%)
50
(–17%)
54
(–9.9%)
50
(–16.3%)
54
(–10.2%)
54
(–9.8%)
TPGi188145
(–23.2%)
141
(–24.9%)
152
(–19.1%)
125
(–33.4%)
147
(–21.9%)
173
(–8.3%)
United Nations154129
(–16.1%)
115
(–25.4%)
125
(–18.4%)
86
(–43.9%)
127
(–17.5%)
132
(–13.9%)
UX Collective118110
(–7.3%)
103
(–13.3%)
117
(–1.4%)
103
(–12.9%)
109
(–7.8%)
116
(–1.7%)
Vivaldi9180
(–12%)
73
(–20%)
81
(–11.5%)
64
(–29.8%)
80
(–12.8%)
83
(–9.4%)
W3C5039
(–22.6%)
36
(–28.9%)
39
(–23%)
36
(–27.5%)
38
(–24.2%)
41
(–19%)
WordPress Blog207170
(–18%)
161
(–22.5%)
180
(–13.2%)
142
(–31.4%)
178
(–14.2%)
194
(–6.5%)
Sites processed (of sites overall)48/4848/4838/4848/4848/4848/48
Average processing time34 ms81 ms1303 ms156 ms11 ms199 ms
Average result (KB)374346
(–7.7%)
328
(–12.5%)
362
(–3.3%)
326
(–13%)
344
(–8.1%)
353
(–5.8%)

Benchmarks last updated: Aug 7, 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.