Convert ALAC to M4B — Free Online Tool

Convert ALAC audio files to M4B audiobook format, transcoding the lossless Apple Lossless audio stream to AAC at 128k bitrate while preserving chapter markers — making your audio fully compatible with audiobook players like Apple Books and podcast apps.

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

ALAC (Apple Lossless Audio Codec) stores audio without any quality loss inside an MPEG-4 container, but M4B players and audiobook apps expect AAC-encoded audio. This conversion re-encodes the ALAC audio stream into AAC at 128k bitrate — a lossy process that introduces minor, generally imperceptible compression artifacts in exchange for significantly smaller file sizes. Because both .m4a (ALAC) and .m4b containers are MPEG-4 based, chapter metadata embedded in the source file can be carried through to the output. The -movflags +faststart flag reorganizes the output file's metadata to the beginning of the file, which enables progressive playback and faster loading in audiobook and podcast apps without having to download the entire file first.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg program, the open-source multimedia processing engine that handles the ALAC-to-AAC transcoding and M4B container construction in this conversion.
-i input.m4a Specifies the input file — an .m4a container holding a lossless ALAC audio stream, typically an audiobook, music file, or spoken-word recording from iTunes or an Apple device.
-c:a aac Sets the audio codec for the output to AAC (Advanced Audio Coding), transcoding the lossless ALAC stream into the lossy AAC format that M4B audiobook players and Apple Books require.
-b:a 128k Sets the AAC audio bitrate to 128 kilobits per second, a standard quality level that delivers clear, natural-sounding narration for spoken-word audiobooks at a fraction of the lossless ALAC file size.
-movflags +faststart Moves the MPEG-4 file index (moov atom) to the beginning of the output .m4b file, enabling audiobook apps to load chapter lists and begin playback immediately — critical for streaming and iCloud-synced audiobook libraries.
output.m4b The output filename with the .m4b extension, which signals to Apple Books, iTunes, Overcast, and other compatible apps that this file is an audiobook with chapter navigation and persistent playback position bookmarking.

Common Use Cases

  • Converting a lossless ALAC rip of an audiobook CD into M4B format so it can be imported into Apple Books with chapter navigation intact
  • Preparing a high-fidelity ALAC music lecture or spoken-word recording for distribution as a podcast episode in a universally supported audiobook container
  • Reducing the file size of a large ALAC audiobook for storage on an iPhone or iPod without losing the chapter bookmarking functionality
  • Migrating a personal ALAC audiobook library into M4B so that listening position is remembered and synced across Apple devices via iCloud
  • Transcoding an ALAC-encoded interview or educational series into M4B for sideloading into Overcast, Pocket Casts, or other chapter-aware podcast apps
  • Creating an M4B audiobook from a lossless ALAC master file for distribution on platforms that require the .m4b extension for proper chapter and bookmark support

Frequently Asked Questions

Yes, in most cases. Both the MPEG-4-based .m4a (ALAC) and .m4b containers support chapter atoms, and FFmpeg will attempt to copy chapter metadata from the input to the output during this conversion. If your source ALAC file has properly embedded chapter markers — as commonly produced by audiobook rippers or tools like Audiobook Builder — they should appear correctly in Apple Books or compatible audiobook players after conversion.
Yes, but for spoken-word content the difference is inaudible in practice. ALAC is lossless, so this conversion introduces lossy AAC compression for the first time. At 128k AAC — the default used here — voice and narration are reproduced with excellent clarity and the file size is reduced dramatically compared to the lossless source. If you're converting music or highly detailed audio and want to minimize any quality loss, you can increase the bitrate to 256k or 320k by modifying the -b:a flag in the command.
Replace the value after -b:a in the command to adjust bitrate. For example, use -b:a 64k for a smaller file suited to speech-only content, -b:a 192k for a good balance of quality and size, or -b:a 320k for near-transparent AAC quality on music or high-fidelity recordings. The full modified command would look like: ffmpeg -i input.m4a -c:a aac -b:a 192k -movflags +faststart output.m4b
The .m4b extension is a convention Apple and audiobook apps use to distinguish audiobook files from general music files. Functionally, both .m4a and .m4b are MPEG-4 audio containers, but the .m4b extension signals to apps like Apple Books, iTunes, and Overcast that the file should support bookmarking (remembering playback position) and expose chapter navigation controls. Without the .m4b extension, many players will treat the file as a regular music track and strip bookmarking behavior.
FFmpeg copies compatible metadata tags from the ALAC source to the M4B output by default. Tags such as title, artist, album, and year stored in the MPEG-4 container are preserved. Embedded cover art is also typically carried through. However, some ALAC-specific or iTunes-proprietary extended tags may not transfer perfectly, so it is worth verifying the output metadata in a tag editor like Mp3tag or iTunes after conversion if accurate tagging is critical.
Yes. On macOS or Linux, you can loop over all .m4a files in a directory with: for f in *.m4a; do ffmpeg -i "$f" -c:a aac -b:a 128k -movflags +faststart "${f%.m4a}.m4b"; done. On Windows (Command Prompt), use: for %f in (*.m4a) do ffmpeg -i "%f" -c:a aac -b:a 128k -movflags +faststart "%~nf.m4b". This is especially useful for large libraries or multi-part audiobooks where each chapter is stored as a separate ALAC file.

Technical Notes

ALAC and AAC are both native to Apple's ecosystem but differ fundamentally in compression philosophy: ALAC preserves every bit of the original audio while AAC uses psychoacoustic modeling to discard inaudible frequencies, achieving roughly 5–10x smaller file sizes at 128k. The re-encoding step here is unavoidable because M4B players universally expect AAC audio — there is no remux-only path since the audio codec must change. One important nuance is that this tool processes .m4a files containing ALAC; .m4a files can also contain AAC audio, so if your source was already AAC-encoded inside .m4a, this command will transcode AAC-to-AAC, introducing an additional generation of lossy compression. For that scenario, raising the output bitrate with -b:a 192k or higher is advisable. The -movflags +faststart flag is particularly important for M4B files intended for streaming or cloud-synced libraries, as it places the moov atom (file index) at the start of the file, allowing apps to begin playback and display chapter lists before the file is fully loaded.

Related Tools