Free WOFF2 sample, test and dummy files (.woff2)
Brotli-compressed W3C Web Open Font Format 2.0 (.woff2) web font fixture. Use this sample to test CSS @font-face delivery, Content-Security-Policy font-src directives, CDN caching, and font decompression pipelines.
Quick facts: .woff2 format
| Extension | .woff2 |
|---|---|
| Full name | Web Open Font Format 2.0 |
| MIME type | font/woff2 |
| Category | Fonts |
| Compression / Encoding | Lossless transformed sfnt tables with Brotli compression |
| Magic bytes (signature) | 77 4F 46 32 ('wOF2' at byte offset 0) |
| Specification | W3C Recommendation: WOFF File Format 2.0 (2018 / 2024) |
Download sample WOFF2 files
Every file below is a spec-compliant .woff2 fixture generated deterministically for automated and manual testing. Verify the exact byte count and SHA-256 digest after downloading, or open the custom-size file generator to build additional fixtures in your browser.
| File | Size | Variant & contents | SHA-256 checksum | Download |
|---|---|---|---|---|
| sample-font-web.woff2 | 472 bytes472 bytes | WOFF2 Brotli-compressed web font (.woff2) for @font-face and CSP testing | 2055391eb1c285472b67a8869aaea264b2e9c9639db8244d5afb5a7420748735 |
Download WOFF2 |
What is a WOFF2 file?
Web Open Font Format 2.0 (WOFF2) is the W3C standard packaging format for delivering fonts on the web. Developed to supersede WOFF 1.0 (which simply applied zlib/DEFLATE compression to each individual OpenType table), WOFF2 first applies font-specific preprocessing transforms to the glyf and loca tables—eliminating redundant bounding-box coordinates and reconstructing the index table—and then compresses all font tables together as a single shared Brotli stream. That combined approach reduces web font file sizes by 30% to 50% compared to raw TTF files.
Every WOFF2 file starts with a 48-byte header whose first four bytes are the ASCII signature wOF2 (hexadecimal 77 4F 46 32), followed by the underlying flavor signature (00 01 00 00 for TrueType or OTTO for CFF), total file length, table count, uncompressed size, and compressed Brotli stream length.
How to open a .woff2 file on Windows, macOS, Linux, Android and iOS
- Web Browsers: Supported natively by Chrome, Edge, Firefox, Safari (macOS and iOS), and Android WebView via CSS
@font-face { src: url('sample-font-web.woff2') format('woff2'); }. - Python & CLI Tools:
fontTools.ttLib.TTFont('sample-font-web.woff2')or Google'swoff2_decompressCLI utility restores the original.ttffile. - Font Editors: FontForge and BirdFont import WOFF2 files directly.
What to test with WOFF2 sample files
- Browser OpenType Sanitizer & Brotli decoder check: Unlike images, browsers refuse to render a WOFF2 file if its reconstructed sfnt directory or Brotli stream is truncated by even 1 byte. Use
sample-font-web.woff2to test CDN compression bypass rules (never double-compress WOFF2 with HTTP gzip/brotli). - CSP and CORS font loading: Verify that your static asset server sends
Content-Type: font/woff2,Cache-Control: public, max-age=31536000, immutable, and appropriateAccess-Control-Allow-Originheaders when serving fonts from a subdomain.
Common problems when handling .woff2 files
A frequent misconfiguration on web servers and CDNs is missing the font/woff2 MIME mapping, causing the server to send application/octet-stream or attempt on-the-fly gzip compression on an already Brotli-compressed file. Another common mistake is trying to install a .woff2 file directly into Windows Fonts or macOS Font Book; desktop operating systems require decompressed .ttf or .otf files.
Need to convert or inspect a file right away? Use ConvertFerry Web Utilities or drop any local file into our in-browser Magic-Byte File Inspector.
Related formats and testing resources
Frequently asked questions
- How do I identify a WOFF2 file from its magic bytes?
- The first four bytes of every WOFF2 file are 77 4F 46 32, which spells 'wOF2' in ASCII. By contrast, a WOFF 1.0 file starts with 77 4F 46 46 ('wOFF').
- Should I configure Nginx or an edge proxy to gzip .woff2 files?
- No. WOFF2 already uses high-ratio Brotli compression internally. Applying HTTP gzip or Brotli on top wastes CPU cycles and can slightly increase payload size.
- Do I still need WOFF 1.0 or EOT fallback fonts for modern browsers?
- Every major browser released since 2017 (Chrome 36+, Firefox 39+, Edge 14+, Safari 10+, iOS 10+) supports WOFF2 natively, so WOFF2 alone covers over 98% of active web traffic.
- How was sample-font-web.woff2 created?
- It was compiled directly from our deterministic TrueType test font using fontTools.ttLib.woff2 with Brotli compression.