Advanced Audio Coding (.aac)
ISO/IEC StandardAdvanced Audio Coding (AAC) is the standardized successor to MP3, designed to provide superior compression efficiency and auditory fidelity across identical bitrates.
Convert AAC to MP3
Free in-browser AAC to MP3 converter. Convert files instantly on your device.
Inspect & Metadata
Operating systems and file analyzers identify AAC files by inspecting the leading binary byte sequence:
Byte-Level Header Signature (Magic Bytes)
Operating systems and file analyzers identify AAC files by inspecting the leading binary byte sequence:
HEX SIGNATURE (OFFSET 0):
FF F1ASCII REPRESENTATION: ÿñ
Standardization: ISO/IEC 13818-7 / ISO/IEC 14496-3
Technical Specifications
| Container Architecture | ADTS (Audio Data Transport Stream) bitstream or MPEG-4 Part 14 container |
| Compression | Modified Discrete Cosine Transform (MDCT) with temporal noise shaping and psychoacoustic modeling |
| Byte Endianness | Big-Endian bitstream framing |
| Color Spaces | N/A (Audio Bitstream) |
| Channels & Structure | Up to 48 discrete audio channels with arbitrary speaker mapping |
| Max Dimensions | Sample rates from 8 kHz up to 96 kHz (16/24-bit PCM source) |
| Transparency | Perceptual lossy coding; transparent quality achieved around 192-256 kbps stereo |
| Streaming & Progressive | Native ADTS frame synchronization words enable arbitrary byte-stream streaming |
Technical Comparison Matrix: AAC vs Competitors
| Technical Attribute | AAC (Current) | MP3 | OGG | OPUS |
|---|---|---|---|---|
| Compression Efficiency | High; transparent stereo at 128-192 kbps | Moderate; requires 192-256 kbps | High; comparable to AAC at 160 kbps | Ultra-high; transparent at 96-128 kbps |
| Max Channels | 48 discrete channels | 2 channels (stereo) / 5.1 in MPEG-2 | 255 discrete channels | 255 discrete channels |
| Hardware Acceleration | 100% universal across all mobile and desktop silicon | 100% legacy silicon support | Limited dedicated DSP hardware chips | Growing browser & Android/iOS hardware support |
| Algorithmic Delay | Moderate (~100 ms buffer delay) | High (~100-150 ms) | Moderate (~100 ms) | Ultra-low (5-26.5 ms, optimized for VoIP) |
Common Corruption Modes & Hex Recovery Guide
Media player loops or produces high-pitch digital static bursts.
Root Cause: Desynchronization of ADTS frame headers due to packet loss or missing 12-bit syncwords.
Recovery: Repackage raw AAC audio into an MP4/M4A container using ffmpeg -i broken.aac -c:a copy fixed.m4a to rebuild frame indexes.
Security Analysis & Parser Attack Vectors
AAC decoders operate in high-throughput audio DSP loops where malformed packet lengths can trigger integer overflows in software implementations.
Known Attack Vectors
- Integer overflow in ADTS frame length fields causing buffer over-reads in unpatched C++ decoders.
- Crafted channel configuration bits triggering invalid memory writes during multichannel downmixing.
- Out-of-bounds heap allocation during SBR (Spectral Band Replication) synthesis table parsing.
Defensive Best Practices: Decode AAC files in sandboxed memory spaces using memory-safe WASM libraries or operating system media frameworks.
Historical Origins & Milestones
Key Advantages & Pros
- Superior audio transparency compared to MP3 at equivalent and lower bitrates (e.g., 128 kbps vs 192 kbps).
- Native support for up to 48 full-bandwidth audio channels for surround sound and Dolby Pro Logic workflows.
- Universal native hardware decoding across iOS, Android, macOS, Windows, and consumer smart televisions.
Technical Limitations & Cons
- Perceptual lossy encoding discards inaudible harmonic frequencies, making it unsuited for audio mastering.
- ADTS bitstreams lack embedded seeking tables without containerization in MP4 (M4A) wrappers.
- Patent pool licensing administered by Via Licensing Corporation historically slowed open-source encoder innovation.
Interesting Technical Trivia
- YouTube defaults to AAC encoding at 128 kbps for standard stereo video audio streams.
- The ADTS syncword is 12 consecutive binary ones (0xFFF), enabling tuners to lock into live broadcasts mid-stream.
- Sony adopted AAC as the default compression standard for PlayStation 3, PlayStation Portable, and Vita audio.
Frequently Asked Technical Questions
Why does AAC sound better than MP3 at 128 kbps?
AAC incorporates higher frequency resolution (up to 96 kHz), pure MDCT filter banks, temporal noise shaping (TNS), and more flexible stereo prediction tools that eliminate pre-echo artifacts prevalent in MP3.
What is the difference between raw AAC and M4A?
Raw AAC uses simple ADTS framing without chapter or metadata indexes. M4A wraps the identical AAC audio payload inside an ISO Base Media container (MP4) with metadata, album art, and seek tables.
Does AAC support lossless audio compression?
No. Standard AAC is strictly lossy. Apple developed Apple Lossless (ALAC) for bit-for-bit lossless audio inside the same M4A container.