APE (Monkey's Audio)
A lossless audio compression format achieving among the highest compression ratios of any lossless codec, at the cost of CPU intensity and limited compatibility.
You are a file format specialist with deep expertise in APE (Monkey's Audio) lossless audio format. You understand its neural network prediction algorithm, range coding entropy compression, the various compression levels from Fast to Insane, APEv2 tagging, and the format's unique position offering the highest compression ratios among lossless codecs at the cost of CPU intensity and limited compatibility. You can advise on APE usage, CUE sheet splitting, conversion to more widely supported formats, and the practical tradeoffs between compression ratio and ecosystem support. ## Key Points 1. **Neural network prediction** — A unique approach using a simple neural network to predict audio samples, which generally produces smaller residuals than the linear prediction used by FLAC 2. **Range coding** — Arithmetic-style entropy coding for the residuals (more efficient than Rice coding) 3. **Stereo decorrelation** — Mid-side processing to exploit interchannel redundancy - **Windows**: foobar2000 (excellent support), Winamp, AIMP, MusicBee - **macOS**: VLC (decode only), foobar2000 (now available on macOS) - **Linux**: VLC, DeaDBeeF, mpv (via FFmpeg decode-only) - **Mobile**: Poweramp (Android), AIMP (Android) - **Monkey's Audio (official)**: Windows GUI application from monkeysaudio.com - Command line: `MAC.exe input.wav output.ape -c2000` (Normal) - Levels: `-c1000` (Fast), `-c2000` (Normal), `-c3000` (High), `-c4000` (Extra High), `-c5000` (Insane) - **foobar2000**: Convert > APE encoder - **dBpoweramp**: Supports APE encoding on Windows
skilldb get file-formats-skills/APE (Monkey's Audio)Full skill: 173 linesYou are a file format specialist with deep expertise in APE (Monkey's Audio) lossless audio format. You understand its neural network prediction algorithm, range coding entropy compression, the various compression levels from Fast to Insane, APEv2 tagging, and the format's unique position offering the highest compression ratios among lossless codecs at the cost of CPU intensity and limited compatibility. You can advise on APE usage, CUE sheet splitting, conversion to more widely supported formats, and the practical tradeoffs between compression ratio and ecosystem support.
APE — Monkey's Audio Lossless
Overview
Monkey's Audio (APE) is a lossless audio compression algorithm and file format developed by Matt Ashland, first released in 2000. It consistently achieves some of the highest compression ratios among lossless audio codecs — typically 5-15% better than FLAC — but at the cost of significantly higher CPU requirements for both encoding and decoding, and much more limited platform and hardware support.
The format gained popularity in the early 2000s, particularly in Asian markets (China, Japan, Korea) and among audiophile communities, where it was widely used for CD ripping and lossless music sharing. APE files are frequently distributed alongside CUE sheets, where a single APE file contains an entire album and the CUE sheet defines track boundaries.
Monkey's Audio was proprietary freeware until version 3.99, when the source code was released under a custom license. The license allows free use but places restrictions on redistribution and derivative works, which has limited its inclusion in open-source projects like FFmpeg (decode-only support) and mainstream Linux distributions.
Core Philosophy
Monkey's Audio (APE) pursues a single goal with unusual intensity: maximum lossless compression ratio. Where FLAC and ALAC balance compression efficiency against decode speed and streaming capability, APE pushes compression as far as possible, accepting slower encoding and decoding as the tradeoff. This makes APE the right choice when storage savings matter more than CPU efficiency or real-time playback flexibility.
APE's compression advantage over FLAC is real but modest — typically 5-10% smaller files. Whether that margin justifies APE's slower decoding, limited hardware support, and smaller tooling ecosystem depends entirely on your use case. For archival storage of large music collections where disk space is constrained and files are rarely accessed, APE's extra compression can be worthwhile. For playback, streaming, or any workflow requiring broad compatibility, FLAC is the more practical choice.
APE is a niche format in a world that has largely standardized on FLAC for lossless audio. Use it when you have a specific reason to — audiophile archival workflows that value maximum compression, compatibility with existing APE collections, or personal preference — but default to FLAC for new projects.
Technical Specifications
| Property | Details |
|---|---|
| File Extension | .ape |
| MIME Type | audio/x-ape, audio/ape (not officially registered) |
| Codec | Monkey's Audio |
| Compression | Lossless |
| Compression Ratio | ~35-55% of original PCM (5-15% smaller than FLAC typically) |
| Sample Rates | 8 kHz to 192 kHz |
| Bit Depth | 8, 16, 24 bits per sample |
| Channels | 1 (mono) or 2 (stereo) |
| Metadata | APEv2 tags (flexible key=value, supports binary data including cover art) |
| Max File Size | No inherent limit |
Compression Levels
| Level | Compression | Encode Speed | Decode Speed | Notes |
|---|---|---|---|---|
| Fast | Least compressed | Fastest | Fast | Comparable to FLAC |
| Normal | Good balance | Moderate | Moderate | Default setting |
| High | Better compression | Slow | Moderate | Commonly used |
| Extra High | More compression | Very slow | Slower | Diminishing returns |
| Insane | Maximum compression | Extremely slow | Slow | Very CPU intensive |
Compression Comparison (Typical CD Audio)
| Codec | Ratio (% of original) |
|---|---|
| Monkey's Audio (High) | ~52% |
| Monkey's Audio (Insane) | ~48% |
| FLAC (level 8) | ~57% |
| ALAC | ~58% |
| WavPack (High) | ~55% |
How It Works
Monkey's Audio uses:
- Neural network prediction — A unique approach using a simple neural network to predict audio samples, which generally produces smaller residuals than the linear prediction used by FLAC
- Range coding — Arithmetic-style entropy coding for the residuals (more efficient than Rice coding)
- Stereo decorrelation — Mid-side processing to exploit interchannel redundancy
The neural network prediction is what gives APE its compression advantage but also its CPU cost.
How to Work With It
Opening / Playing
- Windows: foobar2000 (excellent support), Winamp, AIMP, MusicBee
- macOS: VLC (decode only), foobar2000 (now available on macOS)
- Linux: VLC, DeaDBeeF, mpv (via FFmpeg decode-only)
- Mobile: Poweramp (Android), AIMP (Android)
Creating / Encoding
- Monkey's Audio (official): Windows GUI application from monkeysaudio.com
- Command line:
MAC.exe input.wav output.ape -c2000(Normal) - Levels:
-c1000(Fast),-c2000(Normal),-c3000(High),-c4000(Extra High),-c5000(Insane)
- Command line:
- foobar2000: Convert > APE encoder
- dBpoweramp: Supports APE encoding on Windows
Note: FFmpeg can decode APE but cannot encode it due to licensing restrictions.
Converting
- To WAV:
ffmpeg -i input.ape output.wav - To FLAC:
ffmpeg -i input.ape -codec:a flac output.flac(lossless-to-lossless) - To MP3:
ffmpeg -i input.ape -codec:a libmp3lame -V 0 output.mp3
Splitting APE + CUE
APE files are commonly distributed as full-album single files with CUE sheets:
- foobar2000: Open the CUE file, select all tracks, right-click > Convert
- Medieval CUE Splitter: Dedicated Windows tool
- shnsplit (Linux):
shnsplit -f album.cue -o flac album.ape
Common Use Cases
- Lossless music archival (particularly in Asian markets)
- CD ripping with maximum compression
- Full-album lossless distribution (APE + CUE sheet)
- Audiophile music collections where storage is a concern
- Source format for transcoding to other lossless or lossy formats
Pros & Cons
Pros
- Among the best compression ratios of any lossless codec
- Bit-perfect lossless reconstruction
- Free to use (freeware)
- APEv2 tags support rich metadata including cover art
- Good Windows player support (foobar2000, MusicBee, AIMP)
- Actively maintained with regular updates
- Can save meaningful storage vs. FLAC on large libraries
Cons
- Very high CPU usage for decoding, especially at higher compression levels
- Not seekable in some implementations (seeking requires decoding from nearest frame)
- Stereo only — no multichannel support
- Restrictive license prevents inclusion in many open-source projects
- FFmpeg supports decode only; no encoding
- Poor or no support on Apple platforms (macOS, iOS)
- No web browser support
- Limited hardware player support (very few DAPs or streamers support APE)
- Error-prone: a single bit error can corrupt the rest of the file (no error resilience)
- No built-in integrity verification like FLAC's MD5
- Format is essentially single-developer; future uncertain if development stops
Compatibility
| Platform | Support |
|---|---|
| Windows | Good (foobar2000, AIMP, MusicBee, Winamp) |
| macOS | VLC (decode only); very limited |
| Linux | FFmpeg decode; VLC, DeaDBeeF |
| iOS | Essentially unsupported |
| Android | Poweramp, AIMP, some native players |
| Web Browsers | Not supported |
| Hardware | Very few devices; some Chinese-market DAPs |
| Streaming | Not used by any streaming service |
Related Formats
- FLAC — Open lossless codec; slightly worse compression but vastly better compatibility
- ALAC — Apple's lossless; slightly worse compression, Apple ecosystem native
- WavPack — Lossless codec with hybrid mode; good compression, better compatibility than APE
- TAK — Tom's Lossless Audio Kompressor; similar compression to APE with better features
- OptimFROG — Another high-compression lossless codec; even less compatible
- WAV — Uncompressed source format
Practical Usage
- Splitting APE + CUE albums into individual tracks: Use
shnsplit -f album.cue -o flac album.apeon Linux or foobar2000's converter on Windows to split a single-file album APE into individual FLAC tracks with proper metadata. - Converting APE libraries to FLAC: Batch convert with
for f in *.ape; do ffmpeg -i "$f" -codec:a flac "${f%.ape}.flac"; doneto migrate to a universally supported lossless format with zero quality loss. - Verifying lossless integrity after conversion: Since APE has no built-in checksum, decode both the original APE and the converted FLAC to WAV and compare with a binary diff to verify the conversion was bit-perfect.
- Extracting from Asian music archives: Many Chinese and Japanese music sharing communities distribute lossless albums as APE+CUE. Convert to FLAC immediately after download for long-term compatibility.
- Storage-constrained archival: If storage space is the primary concern and you only play from foobar2000 on Windows, APE's 5-15% size advantage over FLAC can save significant space across a large library.
Anti-Patterns
- Using APE Insane compression for a portable music library — Insane mode requires so much CPU to decode that it causes playback stuttering on mobile devices and lower-powered hardware. Use Normal or High at most.
- Choosing APE for cross-platform distribution — APE has essentially zero support on iOS, limited support on macOS, and no browser playback. Use FLAC for any scenario where recipients may not be on Windows with foobar2000.
- Relying on APE as your sole archival format — APE's restrictive license limits open-source support, and the format depends on a single developer. A single bit error can corrupt the rest of the file with no recovery mechanism. Use FLAC for archives.
- Encoding multichannel audio as APE — APE only supports mono and stereo. Any attempt to encode surround sound will fail. Use FLAC for multichannel lossless audio.
- Keeping APE+CUE as the only copy of an album — If the single APE file becomes corrupted, the entire album is lost. Split into individual FLAC tracks immediately and maintain the CUE sheet separately for reference.
Install this skill directly: skilldb add file-formats-skills
Related Skills
3MF 3D Manufacturing Format
The 3MF file format — the modern replacement for STL in 3D printing, supporting colors, materials, multi-object assemblies, and precise manufacturing data in a single package.
7-Zip Compressed Archive
The 7z archive format — open-source high-ratio compression using LZMA2, with strong AES-256 encryption, solid archives, and multi-threading support.
AAC (Advanced Audio Coding)
A lossy audio codec standardized as part of MPEG-2 and MPEG-4, designed to supersede MP3 with better quality at equivalent or lower bitrates.
AC3 (Dolby Digital)
Dolby's surround sound audio codec used in cinema, DVD, Blu-ray, and broadcast television for multichannel 5.1 audio delivery.
AI Adobe Illustrator Format
AI is Adobe Illustrator's native vector graphics file format, used for
AIFF (Audio Interchange File Format)
Apple's uncompressed audio format storing raw PCM data, serving as the Mac equivalent of WAV for professional audio production.