WOFF2 to TTF Desktop RecoveryReverse transformed WOFF2 tables via WASM Brotli (Fixture C)

WOFF2 to TTF Brotli Font Decompressor

Decompress shared-dictionary WOFF2 streams and reconstruct transformed glyf, loca, and hmtx tables into valid desktop TrueType files.

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

When proof-sans.woff2 (840 bytes) is decompressed in WebAssembly, how many glyphs and mapped code points are reconstructed into the 2,032-byte TrueType output?

Reconstructed SFNT Bytes
2032bytes
Restored Glyph Count
12glyphs
Restored cmap Mappings
11chars
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-to-ttf.v1 · woff2-to-ttf-restore · woff2-brotli-reverse-transform

Reversing WOFF2 Brotli Streams and Transformed TrueType Contour Streams

Why WOFF2 Requires Structural Table Reconstruction Beyond Brotli

Unlike WOFF 1.0, a WOFF2 file cannot be unpacked by simply running a generic Brotli decompressor over individual table slices. The W3C WOFF2 format concatenates all font tables into a single shared Brotli stream and applies specialized structural preprocessing to TrueType glyf and loca tables. Explicit glyph bounding boxes are omitted from simple contours, contour end-point arrays are packed into variable-length integer sub-streams, and loca offset arrays are stripped completely.

During WOFF2-to-TTF recovery, our WebAssembly decoder inflates the unified Brotli payload, parses the seven separate glyf sub-streams (nContour, nPoints, flags, glyph deltas, composite data, instructions, and bbox bitmaps), recalculates exact bounding boxes for simple and composite glyphs, rebuilds the loca index table according to head.indexToLocFormat, and normalizes all SFNT checksums.

  • Uses the standalone 288 KB woff2-encoder/decompress WebAssembly decoder module.
  • Reconstructs composite glyph component pointers so accented characters like Ā render identically.
  • Restores omitted hmtx left-side bearings when proportional transform version 1 was applied.
  • Normalizes head.checkSumAdjustment after glyf reconstruction so desktop installers never warn.

Common Questions & Answers

Why is a TTF restored from WOFF2 sometimes a few bytes different in size from the original TTF?

WOFF2 discards redundant explicit bounding boxes and re-encodes TrueType point delta flags canonically during transformation. The reconstructed TTF has 100% identical glyph geometry, metrics, and Unicode mappings even if canonical binary point encoding differs by a few bytes.

Does WOFF2 to TTF preserve variable font axes like wght and opsz?

Yes. OpenType variation tables including fvar, gvar, avar, HVAR, and STAT pass through the Brotli stream intact and are restored into the output SFNT directory.

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.