# html-minifier-terser

JavaScript HTML minifier that also minifies inline CSS and JavaScript, usable from the command line and from Node.js.


Source: https://findsoftware.frbit.cloud/html-minifier-terser/
Last reviewed: 2026-10-28
Listed since: 2026-10-28

## Record

### Links

- home: https://terser.org/html-minifier-terser/
- repository: https://github.com/terser/html-minifier-terser
- docs: https://github.com/terser/html-minifier-terser/blob/v7.2.0/README.md

### Identity

- status: active
- maintainer: Daniel Ruf
- maintainerType: unknown
- parent: unknown
- firstRelease: 2019
- hqCountry: unknown

### Kind

- category: build-tool
- hosting: not applicable
- language: javascript
- runtime: node
- runtimeMin: node 14
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: local
- renderingModes: not applicable
- installMethod: npm

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 7
- latestReleaseDate: 2023-04-11

### Adoption

- githubStargazers: 482
- packagistDownloads: not applicable
- npmWeeklyDownloads: 23140394
- contributors: 95
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 1213814
- dependentPackages: 463

### Sources

- urls: https://api.github.com/repos/terser/html-minifier-terser (read 2026-10-28)
- urls: https://terser.org/html-minifier-terser/ (read 2026-10-28)
- urls: https://github.com/terser/html-minifier-terser/blob/v7.2.0/README.md (read 2026-10-28)
- maintainer: https://github.com/terser/html-minifier-terser/blob/v7.2.0/package.json (read 2026-10-28)
- language: https://api.github.com/repos/terser/html-minifier-terser (read 2026-10-28)
- category: https://github.com/terser/html-minifier-terser/blob/v7.2.0/README.md (read 2026-10-28)
- runtime: https://github.com/terser/html-minifier-terser/blob/v7.2.0/package.json (read 2026-10-28)
- runtimeMin: https://github.com/terser/html-minifier-terser/blob/v7.2.0/package.json (read 2026-10-28)
- runsAs: https://github.com/terser/html-minifier-terser/blob/v7.2.0/README.md (read 2026-10-28)
- installMethod: https://github.com/terser/html-minifier-terser/blob/v7.2.0/README.md (read 2026-10-28)
- installMethod: https://github.com/terser/html-minifier-terser/blob/v7.2.0/README.md (read 2026-10-28)
- license: https://github.com/terser/html-minifier-terser/blob/v7.2.0/package.json (read 2026-10-28)
- licenseModel: https://github.com/terser/html-minifier-terser/blob/v7.2.0/LICENSE (read 2026-10-28)
- firstRelease: https://api.github.com/repos/terser/html-minifier-terser/releases (read 2026-10-28)
- currentMajor: https://api.github.com/repos/terser/html-minifier-terser/releases (read 2026-10-28)
- latestReleaseDate: https://api.github.com/repos/terser/html-minifier-terser/releases (read 2026-10-28)
- githubStargazers: https://api.github.com/repos/terser/html-minifier-terser (read 2026-10-28)
- contributors: https://api.github.com/repos/terser/html-minifier-terser/contributors (read 2026-10-28)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-09-28:2026-10-04/html-minifier-terser (read 2026-10-28)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/html-minifier-terser (read 2026-10-28)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/html-minifier-terser (read 2026-10-28)

## Notes

html-minifier-terser is a JavaScript HTML minifier. The npm package provides a command line tool and a Node.js function: the command line tool is installed globally with `npm install html-minifier-terser -g`, and the Node.js package is installed with `npm install html-minifier-terser`. Besides the markup, the package can minify the CSS and JavaScript inside a page, so it runs in a build step or on a developer's machine rather than on the live site.

The package describes itself as a fork of html-minifier, the earlier project by kangax. The [README](https://github.com/terser/html-minifier-terser/blob/v7.2.0/README.md) lists the options and the command line usage.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
