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%) | 26 (–17.4%) | 26 (–17%) | 26 (–16.5%) | 25 (–19.2%) | 26 (–16.3%) |
| A List Apart | 63 | 59 (–6.3%) | 57 (–8.8%) | 58 (–7.3%) | 58 (–8.2%) | 57 (–8.9%) | 58 (–7.4%) |
| Apple | 229 | 211 (–8.1%) | 204 (–11%) | 210 (–8.5%) | 209 (–9%) | 207 (–9.8%) | 209 (–8.7%) |
| BBC | 739 | 734 (–0.7%) | 728 (–1.5%) | n/a | 732 (–1%) | 729 (–1.5%) | 733 (–0.9%) |
| Bun | 461 | 451 (–2.2%) | 444 (–3.6%) | n/a | 454 (–1.5%) | 452 (–2%) | 455 (–1.3%) |
| CERN | 151 | 93 (–38.5%) | 81 (–46.1%) | 95 (–36.9%) | 91 (–39.4%) | 91 (–39.7%) | 92 (–38.7%) |
| CSS-Tricks | 171 | 159 (–6.9%) | 156 (–8.5%) | 157 (–7.9%) | 156 (–8.4%) | 155 (–8.8%) | 157 (–7.9%) |
| DeepSeek | 101 | 100 (–0.7%) | 95 (–6.4%) | 100 (–1.1%) | 100 (–1.4%) | 100 (–1.2%) | 100 (–1.1%) |
| DIN | 252 | 181 (–28.1%) | 176 (–30.1%) | 183 (–27.6%) | 182 (–28%) | 179 (–29%) | 182 (–27.8%) |
| DLR | 559 | 555 (–0.6%) | 553 (–1%) | n/a | 554 (–0.8%) | 553 (–1%) | 556 (–0.5%) |
| ECMAScript | 7318 | 6728 (–8.1%) | 6506 (–11.1%) | n/a | 6640 (–9.3%) | 6640 (–9.3%) | 6692 (–8.6%) |
| EDRi | 80 | 73 (–8%) | 73 (–8.3%) | 74 (–7%) | 73 (–7.9%) | 73 (–8.5%) | 74 (–7%) |
| EFF | 53 | 49 (–8.1%) | 47 (–11.9%) | 49 (–7.9%) | 48 (–10.1%) | 47 (–11.7%) | 48 (–9.8%) |
| European Alternatives | 49 | 33 (–33.1%) | 33 (–33.8%) | 33 (–32.9%) | 33 (–33.1%) | 33 (–33.7%) | 33 (–33.1%) |
| FAZ | 1383 | 1341 (–3%) | 1328 (–4%) | n/a | 1338 (–3.2%) | 1330 (–3.8%) | 1335 (–3.4%) |
| French Tech | 155 | 135 (–12.9%) | 133 (–14%) | 135 (–13.1%) | 134 (–13.3%) | 133 (–13.9%) | 135 (–13.1%) |
| Front-End Social | 36 | 34 (–3.7%) | 34 (–5.5%) | 35 (–3.1%) | 34 (–5.5%) | 34 (–5.6%) | 35 (–3.1%) |
| Frontend Dogma | 223 | 231 (+3.6%) | 223 (0%) | 222 (–0.2%) | 236 (+6%) | 222 (0%) | 241 (+8.3%) |
| 78 | 123 (+57.9%) | 77 (–0.6%) | 77 (–0.3%) | 77 (–0.8%) | 77 (–0.6%) | 77 (–0.3%) | |
| Ground News | 1719 | 1695 (–1.4%) | 1658 (–3.5%) | n/a | 1702 (–1%) | 1694 (–1.4%) | 1705 (–0.8%) |
| 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.6%) | 33 (–60.8%) | 35 (–58.1%) | 34 (–59.1%) | 33 (–59.7%) | 34 (–58.5%) |
| Igalia | 49 | 37 (–23.8%) | 35 (–29.4%) | 37 (–24.8%) | 37 (–25.3%) | 36 (–25.7%) | 37 (–25.2%) |
| Ladybird | 24 | 23 (–4.6%) | 22 (–7.4%) | 23 (–5.5%) | 23 (–6.1%) | 22 (–6.6%) | 23 (–5.6%) |
| Leanpub | 360 | 355 (–1.3%) | 348 (–3.3%) | n/a | 355 (–1.3%) | 352 (–2%) | 353 (–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.1%) | 33 (–2.9%) | 32 (–5.2%) | 32 (–5.2%) | 33 (–3%) |
| MDN | 110 | 67 (–39.1%) | 65 (–40.9%) | 68 (–37.8%) | 68 (–38%) | 65 (–40.4%) | 68 (–38.2%) |
| Mistral AI | 348 | 340 (–2.5%) | 338 (–2.8%) | n/a | 344 (–1.3%) | 339 (–2.6%) | 344 (–1.1%) |
| Mondoweiss | 394 | 392 (–0.7%) | 375 (–4.9%) | n/a | 379 (–3.9%) | 378 (–4.2%) | 381 (–3.4%) |
| Mozilla | 47 | 37 (–21%) | 36 (–24.3%) | 37 (–22.2%) | 36 (–23.8%) | 35 (–26.1%) | 36 (–23.1%) |
| Nielsen Norman Group | 101 | 84 (–16.5%) | 84 (–16.7%) | 85 (–16.1%) | 85 (–15.7%) | 84 (–17.2%) | 85 (–15.8%) |
| Opera | 231 | 178 (–22.8%) | 175 (–24.2%) | 176 (–23.6%) | 177 (–23.3%) | 175 (–24.3%) | 177 (–23.4%) |
| OSCE | 173 | 145 (–16%) | 144 (–16.4%) | 145 (–15.9%) | 146 (–15.7%) | 143 (–17.3%) | 146 (–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 | 210 | 180 (–14.4%) | 178 (–15.2%) | 179 (–14.9%) | 179 (–14.8%) | 178 (–15.2%) | 179 (–14.6%) |
| SELFHTML | 21 | 20 (–7.5%) | 18 (–17.3%) | 18 (–13.5%) | 18 (–14.4%) | 18 (–16.7%) | 18 (–14.1%) |
| SitePoint | 233 | 230 (–1.3%) | 231 (–1.1%) | 232 (–0.7%) | 231 (–0.9%) | 231 (–1.1%) | 232 (–0.7%) |
| Smashing Magazine | 292 | 292 (+0.2%) | 290 (–0.5%) | 292 (–0.1%) | 291 (–0.2%) | 291 (–0.4%) | 292 (0%) |
| Startup-Verband | 45 | 33 (–26.2%) | 32 (–29.1%) | 33 (–26.5%) | 33 (–27%) | 32 (–28%) | 33 (–26.2%) |
| TAZ | 438 | 414 (–5.6%) | 394 (–10.2%) | n/a | 405 (–7.6%) | 403 (–7.9%) | 407 (–7.2%) |
| TetraLogical | 60 | 54 (–10.1%) | 54 (–9.2%) | 54 (–9.8%) | 54 (–9.8%) | 53 (–10.3%) | 54 (–9.8%) |
| TPGi | 182 | 167 (–8.1%) | 164 (–9.6%) | 167 (–8.2%) | 165 (–9.1%) | 165 (–9.4%) | 167 (–8.2%) |
| United Nations | 152 | 131 (–13.6%) | 127 (–16.7%) | 131 (–13.7%) | 130 (–14.5%) | 129 (–15.2%) | 131 (–13.9%) |
| UX Collective | 99 | 143 (+44.4%) | 97 (–2.5%) | 99 (–0.7%) | 98 (–1.1%) | 98 (–1.4%) | 98 (–0.9%) |
| Vivaldi | 91 | 83 (–8.7%) | 81 (–10.5%) | 82 (–9.5%) | 82 (–9.8%) | 81 (–10.8%) | 82 (–9.4%) |
| W3C | 51 | 41 (–18.7%) | 40 (–20.7%) | 41 (–19.1%) | 41 (–19.4%) | 40 (–20.3%) | 41 (–19%) |
| WordPress Blog | 195 | 180 (–7.7%) | 177 (–9%) | 181 (–7.1%) | 180 (–7.7%) | 178 (–8.6%) | 181 (–7%) |
| Sites processed (of sites overall) | 49/49 | 49/49 | 39/49 | 49/49 | 49/49 | 49/49 | |
| Average processing time | 31 ms | 39 ms | 805 ms | 48 ms | 9 ms | 185 ms | |
| Average result (KB) | 371 | 347 (–6.5%) | 337 (–9.2%) | 360 (–3.1%) | 343 (–7.6%) | 342 (–8%) | 345 (–7.1%) |
| Site | Original Size (KB) | @swc/html | HTML Minifier Next | htmlcompressor.com | htmlnano | minify-html | minimize |
|---|---|---|---|---|---|---|---|
| Minifier Test | 31 | 24 (–23.3%) | 23 (–25.4%) | 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%) | 58 (–7.4%) |
| Apple | 229 | 211 (–8.2%) | 194 (–15.3%) | 210 (–8.5%) | 200 (–13%) | 207 (–9.8%) | 209 (–8.7%) |
| BBC | 739 | 700 (–5.3%) | 684 (–7.5%) | n/a | 692 (–6.4%) | 694 (–6.1%) | 733 (–0.9%) |
| Bun | 461 | 435 (–5.7%) | 420 (–8.8%) | n/a | 374 (–18.9%) | 436 (–5.3%) | 455 (–1.3%) |
| CERN | 151 | 93 (–38.6%) | 80 (–46.7%) | 95 (–36.9%) | 90 (–40.6%) | 90 (–40.1%) | 92 (–38.7%) |
| CSS-Tricks | 171 | 150 (–12.1%) | 126 (–26.1%) | 152 (–11.1%) | 116 (–32.1%) | 149 (–12.4%) | 157 (–7.9%) |
| DeepSeek | 101 | 96 (–5%) | 81 (–20.1%) | 96 (–5%) | 86 (–14.7%) | 96 (–5.4%) | 100 (–1.1%) |
| DIN | 252 | 175 (–30.7%) | 163 (–35.3%) | 176 (–30.5%) | 135 (–46.3%) | 174 (–31.1%) | 182 (–27.8%) |
| DLR | 559 | 525 (–6%) | 515 (–7.8%) | n/a | 510 (–8.7%) | 517 (–7.4%) | 556 (–0.5%) |
| ECMAScript | 7318 | 6726 (–8.1%) | 6504 (–11.1%) | n/a | 6637 (–9.3%) | 6638 (–9.3%) | 6692 (–8.6%) |
| EDRi | 80 | 71 (–11.3%) | 67 (–16.3%) | 72 (–9.6%) | 53 (–33.2%) | 70 (–11.6%) | 74 (–7%) |
| EFF | 53 | 47 (–11%) | 44 (–18.1%) | 48 (–10.2%) | 46 (–14.5%) | 47 (–12.6%) | 48 (–9.8%) |
| European Alternatives | 49 | 33 (–33.2%) | 31 (–37.7%) | 33 (–33%) | 31 (–37%) | 33 (–33.8%) | 33 (–33.1%) |
| FAZ | 1383 | 1335 (–3.5%) | 1295 (–6.3%) | n/a | 1224 (–11.5%) | 1324 (–4.3%) | 1335 (–3.4%) |
| French Tech | 155 | 129 (–17%) | 124 (–20%) | 129 (–16.5%) | 54 (–65.4%) | 128 (–17.6%) | 135 (–13.1%) |
| Front-End Social | 36 | 34 (–3.7%) | 31 (–13.9%) | 35 (–3.1%) | 31 (–13.8%) | 34 (–5.6%) | 35 (–3.1%) |
| Frontend Dogma | 223 | 231 (+3.7%) | 215 (–3.5%) | 222 (–0.2%) | 227 (+2%) | 222 (0%) | 241 (+8.3%) |
| 78 | 74 (–5.1%) | 73 (–5.8%) | 77 (–0.8%) | 62 (–20.1%) | 75 (–3.7%) | 77 (–0.3%) | |
| Ground News | 1719 | 1611 (–6.3%) | 1536 (–10.6%) | n/a | 1584 (–7.8%) | 1608 (–6.4%) | 1705 (–0.8%) |
| 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.9%) | 32 (–61.6%) | 35 (–58.2%) | 33 (–59.9%) | 33 (–59.8%) | 34 (–58.5%) |
| Igalia | 49 | 37 (–25.2%) | 33 (–31.7%) | 36 (–25.7%) | 35 (–27.9%) | 36 (–27.1%) | 37 (–25.2%) |
| Ladybird | 24 | 23 (–4.7%) | 22 (–8.7%) | 23 (–5.5%) | 22 (–7.7%) | 22 (–6.6%) | 23 (–5.6%) |
| Leanpub | 360 | 344 (–4.2%) | 329 (–8.5%) | n/a | 335 (–6.7%) | 342 (–5%) | 353 (–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.8%) | 29 (–15.2%) | 33 (–3.3%) | 29 (–15.1%) | 32 (–5.6%) | 33 (–3%) |
| MDN | 110 | 67 (–39.2%) | 63 (–42.8%) | 68 (–37.8%) | 51 (–53.9%) | 65 (–40.5%) | 68 (–38.2%) |
| Mistral AI | 348 | 316 (–9.3%) | 300 (–13.8%) | n/a | 307 (–11.7%) | 315 (–9.6%) | 344 (–1.1%) |
| Mondoweiss | 394 | 371 (–5.9%) | 359 (–9%) | n/a | 353 (–10.5%) | 367 (–7%) | 381 (–3.4%) |
| Mozilla | 47 | 37 (–21%) | 33 (–30.4%) | 37 (–22.2%) | 33 (–29.5%) | 35 (–26.1%) | 36 (–23.1%) |
| Nielsen Norman Group | 101 | 84 (–17.3%) | 59 (–41.4%) | 84 (–16.8%) | 60 (–40.6%) | 83 (–17.8%) | 85 (–15.8%) |
| Opera | 231 | 173 (–24.9%) | 147 (–36.5%) | 176 (–23.8%) | 109 (–52.6%) | 170 (–26.2%) | 177 (–23.4%) |
| OSCE | 173 | 145 (–16%) | 136 (–21.3%) | 145 (–15.9%) | 137 (–20.7%) | 143 (–17.4%) | 146 (–15.7%) |
| Scrum Guide | 34 | 31 (–9%) | 31 (–10.4%) | 32 (–7.3%) | 31 (–8.3%) | 31 (–10.1%) | 31 (–7.8%) |
| Scrum.org | 210 | 180 (–14.5%) | 175 (–16.8%) | 179 (–14.9%) | 175 (–16.6%) | 178 (–15.2%) | 179 (–14.6%) |
| SELFHTML | 21 | 18 (–14.1%) | 17 (–19%) | 18 (–14.2%) | 18 (–15.7%) | 18 (–17.5%) | 18 (–14.1%) |
| SitePoint | 233 | 222 (–5%) | 209 (–10.5%) | 231 (–1%) | 210 (–10%) | 222 (–4.8%) | 232 (–0.7%) |
| Smashing Magazine | 292 | 291 (–0.3%) | 288 (–1.3%) | 292 (–0.1%) | 278 (–4.8%) | 289 (–0.9%) | 292 (0%) |
| Startup-Verband | 45 | 33 (–26.3%) | 31 (–30.7%) | 33 (–26.7%) | 32 (–28.6%) | 32 (–28.2%) | 33 (–26.2%) |
| TAZ | 438 | 394 (–10.2%) | 368 (–16%) | n/a | 385 (–12.3%) | 394 (–10.2%) | 407 (–7.2%) |
| TetraLogical | 60 | 54 (–10.3%) | 49 (–17%) | 54 (–9.9%) | 50 (–16.4%) | 53 (–10.5%) | 54 (–9.8%) |
| TPGi | 182 | 137 (–24.9%) | 134 (–26.5%) | 143 (–21.5%) | 118 (–35.2%) | 142 (–21.9%) | 167 (–8.2%) |
| United Nations | 152 | 127 (–16.2%) | 113 (–25.5%) | 124 (–18.6%) | 85 (–44%) | 125 (–17.7%) | 131 (–13.9%) |
| UX Collective | 99 | 92 (–7.2%) | 90 (–9.5%) | 94 (–5.2%) | 90 (–8.9%) | 92 (–7.8%) | 98 (–0.9%) |
| Vivaldi | 91 | 80 (–12.1%) | 73 (–20.1%) | 81 (–11.2%) | 67 (–25.7%) | 79 (–12.7%) | 82 (–9.4%) |
| W3C | 51 | 39 (–22.5%) | 36 (–28.8%) | 39 (–22.9%) | 37 (–27.4%) | 39 (–24.1%) | 41 (–19%) |
| WordPress Blog | 195 | 159 (–18.5%) | 149 (–23.4%) | 168 (–13.7%) | 135 (–30.7%) | 166 (–14.8%) | 181 (–7%) |
| Sites processed (of sites overall) | 49/49 | 49/49 | 39/49 | 49/49 | 49/49 | 49/49 | |
| Average processing time | 36 ms | 63 ms | 1165 ms | 150 ms | 11 ms | 181 ms | |
| Average result (KB) | 371 | 338 (–9%) | 323 (–13%) | 358 (–3.6%) | 321 (–13.6%) | 335 (–9.9%) | 345 (–7.1%) |
Benchmarks last updated: Mar 22, 2026
- Minifiers:
- 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.