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).
- 👩💻 Minifier user? Compare HTML minifiers by HTML minification effectiveness, by maximum effectiveness (all minification and tree-shaking options enabled), and by the respective processing times
- 🧑🏭 Minifier author? Add and configure your minifier and become a co-owner
- 💁 Innocent bystander? Please share observations and suggestions
| @swc/html | HTML Minifier Next | htmlcompressor.com | htmlnano | minify-html | minimize | |
|---|---|---|---|---|---|---|
| Last npm update | n/a | |||||
| Socket health status | n/a | |||||
| GitHub sponsors | n/a | n/a | n/a | n/a |
| Site | Original Size (KB) | @swc/html | HTML Minifier Next | htmlcompressor.com | htmlnano | minify-html | minimize |
|---|---|---|---|---|---|---|---|
| Minifier Test | 31 | 26 (–17.2%) |
25 (–19.6%) |
26 (–17%) |
26 (–16.5%) |
25 (–19.2%) |
26 (–16.3%) |
| A List Apart | 63 | 59 (–6.4%) |
57 (–8.9%) |
58 (–7.4%) |
58 (–8.3%) |
57 (–8.9%) |
58 (–7.4%) |
| Apple | 248 | 238 (–4%) |
232 (–6.4%) |
236 (–4.7%) |
235 (–5.2%) |
233 (–5.9%) |
236 (–4.9%) |
| BBC | 685 | 680 (–0.7%) |
674 (–1.5%) |
n/a | 678 (–0.9%) |
675 (–1.4%) |
679 (–0.8%) |
| Bun | 461 | 451 (–2.2%) |
441 (–4.2%) |
n/a | 454 (–1.5%) |
452 (–2%) |
455 (–1.3%) |
| CERN | 151 | 93 (–38.5%) |
81 (–46%) |
95 (–36.9%) |
91 (–39.3%) |
91 (–39.6%) |
93 (–38.6%) |
| CSS-Tricks | 169 | 157 (–7.4%) |
154 (–9%) |
156 (–7.9%) |
155 (–8.4%) |
154 (–8.9%) |
156 (–8%) |
| DIN | 253 | 182 (–28.1%) |
175 (–30.6%) |
183 (–27.6%) |
182 (–28%) |
179 (–29%) |
182 (–27.8%) |
| DLR | 567 | 563 (–0.7%) |
560 (–1.1%) |
n/a | 562 (–0.8%) |
561 (–1%) |
564 (–0.5%) |
| ECMAScript | 7355 | 6761 (–8.1%) |
6539 (–11.1%) |
n/a | 6674 (–9.3%) |
6674 (–9.3%) |
6726 (–8.6%) |
| EDRi | 83 | 77 (–7.6%) |
77 (–8.2%) |
78 (–6.6%) |
77 (–7.5%) |
77 (–8.1%) |
78 (–6.7%) |
| EFF | 54 | 49 (–8.1%) |
47 (–11.9%) |
49 (–7.8%) |
48 (–10%) |
47 (–11.6%) |
48 (–9.7%) |
| European Alternatives | 49 | 33 (–33.1%) |
33 (–33.9%) |
33 (–32.9%) |
33 (–33.1%) |
33 (–33.7%) |
33 (–33.1%) |
| FAZ | 1445 | 1402 (–3%) |
1384 (–4.2%) |
n/a | 1399 (–3.2%) |
1390 (–3.8%) |
1396 (–3.4%) |
| French Tech | 156 | 136 (–13%) |
134 (–14%) |
136 (–13.1%) |
135 (–13.3%) |
134 (–14%) |
136 (–13.2%) |
| Front-End Social | 36 | 34 (–3.7%) |
34 (–5.6%) |
35 (–3.1%) |
34 (–5.5%) |
34 (–5.6%) |
35 (–3.1%) |
| Frontend Dogma | 219 | 227 (+3.7%) |
219 (0%) |
218 (–0.2%) |
232 (+6.1%) |
218 (0%) |
237 (+8.4%) |
| 78 | 123 (+57.8%) |
78 (–0.6%) |
78 (–0.3%) |
77 (–0.8%) |
78 (–0.5%) |
78 (–0.3%) |
|
| Ground News | 1511 | 1488 (–1.5%) |
1448 (–4.2%) |
n/a | 1494 (–1.1%) |
1486 (–1.6%) |
1498 (–0.9%) |
| HTML 3.2 | 123 | 119 (–3%) |
119 (–3%) |
121 (–1.2%) |
124 (+0.9%) |
119 (–3.2%) |
123 (+0.5%) |
| HTML Living Standard | 149 | 152 (+1.8%) |
148 (–0.6%) |
149 (–0.2%) |
153 (+2.6%) |
149 (–0.3%) |
155 (+3.8%) |
| IETF | 83 | 34 (–58.5%) |
33 (–60.7%) |
35 (–58%) |
34 (–59.1%) |
34 (–59.6%) |
34 (–58.5%) |
| Igalia | 49 | 38 (–23.6%) |
35 (–28.9%) |
37 (–24.7%) |
37 (–25.1%) |
37 (–25.6%) |
37 (–25.1%) |
| Ladybird | 24 | 23 (–4.6%) |
22 (–7.3%) |
23 (–5.5%) |
23 (–6.1%) |
23 (–6.6%) |
23 (–5.6%) |
| Leanpub | 343 | 338 (–1.3%) |
330 (–3.7%) |
n/a | 338 (–1.3%) |
336 (–2%) |
337 (–1.7%) |
| Legge Stanca | 17 | 12 (–28.5%) |
12 (–30.4%) |
12 (–27.3%) |
12 (–29.7%) |
12 (–30.2%) |
12 (–27.5%) |
| Mastodon | 34 | 33 (–3.5%) |
32 (–5.3%) |
33 (–2.9%) |
32 (–5.2%) |
32 (–5.3%) |
33 (–3.1%) |
| MDN | 110 | 67 (–39.1%) |
64 (–41.6%) |
68 (–37.7%) |
68 (–38%) |
66 (–40.4%) |
68 (–38.2%) |
| Mistral AI | 349 | 341 (–2.5%) |
339 (–3%) |
n/a | 345 (–1.3%) |
340 (–2.6%) |
346 (–1.1%) |
| Mondoweiss | 406 | 403 (–0.6%) |
386 (–4.8%) |
n/a | 390 (–3.8%) |
389 (–4.1%) |
392 (–3.4%) |
| Mozilla | 47 | 37 (–21%) |
36 (–24.4%) |
37 (–22.2%) |
36 (–23.8%) |
35 (–26.1%) |
36 (–23.1%) |
| Nielsen Norman Group | 102 | 85 (–16.5%) |
84 (–17.4%) |
85 (–16.1%) |
86 (–15.7%) |
84 (–17.2%) |
86 (–15.7%) |
| Opera | 231 | 178 (–22.9%) |
173 (–25.1%) |
176 (–23.7%) |
177 (–23.4%) |
175 (–24.3%) |
177 (–23.5%) |
| OSCE | 173 | 145 (–16%) |
143 (–17.2%) |
145 (–15.9%) |
145 (–15.7%) |
143 (–17.3%) |
145 (–15.7%) |
| Scrum Guide | 34 | 31 (–8.9%) |
31 (–10.2%) |
32 (–7.3%) |
31 (–7.9%) |
31 (–10.1%) |
31 (–7.8%) |
| Scrum.org | 209 | 179 (–14.5%) |
177 (–15.4%) |
178 (–14.9%) |
178 (–14.8%) |
178 (–15.2%) |
179 (–14.7%) |
| SELFHTML | 21 | 20 (–7.5%) |
18 (–17.3%) |
18 (–13.6%) |
18 (–14.4%) |
18 (–16.7%) |
18 (–14.1%) |
| SitePoint | 235 | 232 (–1.3%) |
232 (–1.6%) |
234 (–0.7%) |
233 (–0.9%) |
233 (–1.1%) |
234 (–0.7%) |
| Smashing Magazine | 280 | 281 (+0.2%) |
279 (–0.6%) |
280 (–0.1%) |
280 (–0.2%) |
279 (–0.4%) |
280 (0%) |
| Startup-Verband | 44 | 33 (–26.2%) |
32 (–29.1%) |
33 (–26.6%) |
32 (–27%) |
32 (–28.1%) |
33 (–26.3%) |
| TAZ | 450 | 426 (–5.4%) |
405 (–10%) |
n/a | 416 (–7.7%) |
415 (–7.9%) |
418 (–7.2%) |
| TetraLogical | 60 | 54 (–10%) |
54 (–10.4%) |
54 (–9.7%) |
54 (–9.8%) |
54 (–10.2%) |
54 (–9.7%) |
| TPGi | 181 | 166 (–8.2%) |
163 (–9.7%) |
166 (–8.3%) |
164 (–9.2%) |
163 (–9.4%) |
166 (–8.3%) |
| United Nations | 152 | 132 (–13.6%) |
127 (–16.6%) |
132 (–13.7%) |
130 (–14.5%) |
129 (–15.2%) |
131 (–13.9%) |
| UX Collective | 97 | 138 (+42.8%) |
94 (–2.7%) |
96 (–0.8%) |
96 (–1.1%) |
96 (–1.4%) |
96 (–0.9%) |
| Vivaldi | 91 | 83 (–8.7%) |
81 (–10.7%) |
82 (–9.5%) |
82 (–9.8%) |
81 (–10.8%) |
82 (–9.4%) |
| W3C | 50 | 41 (–18.8%) |
40 (–20.9%) |
41 (–19.2%) |
40 (–19.5%) |
40 (–20.5%) |
41 (–19.1%) |
| WordPress Blog | 201 | 185 (–7.6%) |
182 (–9.1%) |
187 (–6.9%) |
185 (–7.5%) |
184 (–8.4%) |
187 (–6.7%) |
| Sites processed (of sites overall) | 48/48 | 48/48 | 38/48 | 48/48 | 48/48 | 48/48 | |
| Average processing time | 31 ms | 42 ms | 754 ms | 35 ms | 8 ms | 189 ms | |
| Average result (KB) | 374 | 350 (–6.5%) |
339 (–9.4%) |
363 (–3.1%) |
346 (–7.6%) |
344 (–8.1%) |
347 (–7.2%) |
| Site | Original Size (KB) | @swc/html | HTML Minifier Next | htmlcompressor.com | htmlnano | minify-html | minimize |
|---|---|---|---|---|---|---|---|
| Minifier Test | 31 | 24 (–23.3%) |
23 (–25.5%) |
24 (–22.9%) |
23 (–26.5%) |
23 (–25.3%) |
26 (–16.3%) |
| A List Apart | 63 | 57 (–9.6%) |
53 (–15.2%) |
56 (–10.2%) |
39 (–37.6%) |
55 (–12.1%) |
58 (–7.4%) |
| Apple | 248 | 237 (–4.2%) |
222 (–10.4%) |
236 (–4.8%) |
226 (–8.9%) |
233 (–5.9%) |
236 (–4.9%) |
| BBC | 685 | 644 (–6%) |
629 (–8.1%) |
n/a | 642 (–6.3%) |
639 (–6.7%) |
679 (–0.8%) |
| Bun | 461 | 435 (–5.7%) |
420 (–8.8%) |
n/a | 374 (–18.9%) |
436 (–5.3%) |
455 (–1.3%) |
| CERN | 151 | 93 (–38.5%) |
80 (–46.6%) |
95 (–36.9%) |
90 (–40.5%) |
90 (–40%) |
93 (–38.6%) |
| CSS-Tricks | 169 | 149 (–12.2%) |
125 (–26.3%) |
150 (–11.2%) |
115 (–32.3%) |
148 (–12.5%) |
156 (–8%) |
| DIN | 253 | 175 (–30.7%) |
163 (–35.3%) |
176 (–30.5%) |
136 (–46.3%) |
174 (–31.1%) |
182 (–27.8%) |
| DLR | 567 | 532 (–6%) |
523 (–7.8%) |
n/a | 518 (–8.6%) |
525 (–7.4%) |
564 (–0.5%) |
| ECMAScript | 7355 | 6759 (–8.1%) |
6536 (–11.1%) |
n/a | 6671 (–9.3%) |
6672 (–9.3%) |
6726 (–8.6%) |
| EDRi | 83 | 74 (–11.1%) |
70 (–15.9%) |
76 (–9.5%) |
54 (–34.7%) |
74 (–11.3%) |
78 (–6.7%) |
| EFF | 54 | 48 (–10.9%) |
44 (–18%) |
48 (–10.1%) |
46 (–14.2%) |
47 (–12.6%) |
48 (–9.7%) |
| European Alternatives | 49 | 33 (–33.2%) |
31 (–37.7%) |
33 (–33%) |
31 (–37%) |
33 (–33.8%) |
33 (–33.1%) |
| FAZ | 1445 | 1395 (–3.5%) |
1339 (–7.4%) |
n/a | 1267 (–12.3%) |
1384 (–4.2%) |
1396 (–3.4%) |
| French Tech | 156 | 130 (–17%) |
125 (–20%) |
130 (–16.5%) |
55 (–65.1%) |
129 (–17.6%) |
136 (–13.2%) |
| Front-End Social | 36 | 34 (–3.7%) |
31 (–13.9%) |
35 (–3.1%) |
31 (–13.8%) |
34 (–5.6%) |
35 (–3.1%) |
| Frontend Dogma | 219 | 227 (+3.7%) |
211 (–3.5%) |
218 (–0.2%) |
224 (+2.3%) |
218 (0%) |
237 (+8.4%) |
| 78 | 74 (–5%) |
73 (–5.8%) |
77 (–0.8%) |
62 (–20%) |
75 (–3.7%) |
78 (–0.3%) |
|
| Ground News | 1511 | 1418 (–6.1%) |
1344 (–11.1%) |
n/a | 1393 (–7.8%) |
1416 (–6.3%) |
1498 (–0.9%) |
| HTML 3.2 | 123 | 119 (–3.1%) |
118 (–3.4%) |
121 (–1.3%) |
123 (+0.7%) |
119 (–3.3%) |
123 (+0.5%) |
| HTML Living Standard | 149 | 152 (+1.8%) |
148 (–0.7%) |
149 (–0.3%) |
153 (+2.5%) |
149 (–0.3%) |
155 (+3.8%) |
| IETF | 83 | 34 (–58.8%) |
32 (–61.5%) |
35 (–58.2%) |
33 (–59.9%) |
33 (–59.7%) |
34 (–58.5%) |
| Igalia | 49 | 37 (–25%) |
34 (–31.3%) |
37 (–25.5%) |
36 (–27.7%) |
36 (–26.9%) |
37 (–25.1%) |
| Ladybird | 24 | 23 (–4.6%) |
22 (–8.7%) |
23 (–5.5%) |
22 (–7.7%) |
23 (–6.6%) |
23 (–5.6%) |
| Leanpub | 343 | 328 (–4.2%) |
313 (–8.6%) |
n/a | 319 (–6.8%) |
326 (–5%) |
337 (–1.7%) |
| Legge Stanca | 17 | 10 (–43.8%) |
9 (–46.5%) |
10 (–42.7%) |
9 (–46.5%) |
10 (–40.5%) |
12 (–27.5%) |
| Mastodon | 34 | 32 (–4.9%) |
29 (–15.2%) |
33 (–3.3%) |
29 (–15.1%) |
32 (–5.7%) |
33 (–3.1%) |
| MDN | 110 | 67 (–39.2%) |
63 (–42.8%) |
68 (–37.8%) |
51 (–53.9%) |
65 (–40.5%) |
68 (–38.2%) |
| Mistral AI | 349 | 317 (–9.2%) |
301 (–13.8%) |
n/a | 309 (–11.7%) |
316 (–9.6%) |
346 (–1.1%) |
| Mondoweiss | 406 | 382 (–5.8%) |
369 (–8.9%) |
n/a | 363 (–10.4%) |
378 (–6.9%) |
392 (–3.4%) |
| Mozilla | 47 | 37 (–21%) |
33 (–30.4%) |
37 (–22.2%) |
33 (–29.5%) |
35 (–26.1%) |
36 (–23.1%) |
| Nielsen Norman Group | 102 | 84 (–17.2%) |
60 (–41.2%) |
85 (–16.7%) |
61 (–40.5%) |
84 (–17.8%) |
86 (–15.7%) |
| Opera | 231 | 173 (–25%) |
147 (–36.5%) |
176 (–23.9%) |
109 (–52.7%) |
170 (–26.3%) |
177 (–23.5%) |
| OSCE | 173 | 145 (–16%) |
136 (–21.3%) |
145 (–15.9%) |
137 (–20.7%) |
143 (–17.4%) |
145 (–15.7%) |
| Scrum Guide | 34 | 31 (–9%) |
31 (–10.4%) |
32 (–7.3%) |
31 (–8.3%) |
31 (–10.1%) |
31 (–7.8%) |
| Scrum.org | 209 | 179 (–14.5%) |
174 (–16.8%) |
178 (–14.9%) |
175 (–16.5%) |
177 (–15.3%) |
179 (–14.7%) |
| SELFHTML | 21 | 18 (–14.1%) |
17 (–19%) |
18 (–14.3%) |
18 (–15.8%) |
18 (–17.5%) |
18 (–14.1%) |
| SitePoint | 235 | 224 (–5%) |
211 (–10.5%) |
233 (–1%) |
212 (–9.9%) |
224 (–4.8%) |
234 (–0.7%) |
| Smashing Magazine | 280 | 280 (–0.3%) |
276 (–1.4%) |
280 (–0.1%) |
266 (–5%) |
278 (–0.9%) |
280 (0%) |
| Startup-Verband | 44 | 33 (–26.3%) |
31 (–30.7%) |
33 (–26.7%) |
32 (–28.7%) |
32 (–28.3%) |
33 (–26.3%) |
| TAZ | 450 | 406 (–9.8%) |
380 (–15.6%) |
n/a | 395 (–12.1%) |
405 (–10%) |
418 (–7.2%) |
| TetraLogical | 60 | 54 (–10.2%) |
50 (–16.9%) |
54 (–9.9%) |
50 (–16.5%) |
54 (–10.5%) |
54 (–9.7%) |
| TPGi | 181 | 136 (–24.9%) |
132 (–26.6%) |
142 (–21.6%) |
117 (–35.3%) |
141 (–21.9%) |
166 (–8.3%) |
| United Nations | 152 | 128 (–16.1%) |
114 (–25.4%) |
124 (–18.5%) |
85 (–43.9%) |
126 (–17.6%) |
131 (–13.9%) |
| UX Collective | 97 | 90 (–7.1%) |
88 (–9.5%) |
92 (–5.1%) |
88 (–8.9%) |
89 (–7.8%) |
96 (–0.9%) |
| Vivaldi | 91 | 80 (–12.1%) |
73 (–20.1%) |
81 (–11.2%) |
67 (–25.7%) |
79 (–12.7%) |
82 (–9.4%) |
| W3C | 50 | 39 (–22.6%) |
36 (–28.9%) |
39 (–23%) |
36 (–27.5%) |
38 (–24.3%) |
41 (–19.1%) |
| WordPress Blog | 201 | 164 (–18%) |
155 (–22.7%) |
174 (–13.2%) |
138 (–31.2%) |
172 (–14.5%) |
187 (–6.7%) |
| Sites processed (of sites overall) | 48/48 | 48/48 | 38/48 | 48/48 | 48/48 | 48/48 | |
| Average processing time | 35 ms | 62 ms | 1290 ms | 156 ms | 11 ms | 189 ms | |
| Average result (KB) | 374 | 340 (–9%) |
326 (–13%) |
361 (–3.5%) |
323 (–13.7%) |
337 (–9.9%) |
347 (–7.2%) |
Benchmarks last updated: Apr 4, 2026
- Minifiers:
- htmlcompressor.com incorrectly converts no-break spaces to spaces which can give an impression of greater effectiveness (last confirmed Apr 4, 2026).
- minify-html “invalidates” markup, notably by removing spaces in doctypes (
<!doctypehtml>) (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.