Convert MP3 to M4B — Free Online Tool

Convert MP3 audio files to M4B audiobook format, re-encoding the audio from MPEG Layer III to AAC within an MPEG-4 container that supports chapters and bookmarking. M4B is the native format for Apple Books and iPhone audiobook playback, making this conversion essential for anyone building or distributing audiobook content.

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

MP3 uses the MPEG Layer III (libmp3lame) codec inside a simple MPEG audio container with no support for chapters or bookmarking. During this conversion, FFmpeg decodes the MP3 audio stream entirely and re-encodes it using the AAC codec at 128k bitrate — there is no stream copying possible here because the target codec is different. The re-encoded AAC audio is then wrapped in an MPEG-4 container (.m4b), which unlocks chapter markers, playback position bookmarking, and enhanced metadata support. The -movflags +faststart flag reorganizes the file's internal index to the beginning of the file, which improves streaming and progressive playback performance on devices and podcast apps.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg command-line tool. In this browser-based tool, the same FFmpeg logic runs via WebAssembly (FFmpeg.wasm) without any server upload — the command shown here is identical to what you would run locally on your desktop.
-i input.mp3 Specifies the input file — your source MP3 audio. FFmpeg reads the MPEG Layer III audio stream and any embedded ID3 metadata (title, artist, album art) from this file to use during conversion.
-c:a aac Sets the audio codec to AAC (Advanced Audio Coding), which is the standard audio codec for M4B files. Because MP3 (libmp3lame) and AAC are different codecs, the audio must be fully decoded and re-encoded — stream copying is not possible for this format pair.
-b:a 128k Sets the AAC audio bitrate to 128 kilobits per second. At this bitrate, AAC delivers perceptually transparent quality for spoken-word content like audiobooks and podcasts, and typically produces smaller file sizes than an MP3 at the same bitrate due to AAC's superior compression efficiency.
-movflags +faststart Moves the MPEG-4 container's metadata index (moov atom) to the beginning of the output file. This is critical for M4B files used in audiobook streaming or podcast distribution, allowing apps and devices to begin playback before the entire file has been downloaded.
output.m4b Specifies the output filename with the .m4b extension. The .m4b extension is what signals to Apple Books, iTunes, and compatible audiobook players to treat this file as an audiobook rather than music, enabling automatic bookmarking and chapter navigation features.

Common Use Cases

  • Converting a self-published audiobook recorded and exported as MP3 into M4B so it can be listed and properly played in Apple Books with chapter navigation
  • Packaging a long-form MP3 podcast episode into M4B format for listeners who want their player to remember where they left off between sessions
  • Preparing MP3 narration files for distribution on audiobook platforms like Findaway or Authors Republic that require M4B with proper container metadata
  • Re-encoding an MP3 lecture series into M4B so students can use chapter markers to jump between topics on their iPhone without losing their place
  • Converting MP3 radio drama or serialized fiction into M4B to deliver a more structured listening experience with bookmarking on Apple Podcasts
  • Transforming MP3 language-learning audio files into M4B format to enable resume playback on iOS devices where learners frequently pause and return

Frequently Asked Questions

Yes, there is a small quality tradeoff. Your MP3 audio is already lossy — it was compressed from the original source when it was first encoded. Converting to M4B requires decoding that MP3 and re-encoding to AAC, which is a second generation of lossy compression. However, AAC is generally considered more efficient than MP3 at the same bitrate, so at 128k the AAC output may sound comparable or slightly better than the original 128k MP3. If your source MP3 was encoded at a high bitrate (192k or 320k), consider selecting a higher output bitrate to minimize any perceptible quality loss.
Yes, the M4B container natively supports chapter markers, which is one of its primary advantages over MP3. However, this FFmpeg command converts a single MP3 file and does not automatically generate chapters — it simply places the audio inside a chapter-capable container. To add actual chapter markers, you would need to provide an FFmpeg chapter metadata file using the -i flag alongside a metadata file, or use a tool like mp4chaps after conversion. The M4B file produced here will still bookmark your playback position even without explicit chapter markers.
Apple Books uses metadata tags to categorize M4B files. Simply having the .m4b extension is a strong signal, but the file may also need correct ID3/iTunes metadata such as the 'genre' set to 'Audiobook' and proper 'album artist' fields. You can embed this metadata by adding -metadata genre='Audiobook' -metadata album_artist='Author Name' to the FFmpeg command before the output filename. Some versions of Apple Books also expect the file to have at least one chapter marker to display navigation controls.
Replace the value after -b:a in the command to adjust the output AAC bitrate. For example, use -b:a 64k for smaller file sizes suitable for spoken-word content where audio fidelity is less critical, or -b:a 192k for higher quality output when music or complex audio is involved. For audiobooks and podcasts, 64k to 128k AAC is generally sufficient and produces much smaller files than an equivalent MP3, since AAC is a more efficient codec. The full adjusted command would look like: ffmpeg -i input.mp3 -c:a aac -b:a 64k -movflags +faststart output.m4b
Yes, on Linux or macOS you can batch convert using a shell loop: for f in *.mp3; do ffmpeg -i "$f" -c:a aac -b:a 128k -movflags +faststart "${f%.mp3}.m4b"; done. On Windows Command Prompt, use: for %f in (*.mp3) do ffmpeg -i "%f" -c:a aac -b:a 128k -movflags +faststart "%~nf.m4b". Each MP3 will be converted to its own individual M4B file. If you want to merge multiple MP3 chapters into a single M4B audiobook file, you would first need to concatenate the inputs using FFmpeg's concat demuxer.
M4A and M4B are technically nearly identical MPEG-4 audio containers — both can carry AAC audio and metadata. The key difference is the file extension itself: Apple's software uses .m4b as a signal to treat the file as an audiobook, enabling automatic bookmarking (resume playback from where you stopped) and displaying it in the audiobook section of Apple Books and iTunes rather than in your music library. If you are distributing audiobook or long-form content intended for Apple devices, .m4b is the correct choice. For general music or short audio, .m4a is more appropriate.

Technical Notes

This conversion involves a full audio transcode — the MP3 bitstream cannot be stream-copied into an M4B container because M4B's default and most compatible codec is AAC, not MPEG Layer III. FFmpeg decodes the MP3 using its built-in MP3 decoder and re-encodes using the native AAC encoder (not libfdk_aac, which requires a separately compiled FFmpeg build). The native AAC encoder produces good quality at 128k and above but may be slightly inferior to libfdk_aac at very low bitrates like 64k. ID3 tags embedded in the source MP3 (title, artist, album, artwork) are generally preserved and mapped into the MPEG-4 container's metadata atoms during conversion, though some tags may require manual verification with a tool like MP3Tag or exiftool afterward. The -movflags +faststart flag is particularly important for M4B files used in podcast feeds or streaming scenarios, as it moves the moov atom to the front of the file so playback can begin before the entire file is downloaded. M4B files are not natively supported on Android without a third-party player such as Smart AudioBook Player, which is worth communicating to end users of audiobook content distributed in this format.

Related Tools