Skip to content
Files & formats

How to Convert MP3 to M4B (With Chapters), Free

Turn a folder of MP3s into one M4B audiobook with chapters and a cover: in your browser, on a Mac, with ffmpeg, and why Audacity and VLC aren’t the way.

The short answer

To convert MP3 to M4B, join the MP3 files in order, re-encode them to AAC, and add a chapter for each file plus a cover. Our free MP3 to M4B tool does it in your browser without uploading; on any computer, ffmpeg does it with the commands below.1,2 iTunes, Audacity and VLC can make AAC files, but not one chaptered audiobook.4,6

Easiest
In your browser
Chapters
One per MP3
Good quality for speech
AAC 64 kbps
Cost
Free
MP3 to M4B MakerDrop a folder of MP3s and download one M4B with a chapter per file, a cover and tags. Free, private, no install. Free · runs in your browser · nothing uploadedConvert MP3 to M4B

In your browser (no install)

  1. Open the MP3 to M4B tool

    It runs in your browser; nothing is uploaded, so a 20-hour book doesn’t wait on an upload.

  2. Drop the book’s MP3 files

    Drop them all at once, or a folder. Files are sorted by track number and name; drag to reorder. Each file becomes a chapter named from its tag or file name.

  3. Check chapters, cover and details

    Rename chapters, join a file to the one before it, add a cover and fill in title, author and narrator.

  4. Choose quality and convert

    Voice (64 kbps mono) is about 29 MB an hour and plenty for speech. Download one .m4b with chapters.

With ffmpeg (Windows, Mac, Linux)

ffmpeg is free and does the whole job in one command, given two text files: a list of the MP3s in order, and the chapters. These commands were tested with ffmpeg 6.1.

1. List the files in order

The concat reader takes a file list; every file must have the same codec settings.1

list.txt
file '01 - Chapter 1.mp3'
file '02 - Chapter 2.mp3'
file '03 - Chapter 3.mp3'

2. Write the chapters

ffmpeg’s metadata format starts with ;FFMETADATA1; each [CHAPTER] has a time base, start and end (here in milliseconds) and a title. Characters such as = ; # \ in titles need a backslash before them.1

chapters.txt
;FFMETADATA1
title=My Book
artist=Author Name
album=My Book
genre=Audiobook

[CHAPTER]
TIMEBASE=1/1000
START=0
END=10000
title=Chapter 1

[CHAPTER]
TIMEBASE=1/1000
START=10000
END=20000
title=Chapter 2

3. Convert

-map_chapters 1 takes the chapters from the second input.2 ffmpeg writes both a QuickTime chapter track and Nero chapters into the M4B, so most players see them.1

Make the M4B
ffmpeg -f concat -safe 0 -i list.txt -i chapters.txt \
  -map 0:a -map_metadata 1 -map_chapters 1 \
  -c:a aac -b:a 64k -movflags +faststart book.m4b

With a cover image, and marked as an audiobook (media_type=2):

Make the M4B with a cover
ffmpeg -f concat -safe 0 -i list.txt -i chapters.txt -i cover.png \
  -map 0:a -map 2:v -map_metadata 1 -map_chapters 1 \
  -c:a aac -b:a 64k -c:v copy -disposition:v:0 attached_pic \
  -metadata media_type=2 -movflags +faststart book.m4b

Or build the chapters from a folder automatically

This bash loop (Mac, Linux, or Windows with WSL or Git Bash) makes one chapter per MP3, named after the file, timed from each file’s duration:

One chapter per MP3
: > list.txt
printf ';FFMETADATA1\ntitle=My Book\nartist=Author Name\ngenre=Audiobook\n' > chapters.txt
t=0
for f in *.mp3; do
  printf "file '%s'\n" "${f//\'/\'\\\'\'}" >> list.txt
  d=$(ffprobe -v error -show_entries format=duration -of csv=p=0 "$f")
  ms=$(awk -v d="$d" 'BEGIN{printf "%d", d*1000}')
  printf '\n[CHAPTER]\nTIMEBASE=1/1000\nSTART=%d\nEND=%d\ntitle=%s\n' "$t" "$((t+ms))" "${f%.mp3}" >> chapters.txt
  t=$((t+ms))
