Convert OGG to M4B — Free Online Tool
Convert OGG audio files (Vorbis or Opus streams) to M4B audiobook format, re-encoding the audio to AAC for full compatibility with Apple Books, iPhone, and podcast apps that support chapter markers and bookmarking. Unlike OGG, which uses open Xiph.Org codecs, M4B wraps AAC audio in an MPEG-4 container specifically designed for long-form listening experiences.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your OGG file here
or click to browse
Free — no uploads, no signups. Your files never leave your browser.
Settings
Note: Browser-based encoding uses approximate quality targets. For precise CRF compression, copy the FFmpeg command above and run it on your desktop.
Estimated output:
Conversion Complete!
DownloadHow It Works
OGG files typically carry audio encoded with either Vorbis or Opus — neither of which is natively supported by the M4B container. During this conversion, FFmpeg fully decodes the OGG audio stream and re-encodes it as AAC (Advanced Audio Coding) at 128k bitrate by default, then wraps it in an MPEG-4 container with the .m4b extension. The -movflags +faststart flag reorganizes the file's metadata index to the beginning of the file, which enables progressive playback and streaming in audiobook players. If your OGG source file contains chapter metadata, FFmpeg will attempt to carry that forward into the M4B's chapter structure — a meaningful advantage since both formats support chapters natively.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg multimedia processing tool. This is the command-line program that handles all the decoding, re-encoding, and container remuxing for this OGG-to-M4B conversion. |
-i input.ogg
|
Specifies the input OGG file. FFmpeg will auto-detect whether the OGG container holds a Vorbis, Opus, or FLAC audio stream and select the appropriate decoder automatically. |
-c:a aac
|
Instructs FFmpeg to encode the output audio stream as AAC (Advanced Audio Coding) using FFmpeg's built-in AAC encoder. AAC is the only audio codec broadly supported by the M4B container and required by Apple Books and most audiobook players. |
-b:a 128k
|
Sets the AAC audio bitrate to 128 kilobits per second. This is a standard bitrate for speech-heavy content like audiobooks — it delivers clear, intelligible audio while keeping file sizes reasonable for long recordings. Increase to 192k or 256k for music-heavy content. |
-movflags +faststart
|
Moves the MPEG-4 metadata index (the moov atom) to the beginning of the output M4B file. This is essential for audiobook streaming and progressive playback — without it, players must download the entire file before they can start reading position and chapter data. |
output.m4b
|
Defines the output filename with the .m4b extension, which signals to Apple Books, iTunes, Overcast, and compatible podcast apps that this file is an audiobook with bookmarking and chapter navigation support, rather than a standard music track. |
Common Use Cases
- Converting a self-produced audiobook exported from Audacity or Ardour as OGG Vorbis into an M4B file that Apple Books or Overcast can play with chapter navigation
- Transforming a podcast series stored in OGG format into a single M4B file so listeners can bookmark their position and resume on Apple or Android podcast apps
- Re-packaging open-source audiobook downloads distributed in OGG format into M4B so they work on iPod, iPhone, or CarPlay without compatibility errors
- Preparing a long-form meditation or lecture recording encoded in OGG Opus for distribution on audiobook platforms that require AAC-based M4B submissions
- Archiving a collection of Ogg Vorbis radio drama recordings into M4B files that support per-episode chapter markers for easier navigation
- Converting OGG-encoded language learning audio lessons into M4B format to take advantage of Apple Books' playback speed controls and position bookmarking
Frequently Asked Questions
Yes, there is a quality loss because this is a lossy-to-lossy transcode — the OGG Vorbis audio is fully decoded and then re-encoded as AAC. Both codecs are perceptual audio formats that discard information the human ear is less sensitive to, but each codec introduces its own generation of compression artifacts. At the default 128k bitrate, AAC is generally considered slightly more efficient than Vorbis at equivalent bitrates, meaning the perceptual quality difference is often minimal for speech-heavy content like audiobooks. For music-heavy content, consider raising the bitrate to 192k or 256k to reduce the audible impact of double-encoding.
Both OGG and M4B support chapter metadata, and FFmpeg will attempt to map chapter information from the source OGG file into the output M4B container. M4B stores chapters as QuickTime chapter tracks, which are directly recognized by Apple Books, Overcast, and other audiobook players — so if your OGG file had properly tagged chapters, they should survive the conversion and become navigable in your audiobook app. If your OGG file lacked chapter data, you can add chapters to the M4B afterward using tools like mp4chaps or Audiobook Builder.
Both .m4a and .m4b are MPEG-4 audio containers that can hold identical AAC audio streams, but .m4b is the convention Apple established specifically for audiobooks and podcasts. The .m4b extension signals to apps like Apple Books and iTunes that the file should be treated as an audiobook, enabling bookmarking (remembering your playback position), variable speed playback, and chapter navigation. A .m4a file with the same contents would play fine as music but would not trigger the bookmarking behavior in most players.
Yes — the -b:a 128k flag controls the AAC output bitrate, and you can replace 128k with 96k, 192k, 256k, or 320k depending on your quality and file size requirements. For spoken-word audiobooks, 96k or 128k AAC is typically indistinguishable from higher bitrates and keeps file sizes manageable for long recordings. For music or high-fidelity source material, 192k or 256k is a better choice. The full adjusted command would look like: ffmpeg -i input.ogg -c:a aac -b:a 192k -movflags +faststart output.m4b
Yes, FFmpeg handles both OGG Vorbis and OGG Opus as input transparently. Regardless of whether the OGG container holds a Vorbis or Opus audio stream, FFmpeg decodes it fully before re-encoding to AAC, so the source codec does not affect the output. Opus at lower bitrates (32k–96k) can be perceptually superior to Vorbis, but once decoded and re-encoded to AAC at 128k, the distinction in the source codec becomes irrelevant to the final file quality.
The single-file command shown converts one file at a time, but you can adapt it for batch processing in a shell script. On Linux or macOS, use: for f in *.ogg; do ffmpeg -i "$f" -c:a aac -b:a 128k -movflags +faststart "${f%.ogg}.m4b"; done — this loops over every .ogg file in the current directory and produces a matching .m4b file. On Windows Command Prompt, use: for %f in (*.ogg) do ffmpeg -i "%f" -c:a aac -b:a 128k -movflags +faststart "%~nf.m4b". Batch processing is particularly useful for converting a full audiobook series or podcast archive.
Technical Notes
The OGG-to-M4B conversion is a full audio transcode, not a remux — no codec used in OGG (Vorbis, Opus, or FLAC) is valid inside an MPEG-4 container, so re-encoding to AAC is mandatory. FFmpeg uses its native AAC encoder (not the older libfaac), which produces compliant AAC-LC output suitable for all Apple devices and most Android audiobook players. One notable limitation: OGG supports multiple audio tracks, but M4B does not — if your source OGG file contains multiple audio streams, only the first (or default) stream will be included in the output. OGG's FLAC stream variant is lossless, so if your source is OGG FLAC, you are converting from lossless to lossy AAC and should use a higher bitrate (192k+) to minimize quality loss. Metadata tags (title, artist, album, track number) are generally preserved across the conversion since FFmpeg maps ID3-style tags from the OGG Vorbis comment format into the MPEG-4 metadata atoms that M4B players read. The -movflags +faststart flag is especially important for M4B files intended for streaming or network playback, as it moves the moov atom to the front of the file so players can begin decoding without downloading the entire file first.