WavPack

On this page 7

WavPack is an open-source audio compression format that supports lossless, lossy and hybrid modes within a single codec. Among audio formats & codecs, its distinguishing feature is the hybrid mode, which produces a compact lossy file plus a separate correction file that, when combined, reconstructs the original audio bit for bit.

Created by David Bryant and first released in 1998, WavPack uses the .wv extension for its main files and .wvc for correction files. It handles integer audio up to 32 bits, 32-bit floating-point audio, DSD and multichannel layouts, which makes it attractive for archiving and for high-resolution libraries.

How WavPack compresses audio

WavPack reduces file size by predicting each sample from previous samples and storing only the difference between the prediction and the real value. These differences, called residuals, are usually much smaller than the samples themselves and can be coded with fewer bits.

The encoder first applies joint stereo decorrelation, converting left and right channels into forms that remove shared content. It then runs a cascade of adaptive decorrelation filters, which continuously adjust their coefficients to the signal, and finally encodes the residuals with an adaptive entropy coder related to Golomb-Rice coding.

Unlike block-based codecs that compute fixed filters per frame, WavPack’s filters adapt sample by sample. This design gives good compression on difficult material while keeping decoding light enough for portable players and older hardware.

Compression efficiency depends heavily on the material. Sparse acoustic recordings with quiet passages often shrink to about half their size, while dense, heavily limited masters with constant high-frequency energy compress far less, because their residuals remain large. High-resolution files at 96 kHz frequently compress better in percentage terms, since the ultrasonic band contains little real information.

Lossless, lossy and hybrid modes

WavPack offers three ways to store the same signal, and the choice determines whether the output is a perfect copy. In every mode, the bitstream and decoder are the same, so any WavPack player can open all three.

ModeFiles producedTypical bitrate for CD audioResult on decoding
Lossless.wv onlyAbout 55-70% of the original sizeBit-identical to the source
Lossy.wv onlySet by the user, often 256-384 kbpsClose approximation of the source
Hybrid.wv and .wvcLossy part plus correction dataLossy alone, lossless when combined
WavPack operating modes

In hybrid mode the lossy .wv file plays on its own for portable devices, while the .wvc correction file stays on the archive drive. Placing both files side by side restores mathematically lossless playback, so a single encode serves both purposes without keeping a second copy of the music.

WavPack’s lossy mode does not use a psychoacoustic model like MP3 or AAC. It quantizes residuals at a fixed or adaptive precision, so it needs higher bitrates for transparency, but its artifacts are a form of added noise rather than the pre-echo or band-limiting typical of perceptual codecs.

Encoder settings and their trade-offs

The reference encoder exposes a small set of options that balance file size against encoding and decoding speed. The default setting is a sensible choice for most libraries, and higher modes give modest additional savings.

OptionEffect on sizeEffect on speedWhen to use
Fast mode (-f)Slightly larger filesFastest encode and decodeLow-power players, quick conversion
DefaultBalancedFastGeneral archiving
High mode (-h)About 1-2% smallerSlower decodeDesktop listening
Very high mode (-hh)Smallest standard filesSlowest decodeLong-term archives
Extra processing (-x1 to -x6)Further small gainsSlower encode onlyOne-time archive encodes
Main encoder options

The -x options search for better filter settings during encoding but do not slow decoding, which makes them a useful choice when files are encoded once and played many times. Integrity is protected by per-block checksums and an optional MD5 hash of the original audio, which verification tools compare after decoding.

WavPack compared with other lossless formats

WavPack sits alongside FLAC, ALAC and Monkey’s Audio as a general-purpose lossless format. Compression ratios between these codecs usually differ by only a few percent, so the practical differences lie in features and device support.

FormatHybrid modeFloating-point audioDevice support
WavPackYesYesModerate, mainly software players
FLACNoNoVery broad, including hardware
ALACNoNoStrong in Apple ecosystem
Monkey’s AudioNoNoLimited, slow to decode
Lossless codecs compared

The deciding advantages of WavPack are native 32-bit float support, which preserves mixes exported from a digital audio workstation without conversion, and DSD storage in compressed form. Its weakness is that hardware playback support is narrower than for FLAC, especially in cars and consumer streaming devices.

Metadata, containers and practical limitations

WavPack files store tags in the APEv2 tag format, with ID3v1 also readable. Tag support is solid in desktop players, but some software expects Vorbis comments or ID3v2, so tag compatibility should be tested before converting a large library.

  • Hybrid file pairs must stay together: losing the .wvc file permanently leaves only the lossy version.
  • Not all players read correction files, so lossless playback from a hybrid pair depends on software support.
  • Matroska and other containers can carry WavPack streams, but direct .wv files remain the most compatible.
  • Lossy mode is not a replacement for Opus or AAC at low bitrates, where perceptual codecs are far more efficient.

Understanding it simply

WavPack is a way of shrinking music files without losing any sound, or of making them even smaller with a tiny loss of quality. Its special trick is that it can split a recording into two pieces.

The first piece is a smaller file that sounds very good on its own, ideal for a phone. The second piece holds the missing details. Put them together and the original recording comes back exactly, a bit like a jigsaw puzzle whose last pieces are kept in a separate box.

Applied in practice

A radio archive digitizes several thousand hours of tape at 24-bit, 96 kHz. Engineers encode the transfers with WavPack in hybrid mode, setting the lossy part to about 400 kbps for stereo material, and verify every file against its stored MD5 hash.

The compact .wv files go to a shared server where producers preview and select clips quickly. The .wvc correction files stay on the long-term storage system together with the main files, so whenever a program needs broadcast-quality audio, the combined pair restores the original transfer exactly. The archive saves roughly 40% of the storage a WAV collection would need while keeping a fast preview library and a fully lossless master.