Zstandard
From Just Solve the File Format Problem
Revision as of 05:27, 23 October 2025 by Ross-spencer (Talk | contribs)
Zstandard, or Zstd, is a general-purpose compression algorithm and file format. It is designed to have a good balance between compression ratio, compression speed, and decompression speed.
Zstandard is able to use a "dictionary" format to make compression of files of an already known type more efficient.
Contents |
Identification
Since version 0.8.0 (August 2016[1]), the header is instead 28 b5 2f fd
[2].
Legacy magic numbers
Prior to 0.8.0 magic numbers were created for each new version, so for example 0.5.0 beggan with signature bytes 25 b5 2f fd
.
Magic numbers are listed in legacy header files in the Zstandard library.
Software
- Zstandard →
zstd
,unzstd
,zstdcat
Links
References
- ↑ https://github.com/facebook/zstd/releases/tag/v0.8.0
- ↑ https://github.com/facebook/zstd/blob/dev/lib/zstd.h, definition of ZSTD_MAGICNUMBER