Convert M4B to OGA — Free Online Tool

Convert M4B audiobooks to OGA format, transcoding AAC audio to Vorbis inside an Ogg container. This is useful for playing audiobooks on open-source media players and Linux systems that handle OGG/Vorbis natively but may lack AAC licensing support.

FFmpeg Command

Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg

Free — no uploads, no signups. Your files never leave your browser.

Estimated output:

Conversion Complete!

Download

How It Works

M4B files store AAC-encoded audio inside an MPEG-4 container, along with chapter markers and bookmarking metadata used by audiobook players. During conversion to OGA, FFmpeg decodes the AAC audio stream and re-encodes it as Vorbis using the libvorbis encoder, then wraps it in an Ogg container. This is a full transcode — not a remux — because AAC and Vorbis are incompatible codecs. Chapter metadata may be partially preserved in the Ogg container using the CHAPTER= tag convention, though not all players interpret these tags identically. Bookmarking data specific to Apple's M4B implementation is not transferable to OGA.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg tool, which handles the decoding of the M4B container and AAC audio stream, the transcode to Vorbis, and the writing of the Ogg output file.
-i input.m4b Specifies the input M4B audiobook file. FFmpeg reads the MPEG-4 container, identifies the AAC audio track, and extracts any chapter markers and metadata atoms present.
-c:a libvorbis Tells FFmpeg to re-encode the audio stream using the libvorbis encoder, converting the AAC audio from the M4B into Vorbis audio — the codec natively expected inside an OGA/Ogg container.
-q:a 4 Sets the Vorbis variable bitrate quality to level 4 on a 0–10 scale, targeting approximately 128 kbps — a reasonable balance between file size and audio clarity for spoken-word audiobook content.
output.oga Defines the output filename with the .oga extension, which signals to FFmpeg to write an Ogg container holding the Vorbis audio stream. The .oga extension specifically identifies the file as audio-only Ogg content.

Common Use Cases

  • Playing a purchased M4B audiobook on a Linux desktop media player like VLC or Rhythmbox without needing AAC codec support installed separately
  • Loading audiobook audio into open-source audio editors like Audacity or Ardour on systems where AAC decoding is restricted due to patent licensing
  • Archiving audiobook audio in an open, patent-free format (Vorbis/Ogg) for long-term storage independent of proprietary codec ecosystems
  • Stripping an M4B audiobook down to a plain Vorbis audio file for use in custom e-reader or media applications that support OGA/OGG but not MPEG-4
  • Preparing audiobook content for upload to open-source podcast platforms or self-hosted media servers that prefer Ogg-based formats over MPEG-4 containers

Frequently Asked Questions

Partially. The Ogg container does support chapter metadata using the CHAPTER= tag format, and FFmpeg will attempt to map chapter data from the M4B. However, OGA chapter support is far less standardized than in M4B, and many players that read Ogg files do not parse or display chapter markers at all. If chapter navigation is essential to your workflow, OGA is not an ideal target format — formats like MKA or even keeping the M4B would serve you better.
Yes. Since the source audio is already AAC-encoded (a lossy format) and Vorbis is also lossy, this conversion involves generation loss — decoding a lossy codec and re-encoding to another lossy codec. At the default quality setting of -q:a 4, Vorbis produces audio roughly comparable to 128 kbps, which is adequate for speech-heavy audiobook content. The degradation is typically subtle for audiobooks but is technically measurable.
Vorbis is inherently a lossy codec, so truly lossless Vorbis is not possible. However, OGA does support FLAC audio inside the Ogg container. To use FLAC instead of Vorbis, you would modify the FFmpeg command to use '-c:a flac' instead of '-c:a libvorbis -q:a 4'. Keep in mind that since the M4B source is already AAC-encoded (lossy), encoding to FLAC will produce a losslessly stored file but the audio data itself will not be fully restored to original quality.
The '-q:a 4' flag controls Vorbis quality on a scale from 0 (lowest, ~64 kbps) to 10 (highest, ~500 kbps). For audiobooks consisting primarily of spoken word, quality 3 or 4 is generally indistinguishable from higher settings and produces smaller files. If you want higher fidelity, change it to '-q:a 6' or '-q:a 7'. Replace '4' in the command with your desired value: ffmpeg -i input.m4b -c:a libvorbis -q:a 6 output.oga
FFmpeg will attempt to map standard metadata fields — such as title, artist, album, and year — from the M4B's iTunes-style atom tags to Ogg Vorbis comment tags. Common fields like TITLE, ARTIST, and ALBUM typically transfer correctly. However, M4B-specific fields like the audiobook description, narrator, or series information stored in proprietary iTunes atoms may not map cleanly and could be dropped or stored in non-standard comment fields.
Yes. On Linux or macOS, you can use a shell loop: for f in *.m4b; do ffmpeg -i "$f" -c:a libvorbis -q:a 4 "${f%.m4b}.oga"; done. On Windows Command Prompt, use: for %f in (*.m4b) do ffmpeg -i "%f" -c:a libvorbis -q:a 4 "%~nf.oga". Each file is processed sequentially, and the output filename matches the input with the extension changed to .oga.

Technical Notes

M4B is essentially an M4A file with the audiobook-specific MIME type and typically contains AAC audio encoded at bitrates between 64 kbps and 128 kbps, along with Apple chapter atoms (chpl) and HTTP live streaming hints. OGA is the audio-only variant of the Ogg container, distinguished from OGG primarily by convention and MIME type (audio/ogg vs application/ogg). The libvorbis encoder used in this conversion is the reference Vorbis implementation and uses variable bitrate encoding controlled by the -q:a quality scale. At q:a 4, expected output bitrate is approximately 128 kbps for stereo audio. One known limitation is that Apple's proprietary DRM (FairPlay), if present on a purchased M4B, will prevent FFmpeg from reading the file entirely — only DRM-free M4B files can be processed. The -movflags +faststart flag present in M4B output configurations is irrelevant here since OGA does not use MP4 container structure. OGA has broad compatibility on Linux and Android but is less universally supported than AAC on iOS and older dedicated audiobook hardware.

Related Tools