# Juice

JavaScript library that inlines CSS rules into the style attributes of HTML, used for HTML emails and embeds.


Source: https://findsoftware.frbit.cloud/juice/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://automattic.github.io/juice/
- repository: https://github.com/Automattic/juice
- docs: https://github.com/Automattic/juice#readme

### Identity

- status: active
- maintainer: Automattic
- maintainerType: unknown
- parent: unknown
- firstRelease: 2011
- hqCountry: unknown

### Kind

- category: build-tool, email
- hosting: node
- language: javascript
- runtime: node
- runtimeMin: node 22
- 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: unknown
- renderingModes: not applicable
- installMethod: npm install

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 12
- latestReleaseDate: 2026-11-10

### Adoption

- githubStargazers: 3286
- packagistDownloads: not applicable
- npmWeeklyDownloads: 4634599
- contributors: 67
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 7645
- dependentPackages: 441

### Sources

- urls: https://automattic.github.io/juice/ (read 2026-11-16)
- urls: https://api.github.com/repos/Automattic/juice (read 2026-11-16)
- urls: https://raw.githubusercontent.com/Automattic/juice/master/README.md (read 2026-11-16)
- maintainer: https://raw.githubusercontent.com/Automattic/juice/master/LICENSE.md (read 2026-11-16)
- license: https://api.github.com/repos/Automattic/juice (read 2026-11-16)
- license: https://raw.githubusercontent.com/Automattic/juice/master/LICENSE.md (read 2026-11-16)
- licenseModel: https://raw.githubusercontent.com/Automattic/juice/master/LICENSE.md (read 2026-11-16)
- language: https://api.github.com/repos/Automattic/juice (read 2026-11-16)
- category: https://raw.githubusercontent.com/Automattic/juice/master/README.md (read 2026-11-16)
- runtime: https://raw.githubusercontent.com/Automattic/juice/master/README.md (read 2026-11-16)
- runtimeMin: https://raw.githubusercontent.com/Automattic/juice/v12.2.3/package.json (read 2026-11-16)
- installMethod: https://raw.githubusercontent.com/Automattic/juice/master/README.md (read 2026-11-16)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-11-01:2026-11-07/juice (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/juice (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/juice (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/Automattic/juice (read 2026-11-16)
- contributors: https://api.github.com/repos/Automattic/juice/contributors (read 2026-11-16)
- currentMajor: https://api.github.com/repos/Automattic/juice/releases/tags/v12.2.3 (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/Automattic/juice/releases/tags/v12.2.3 (read 2026-11-16)
- firstRelease: https://registry.npmjs.org/juice (read 2026-11-16)

## Notes

Juice is a JavaScript library that moves CSS rules into the style attribute of the HTML elements they match, for HTML emails and for embedding HTML in third-party websites. It takes an HTML string, a file or a cheerio document, and an options object controls how media queries, font faces, table attributes and template code blocks are handled. A command-line tool does the same for HTML files and whole directories.

The default module runs on Node.js. A separate browser entry exposes the inlining functions for code bundled for the browser, without the file and remote-resource functions. The project site hosts a web client for trying the library on a page of HTML.

## Worth knowing

Rules that use pseudo-classes such as :hover cannot be inlined, so they stay in a style tag.

---

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