done
ffmpeg -f concat -safe 0 -i list.txt -i chapters.txt \
  -map 0:a -map_metadata 1 -map_chapters 1 -c:a aac -b:a 64k -movflags +faststart book.m4b

Other ways, and their limits

Ways to turn MP3s into an M4B audiobook
One M4B fileChaptersCoverFree
Our MP3 to M4B toolYesYesYesYes
ffmpegYesYesYesYes
Audiobookshelf (server)YesYesYesYes
Apple Music / iTunesNoNoPer trackYes
AudacityAs .m4aNoNoYes
VLCNoNoNoYes
Ways to turn MP3s into an M4B audiobook. From each program’s own documentation; see the sources.
  • Apple Music and iTunes convert with File, Convert, Create AAC Version, which makes one .m4a per track.4 iTunes for Windows can set a track’s media kind to Audiobook so it remembers your place.5
  • Audacity exports M4A (AAC) once its optional FFmpeg library is installed, and AAC beats MP3 at the same size, but its documentation doesn’t cover writing chapters.6,8
  • Audiobookshelf, a free self-hosted audiobook server, can “merge your audio files into a single m4b”.7
Chapter EditorFix chapter names and positions afterwards on a live waveform, without re-encoding. Free · runs in your browser · nothing uploadedOpen the tool

Questions people ask

Everything else, answered.

How do I convert MP3 to M4B for free?

Drop the MP3s into our MP3 to M4B tool: it runs in your browser, makes one chapter per file, adds a cover and downloads a single M4B, free and without uploading. Or use the free ffmpeg commands on this page.

How do I convert MP3 to M4B with chapters?

Make each MP3 a chapter. Our tool does it automatically; with ffmpeg, write a chapters file (FFMETADATA) with each file’s start and end time and pass it with -map_chapters. The loop on this page builds it from the files’ durations.

Can iTunes or the Music app convert MP3 to M4B?

Not into one audiobook. Apple’s Create AAC Version makes one .m4a per track, without chapters. iTunes for Windows can mark tracks as an audiobook so it remembers your place, but it doesn’t join them into a chaptered M4B.

How do I convert MP3 to M4B on a Mac?

Use our browser tool in Safari or Chrome, run the ffmpeg commands on this page (install ffmpeg with Homebrew), or use Audiobookshelf, which can merge files into a single M4B.

Can Audacity convert MP3 to M4B?

Audacity can export M4A (AAC) with its optional FFmpeg library, and you can rename the .m4a to .m4b, but Audacity doesn’t document writing chapter markers, so you’d get one long file without chapters.

Can VLC convert MP3 to M4B?

VLC can convert one file at a time to AAC, but joining many MP3s into one chaptered audiobook isn’t a VLC feature.

Will the M4B sound worse than the MP3s?

Converting MP3 to AAC re-encodes the audio, so it can lose a little quality and never gains any. At 64 kbps or more for a single voice, the difference is hard to hear; keep the original MP3s.

Why does ffmpeg say “unsafe file name”?

The concat reader rejects absolute paths or unusual characters in its “safe” mode. Add -safe 0, as in the commands on this page.

What if my MP3s have different sample rates?

ffmpeg’s concat reader needs every file to have the same codec settings. Re-encode the odd ones first, or use our browser tool, which converts mixed files automatically.

Sources

Where these facts come from

Checked on 22 October 2026. Prices, limits and rules change: the company’s own page is always the final word.

  1. 1FFmpeg formats documentation (metadata, concat, MP4 muxer)FFmpegOfficial
  2. 2FFmpeg command-line documentation (-map_chapters)FFmpegOfficial
  3. 3Encode/AACFFmpeg wikiOfficial
  4. 4Convert music file formatsApple Support (Music on Mac)Official
  5. 5Change song and CD information (Audiobook media kind)Apple Support (iTunes for Windows)Official
  6. 6Installing FFmpeg (M4A export)Audacity SupportOfficial
  7. 7Audiobookshelf (merge files into a single M4B)GitHub, advplyr/audiobookshelfOfficial
  8. 8Saving and exporting projectsAudacity SupportOfficial

Keep reading

Do it now

The tools from this guide.