---
title: "Introducing OpenZL: An Open Source Format-Aware Compression Framework"
description: "OpenZL is Meta's open source lossless compression framework for structured data."
url: "https://swe.quest/articles/introducing-openzl-an-open-source-format-aware-compression-framework-dcfc575219bed4e0"
canonical: "https://engineering.fb.com/2025/10/06/developer-tools/openzl-open-source-format-aware-compression-framework/"
source: "Meta Engineering"
published: "2025-10-06"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 11
tags: ["algorithms","performance","open-source","storage-systems"]
---

# Introducing OpenZL: An Open Source Format-Aware Compression Framework

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2025-10-06, 11 min read, Announcement. Original: [https://engineering.fb.com/2025/10/06/developer-tools/openzl-open-source-format-aware-compression-framework/](https://engineering.fb.com/2025/10/06/developer-tools/openzl-open-source-format-aware-compression-framework/)

## Summary

OpenZL is Meta's open source lossless compression framework for structured data. It applies a configurable graph of reversible transforms, such as array-of-structs to struct-of-arrays, delta, transpose and tokenize, to expose order before entropy coding. An offline trainer builds plans from SDDL format descriptions or parsers, and each frame embeds its resolved decode recipe, so one universal decoder handles every format and plan. On the Silesia sao file it reaches a 2.06x ratio at 340 MB/s compression and 1200 MB/s decompression, versus 1.31x for zstd -3 and 1.64x for xz -9. It falls back to zstd on unstructured text, and CSV parsing caps compression speed at about 64 MB/s.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Algorithms](https://swe.quest/tags/algorithms.md) (Architecture & design)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)
- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)

## Prerequisites

- lossless compression basics
- entropy coding
- columnar data layouts

## Keywords

OpenZL, Zstandard, SDDL, Silesia Corpus, Parquet, Managed Compression

## Related posts

- [Five Methods For Database Obfuscation](https://swe.quest/articles/five-methods-for-database-obfuscation-477824be1d934bc1.md): ClickHouse · 2023-02-16 · Hard · 23 min read · Analytics & OLAP, Privacy, Performance engineering, Testing, Algorithms
  ClickHouse needed publishable benchmark data that kept the properties driving analytical query performance in its private web analytics dataset: compression ratio, per-column and cross-column cardinality, and value distributions such as power laws.
- [Compressing nginx logs 170x with column storage](https://swe.quest/articles/compressing-nginx-logs-170x-with-column-storage-f7055f56d674ca49.md): ClickHouse · 2025-10-23 · Medium · 14 min read · Analytics & OLAP, Observability, Storage engines, Cost optimization
  Parsing nginx access logs into typed columns in ClickHouse and tuning storage raises compression from roughly 38x (ZSTD on the raw file) to about 178x on a 66.7M-line, 20 GB dataset.
- [Superpack: Pushing the limits of compression in Facebook’s mobile apps](https://swe.quest/articles/superpack-pushing-the-limits-of-compression-in-facebook-s-mobile-apps-cb66a7a2bfc6bd02.md): Meta Engineering · 2021-09-13 · Hard · 13 min read · Compilers, Algorithms, Mobile, Functional programming
  Superpack is Meta's asymmetric compressor that combines compiler analysis with data compression, cutting Android app size by over 20% on average versus default Zip compression for apps like Facebook, Instagram, WhatsApp and Messenger.
- [Composable data management at Meta](https://swe.quest/articles/composable-data-management-at-meta-c95cc910c8dc9e8f.md): Meta Engineering · 2024-05-22 · Easy · 9 min read · Query engines, Analytics & OLAP, System design, Open source
  Meta has been decomposing its many monolithic data engines (ETL, interactive, streaming, ML preprocessing) into reusable components: language frontend, IR, optimizer, execution library and runtime.
- [Speeding up LZ4 in ClickHouse](https://swe.quest/articles/speeding-up-lz4-in-clickhouse-dbbd26281ee7c0df.md): ClickHouse · 2023-04-12 · Hard · 32 min read · Performance engineering, Storage engines, C & C++, Algorithms, Analytics & OLAP
  LZ4 decompression often tops ClickHouse query profiles because highly compressible, cached columnar data shifts the cost onto CPU, yet storing data uncompressed proved impractical due to disk space.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
