OGG vs AAC: Which Audio Codec Is Better?
OGG Vorbis vs AAC compared on sound quality, file size, compatibility, and use cases. A clear recommendation for each scenario.
OGG Vorbis and AAC are both modern lossy audio codecs. They were developed in different ecosystems — AAC by an industry consortium with broad commercial backing, OGG Vorbis by the open-source Xiph.Org Foundation. The technical differences are real, but they sit in similar quality territory, with the practical decision driven by where your audio needs to play.
The TL;DR
- AAC dominates modern consumer distribution: Apple Music, YouTube Music, Amazon Music, podcasts, smartphones, browsers, smart speakers.
- OGG Vorbis dominates game audio, open-source software, and Spotify's premium streaming.
- Sound quality is comparable at most bitrates. Vorbis has a small edge below 96 kbps; AAC has a small edge above 256 kbps.
- Compatibility heavily favors AAC.
What AAC Actually Is
AAC (Advanced Audio Coding) was finalized in 1997 as the successor to MP3. Standardized by MPEG (Part 7 of MPEG-2, Part 3 of MPEG-4). Developed by a consortium including Fraunhofer Institute, Bell Labs, AT&T, Dolby, Nokia, and Sony.
AAC uses a sophisticated psychoacoustic model with several innovations over MP3: longer transform windows, better transient handling, more efficient stereo encoding, and improved high-frequency handling.
AAC profiles:
- AAC-LC (Low Complexity) — standard for music and most applications
- HE-AAC (High Efficiency) — adds spectral band replication for low bitrates (below 96 kbps)
- HE-AAC v2 — adds parametric stereo for ultra-low bitrates
- AAC-LD / AAC-ELD — low-delay for telephony
AAC audio is almost always stored in an MP4 container (.m4a for audio-only, .mp4 for audio+video).
What OGG Vorbis Actually Is
OGG is a container format developed by Xiph.Org. Vorbis is the actual audio codec.
Vorbis was released in 2000, explicitly designed to be patent-free. The Xiph.Org Foundation's mission was to create a free alternative to MP3.
Vorbis uses a transform-based approach similar to AAC, with floor-and-residue spectral decomposition. The encoder is quality-based by default (variable bitrate).
For new applications, Xiph.Org has largely moved on to Opus. But Vorbis remains alive in many places — game engines, Spotify desktop streaming, and the broad Linux ecosystem.
Sound Quality Compared
Below 64 kbps: Vorbis wins clearly. Tuned aggressively for low-bitrate quality.
64-96 kbps: Vorbis still has an edge. Most blind tests show Vorbis more transparent at this rate.
128 kbps: Roughly comparable.
192 kbps: AAC and Vorbis are essentially equivalent.
256 kbps: Both are near-transparent. iTunes Store standard (AAC at 256 kbps).
320 kbps: Both are sonically transparent for typical content.
At common distribution bitrates, the codec choice matters less than people think.
Compatibility: Where Each Format Plays
AAC compatibility:
| Device | AAC support | |---|---| | All Apple devices | Native, preferred | | Modern Android (Android 4+) | Native | | All modern web browsers | Native | | Modern smart speakers | Yes | | Modern car stereos (~2015+) | Usually fine | | Most podcast platforms | Native delivery format | | Streaming services (Apple Music, YouTube Music, Amazon) | Standard codec | | Modern game consoles | Yes |
OGG Vorbis compatibility:
| Device | OGG support | |---|---| | Modern Android (4.0+) | Native | | Desktop browsers (Safari 14.1+) | Native | | iOS / Apple Music app | NOT native | | Game engines (Unity, Godot, Unreal) | Built-in | | Linux desktop | Native | | Most smart speakers | Mixed | | Most car stereos | No | | Legacy hardware | No |
For consumer distribution and broad device compatibility: AAC wins by a wide margin.
File Size at Equivalent Quality
| Quality | AAC bitrate | Vorbis quality | Size for 4-min song | |---|---|---|---| | Casual | 96 kbps | q3 (~110 kbps) | AAC: 2.9 MB / Vorbis: 3.3 MB | | Good | 128 kbps | q5 (~160 kbps) | AAC: 3.8 MB / Vorbis: 4.8 MB | | Near-transparent | 256 kbps | q6 (~192 kbps) | AAC: 7.7 MB / Vorbis: 5.7 MB |
Practically, the two are similar in efficiency.
When to Choose AAC
Modern consumer distribution. Music, podcasts, audiobooks delivered to smartphones, tablets, smart speakers, modern car audio.
Apple ecosystem. iTunes, Apple Music, iPhone, iPad — all prefer AAC.
Streaming services. Apple Music, YouTube Music, Amazon Music all use AAC at 256 kbps.
Podcast distribution. AAC at 96-128 kbps mono is the standard.
Audio in video files. MP4 video containers use AAC for the audio track.
When to Choose OGG Vorbis
Game audio. Unity, Godot, Unreal Engine support OGG natively.
Open-source software distribution. Linux distros, FOSS music players often prefer OGG.
Spotify-style premium streaming. Spotify Premium streams Ogg Vorbis at 320 kbps on desktop.
Android-native audio. If exclusively Android, OGG works fine.
Web audio in modern browsers. Vorbis plays in all modern browsers.
When NEITHER Is Right
Use MP3 for maximum legacy compatibility.
Use Opus for modern voice communication or very-low-bitrate music distribution.
Use FLAC for lossless archival or audiophile distribution.
How to Convert Between AAC and OGG
For ffmpeg:
``` ffmpeg -i input.m4a -c:a libvorbis -q:a 5 output.ogg ffmpeg -i input.ogg -c:a aac -b:a 192k output.m4a ```
Both are lossy-to-lossy conversions.
Summary
AAC and OGG Vorbis are both modern lossy audio codecs with comparable quality at typical distribution bitrates. AAC dominates consumer audio because of universal device support. OGG Vorbis is the right choice for game audio, open-source software ecosystems, and Spotify-style web streaming. For consumer distribution, choose AAC. For specialized open-source or game contexts, choose OGG.