# Install woff2 with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Utilities to create and convert Web Open Font File (WOFF) files. Version 1.0.2 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:woff2
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install woff2
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install woff2
```

  Evidence: MacPorts ports tree: print/woff2/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add libwoff2common
```

  Evidence: Alpine Linux edge package indexes: libwoff2common from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install libwoff-dev
```

  Evidence: Debian stable package indexes: libwoff-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install woff2
```

  Evidence: Fedora Rawhide package metadata: woff2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#woff2
```

  Evidence: nixpkgs package indexes: pkgs/by-name/wo/woff2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S woff2
```

  Evidence: Arch Linux sync databases: woff2 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install libwoff2common1_0_2
```

  Evidence: openSUSE Tumbleweed package metadata: libwoff2common1_0_2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:woff2
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/woff2>
- **Version:** 1.0.2
- **Source summary:** Utilities to create and convert Web Open Font File (WOFF) files
- **Homepage:** <https://github.com/google/woff2>
- **Repository:** <https://github.com/google/woff2>
- **Upstream docs:** <https://github.com/google/woff2#readme>
- **License:** MIT
- **Source archive:** <https://github.com/google/woff2/archive/refs/tags/v1.0.2.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- woff2_compress (cli)
- woff2_decompress (cli)
- woff2_info (cli)
- woff2_compress (alias)
- woff2_decompress (alias)
- woff2_info (alias)

## Dependencies

- brotli

## Build dependencies

- cmake

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.0.2
- Local data: ok
- Upstream repository: https://github.com/google/woff2
- Upstream latest detected: v1.0.2 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

WOFF2 is both a W3C web-font packaging standard and, in package-manager form, Google's reference C++ encoder/decoder utilities for the format. The format improves on WOFF 1.0 by combining font-aware preprocessing with Brotli compression so web fonts can be transferred more compactly while remaining suitable for CSS @font-face deployment.

### Project history

The W3C publication history records WOFF2's First Public Working Draft on 8 May 2014, Working Draft in 2015, Candidate Recommendation Snapshot in 2016, Proposed Recommendation in January 2018, and Recommendation on 1 March 2018, with later Recommendation updates in 2021, 2022, and 2024. The current W3C Recommendation says WOFF2 was developed from experience with widely deployed WOFF 1.0 and was designed to reduce network bandwidth while keeping decompression fast enough for mobile devices.

Google's woff2 repository was created in October 2014 and provides the font compression reference code. Its README separates the Brotli reference code from the C++ font compression and decompression code, and the repository's releases show 1.0.0 and 1.0.1 in October 2017 followed by 1.0.2 in November 2017, just before the format reached W3C Recommendation status.

### Adoption history

WOFF2 moved from an optimization experiment into the default web-font format because it could be deployed alongside WOFF 1.0 in normal CSS. The W3C Evaluation Report explained that @font-face can list WOFF2 first and WOFF as a fallback without user-agent sniffing, and the current Recommendation states that WOFF2 is implemented in all major browsers and widely used on production websites.

The format's adoption was tied to measurable compression gains. The W3C Evaluation Report found Brotli-based WOFF2 had median gains of about 23.94% over WOFF1 on the Google Fonts TrueType corpus and 26.79% on an Adobe TrueType corpus, while keeping memory and decompression cost within the constraints needed for web deployment.

### How it is used

Package users normally run woff2_compress to convert TTF or OTF fonts into .woff2 files, woff2_decompress to round-trip them back to OpenType/SFNT data, and woff2_info to inspect the package. Web developers then reference .woff2 files from CSS @font-face rules, often with older formats as fallbacks only when legacy browser support is required.

### Why package nerds care

The package is important because it gives distributions a small, standalone implementation of a core web platform format. It is used by font build pipelines, web asset optimizers, browser tests, and packaging workflows that need reproducible conversion between OpenType fonts and the compressed format browsers actually fetch.

### Timeline

- 2014: WOFF2 First Public Working Draft published by W3C and Google's woff2 repository created.
- 2016: WOFF 2.0 Evaluation Report published as a W3C Working Group Note, comparing compression candidates and deployment constraints.
- 2017: Google woff2 1.0.x releases published.
- 2018: WOFF2 became a W3C Recommendation.
- 2024: W3C published an updated WOFF2 Recommendation and implementation report material.

### Related projects

- WOFF 1.0 is WOFF2's predecessor and remains the fallback format in many historical CSS examples.
- Brotli is the entropy-coding layer used by WOFF2; the W3C Recommendation records Google's royalty-free licensing commitment for Brotli use in the specification.
- FontTools implements WOFF2 support in Python and is listed in the W3C implementation report alongside Google's C++ woff2 implementation.

### Sources

- <https://api.github.com/repos/google/woff2>
- <https://api.github.com/repos/google/woff2/releases?per_page=100>
- <https://github.com/google/woff2>
- <https://w3c.github.io/woff/woff2/ImpRpt/>
- <https://www.w3.org/Fonts/WG/WOFF2ER/>
- <https://www.w3.org/TR/WOFF2/>
- <https://www.w3.org/standards/history/WOFF2/>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** woff2
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - libwoff-dev - 1.0.2-2+b2: normalized package name match | Debian stable package indexes: libwoff-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for converting fonts to WOFF 2.0 - development files | https://github.com/google/woff2
- Debian apt - libwoff1 - 1.0.2-2+b2: normalized package name match | Debian stable package indexes: libwoff1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for converting fonts to WOFF 2.0 | https://github.com/google/woff2
- Debian apt - woff2 - 1.0.2-2+b2: normalized package name match | Debian stable package indexes: woff2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | utilities for converting fonts to WOFF 2.0 | https://github.com/google/woff2
- Nix - woff2: normalized package name match | nixpkgs package indexes: pkgs/by-name/wo/woff2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libwoff-dev - 1.0.2-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libwoff-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library for converting fonts to WOFF 2.0 - development files | https://github.com/google/woff2
- Ubuntu apt - libwoff1 - 1.0.2-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libwoff1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library for converting fonts to WOFF 2.0 | https://github.com/google/woff2
- Ubuntu apt - woff2 - 1.0.2-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: woff2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | utilities for converting fonts to WOFF 2.0 | https://github.com/google/woff2
- apk - libwoff2common - 1.0.2-r4: normalized package name match | Alpine Linux edge package indexes: libwoff2common from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Web Open Font Format 2 reference implementation (common library) | https://github.com/google/woff2
- apk - libwoff2dec - 1.0.2-r4: normalized package name match | Alpine Linux edge package indexes: libwoff2dec from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Web Open Font Format 2 reference implementation (encoder library) | https://github.com/google/woff2
- apk - libwoff2enc - 1.0.2-r4: normalized package name match | Alpine Linux edge package indexes: libwoff2enc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Web Open Font Format 2 reference implementation (decoder library) | https://github.com/google/woff2
- apk - woff2 - 1.0.2-r4: normalized package name match | Alpine Linux edge package indexes: woff2 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Web Open Font Format 2 reference implementation | https://github.com/google/woff2
- apk - woff2-dev - 1.0.2-r4: normalized package name match | Alpine Linux edge package indexes: woff2-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Web Open Font Format 2 reference implementation (development files) | https://github.com/google/woff2
- dnf - woff2 - 1.0.2-25.fc44: normalized package name match | Fedora Rawhide package metadata: woff2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Web Open Font Format 2.0 library | https://github.com/google/woff2
- dnf - woff2-devel - 1.0.2-25.fc44: normalized package name match | Fedora Rawhide package metadata: woff2-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for woff2 | https://github.com/google/woff2
- dnf - woff2-tools - 1.0.2-25.fc44: normalized package name match | Fedora Rawhide package metadata: woff2-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Web Open Font Format 2.0 tools | https://github.com/google/woff2
- pacman - woff2 - 1.0.2-6: normalized package name match | Arch Linux sync databases: woff2 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Web Open Font Format 2 reference implementation | https://github.com/google/woff2


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [brotli](https://www.automicvault.com/pkg/brew/brotli/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [dvisvgm](https://www.automicvault.com/pkg/brew/dvisvgm/) - Popular package that depends on this formula.
- [fontforge](https://www.automicvault.com/pkg/brew/fontforge/) - Popular package that depends on this formula.
- [webkitgtk](https://www.automicvault.com/pkg/brew/webkitgtk/) - Popular package that depends on this formula.
- [advancecomp](https://www.automicvault.com/pkg/brew/advancecomp/) - Shares av.db curated category or tags: cli, compression, developer-tools.
- [bcal](https://www.automicvault.com/pkg/brew/bcal/) - Shares av.db curated category or tags: cli, conversion, developer-tools.
- [bsdconv](https://www.automicvault.com/pkg/brew/bsdconv/) - Shares av.db curated category or tags: cli, conversion, developer-tools.
- [dmg2img](https://www.automicvault.com/pkg/brew/dmg2img/) - Shares av.db curated category or tags: cli, conversion, developer-tools.
- [exomizer](https://www.automicvault.com/pkg/brew/exomizer/) - Shares av.db curated category or tags: cli, compression, developer-tools.
- [figlet](https://www.automicvault.com/pkg/brew/figlet/) - Shares av.db curated category or tags: cli, developer-tools, fonts.
- [ttf2eot](https://www.automicvault.com/pkg/brew/ttf2eot/) - Local package facts share a topical domain. Shared terms: cli, conversion, convert, developer, developer-tools.
- [elf2uf2-rs](https://www.automicvault.com/pkg/brew/elf2uf2-rs/) - Local package facts share a topical domain. Shared terms: cli, conversion, convert, developer, developer-tools.
- [slugify](https://www.automicvault.com/pkg/brew/slugify/) - Local package facts share a topical domain. Shared terms: cli, convert, developer, developer-tools, file.

## Combined YAML source

View the package source record on GitHub. [combined/woff2.yml](https://github.com/automic-vault/db/blob/main/combined/woff2.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
