WOFF2 Brotli Stream InspectorInspect WOFF2 UIntBase128 table directory & transforms (Fixture C)

WOFF2 Compressed Directory & Transform Inspector

Audit WOFF2 48-byte headers, 6-bit known table tag indices, UIntBase128 original vs transformed lengths, and Brotli stream ratios.

Archival Desktop Font Recovery

Drop a .woff or .woff2 webfont to restore a desktop .ttf or .otf

Accepts .woff, .woff2, .ttf, .otf · Up to 15 MB · Your font stays on this device

Verified Sample · OFL-1.1Sample file: proof-sans.woff2 (840 B)

Verified Sample Result & Instant Demo

Try Sample File in 1 Click

How large is the shared Brotli payload inside proof-sans.woff2 (840 bytes) and how many SFNT tables carry active WOFF2 preprocessing transforms?

Brotli Stream Size
764bytes
Transformed Tables
2tables
Total Directory Entries
10tables
Cryptographic SHA-256 & Engine Provenance
Sample Input File
proof-sans.woff2 · 840 bytes · OFL-1.1
Browser Codec Engine
woff2-encoder/decompress 2.0.0
Input SHA-256 Digest
e4048fb4bd8fc7fa02475c64814dceb87cab074c4250dada3f30d798eb2f3f9e
Engine Artifact SHA-256
6910ba38d0a981513b297701d309fa2efc4f67a311815bcc4de5837085d2ee46
Reference Verification
fontTools 4.64.0
Schema & Preset ID
fonts.wofftottf.woff2-inspector.v1 · inspect-woff2-directory · woff2-uintbase128-directory

Decoding WOFF2 Flag Bytes, Known Tag Tables, and UIntBase128 Streams

Inside the Compact WOFF2 Variable-Length Directory

Traditional SFNT and WOFF 1.0 directories spend 16 to 20 fixed bytes per table entry. To shave overhead on micro-subsets, WOFF2 encodes each directory entry starting with a single flags byte: bits 0..5 index into a 63-entry lookup table of standard OpenType tags (such as cmap=0, head=1, glyf=10, loca=11), while bits 6..7 encode a two-bit transformation version.

Immediately following the flags byte, table lengths are encoded as big-endian base-128 variable-length integers (UIntBase128) where bit 7 acts as a continuation flag. Note an important spec inversion in W3C WOFF2 Section 4.2: for glyf and loca tables, transformation version 0 indicates the preprocessed transform is active (requiring an explicit transformLength field, which equals 0 for loca), whereas version 3 indicates a null pass-through.

  • Rejects illegal leading 0x80 bytes and 32-bit overflows in UIntBase128 sequences.
  • Flags whether glyf, loca, and hmtx streams use null or structural WOFF2 transforms.
  • Reports exact byte offset where the shared Brotli compressed data block begins.
  • Compares declared totalSfntSize against actual reconstructed SFNT output bytes.

Common Questions & Answers

Why does a transformed loca table show transformLength equal to 0 in WOFF2?

When glyf is transformed (version 0), glyph lengths are reconstructed directly from the unpacked glyf sub-streams, so WOFF2 transmits zero bytes for loca inside the Brotli stream.

How are custom non-standard OpenType tags stored in WOFF2?

When bits 0..5 of the table flags byte equal 63 (0x3F), four literal ASCII tag bytes immediately follow the flags byte before the UIntBase128 origLength.

100% Private In-Browser Processing

Verified local execution

  • Zero Cloud Uploads

    Your files stay on this device and are never sent to any remote server.

  • Instant Local Speed

    Runs directly on your device up to 15 MB with no upload queue.

  • No Account Needed

    Open a file, inspect your preview, and download immediately without signing up.

View Security Architecture
Execution Sandbox
Dedicated Web Worker
Post-Init Network
Locked (0 Egress)
Max File Budget
15 MB
Cross-Origin Isolation
Single-Thread WASM

After local WebAssembly initialization, Worker network APIs (fetch, XMLHttpRequest, WebSocket) are locked to prevent outbound data egress.