# Premailer

Ruby gem that makes CSS inline in HTML email, converts links and warns about CSS that email clients do not support.


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

## Record

### Links

- home: https://premailer.github.io/premailer/
- repository: https://github.com/premailer/premailer
- docs: https://premailer.github.io/premailer/

### Identity

- status: active
- maintainer: Alex Dunae
- maintainerType: unknown
- parent: unknown
- firstRelease: 2009
- hqCountry: unknown

### Kind

- category: email, build-tool
- hosting: ruby
- language: ruby
- runtime: ruby
- runtimeMin: ruby 3.3
- 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: gem

### License

- licenseModel: open-source
- license: BSD-3-Clause

### Releases

- currentMajor: 1
- latestReleaseDate: 2026-11-01

### Adoption

- githubStargazers: 2416
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 102
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 5079
- dependentPackages: 51

### Sources

- urls: https://premailer.github.io/premailer/ (read 2026-11-16)
- urls: https://api.github.com/repos/premailer/premailer (read 2026-11-16)
- urls: https://premailer.github.io/premailer/ (read 2026-11-16)
- maintainer: https://github.com/premailer/premailer/blob/v1.33.0/LICENSE.md (read 2026-11-16)
- firstRelease: https://rubygems.org/api/v1/versions/premailer.json (read 2026-11-16)
- category: https://github.com/premailer/premailer/blob/v1.33.0/premailer.gemspec (read 2026-11-16)
- language: https://api.github.com/repos/premailer/premailer (read 2026-11-16)
- runtime: https://github.com/premailer/premailer/blob/v1.33.0/premailer.gemspec (read 2026-11-16)
- runtimeMin: https://github.com/premailer/premailer/blob/v1.33.0/premailer.gemspec (read 2026-11-16)
- installMethod: https://github.com/premailer/premailer/blob/v1.33.0/README.md (read 2026-11-16)
- license: https://github.com/premailer/premailer/blob/v1.33.0/premailer.gemspec (read 2026-11-16)
- licenseModel: https://github.com/premailer/premailer/blob/v1.33.0/premailer.gemspec (read 2026-11-16)
- currentMajor: https://rubygems.org/api/v1/gems/premailer.json (read 2026-11-16)
- latestReleaseDate: https://rubygems.org/api/v1/gems/premailer.json (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/premailer/premailer (read 2026-11-16)
- contributors: https://api.github.com/repos/premailer/premailer/contributors?per_page=1 (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/premailer (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/premailer (read 2026-11-16)

## Notes

Premailer is a Ruby gem that prepares HTML email for delivery. Its [documentation](https://premailer.github.io/premailer/) says that CSS should be inline in HTML email, and the gem moves CSS styles into inline style attributes. It also converts relative paths to absolute ones, checks CSS properties against what email clients support, and can write a plain text version of the HTML. A Ruby application passes it a URL or an HTML string and gets back the HTML with inline styles.

## Worth knowing

Remote stylesheets that resolve to loopback or private addresses are dropped unless the caller allows local network access. CSS variables stay as variable calls in the output, and a separate build step is needed to replace them with their values.

---

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
