Convert AIF to M4B — Free Online Tool

Convert AIF audio files to M4B audiobook format, transcoding Apple's uncompressed PCM audio into AAC-encoded MPEG-4 with chapter and bookmarking support. Ideal for turning high-quality AIF recordings into audiobook-ready files compatible with Apple Books, iTunes, 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

AIF stores audio as uncompressed PCM (typically 16-bit or 24-bit big-endian samples), which means every sample is stored at full fidelity with no compression artifacts. During conversion to M4B, the raw PCM audio stream is transcoded into AAC (Advanced Audio Coding), a lossy compression format that dramatically reduces file size by discarding audio information deemed perceptually insignificant by a psychoacoustic model. The output is wrapped in an MPEG-4 container (.m4b) — a variant of .m4a specifically recognized by Apple Books and compatible players as an audiobook format. The .m4b extension unlocks features that .m4a lacks in audiobook contexts: per-chapter bookmarking that remembers your playback position, and chapter metadata that allows listeners to navigate between sections. The -movflags +faststart flag reorganizes the MP4 metadata so it sits at the beginning of the file, enabling streaming and fast loading before the entire file is downloaded.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg program. In the browser-based version of this tool, FFmpeg runs locally via WebAssembly (FFmpeg.wasm) — no files leave your device. When running locally on your desktop, this calls your system-installed FFmpeg binary.
-i input.aif Specifies the input AIF file. FFmpeg detects the AIFF container and identifies the uncompressed PCM audio codec (typically pcm_s16be for standard 16-bit AIF files) automatically from the file header.
-c:a aac Transcodes the audio stream using FFmpeg's native AAC encoder, converting the uncompressed PCM audio from the AIF source into lossy AAC-LC compression — the standard audio codec for M4B audiobook files on Apple platforms.
-b:a 128k Sets the AAC audio bitrate to 128 kilobits per second. This is a standard quality level for spoken-word audiobook content and produces files roughly 1 MB per minute, compared to the much larger uncompressed AIF source. Increase to 192k or 256k for music-heavy content.
-movflags +faststart Moves the MP4 moov atom (which contains file structure and metadata) to the beginning of the M4B file. This is required for proper streaming behavior and ensures compatibility with audiobook apps like Apple Books that may begin parsing the file before it is fully loaded.
output.m4b Defines the output filename with the .m4b extension, which tells FFmpeg to write an MPEG-4 container and signals to Apple Books, iTunes, and compatible podcast apps that this file is an audiobook with chapter and bookmarking capabilities rather than a generic audio file.

Common Use Cases

  • A narrator records audiobook chapters in a professional studio as individual AIF files for maximum quality, then converts them to M4B for distribution on Apple Books or Audible-compatible platforms.
  • A podcaster records long-form interview audio in AIF on a Mac and needs to convert it to M4B to distribute as a chapter-marked podcast episode that listeners can resume after pausing.
  • An author self-publishing on Apple Books needs to deliver audiobook files in M4B format with proper chapter markers, starting from lossless AIF masters to preserve maximum quality through the lossy transcoding step.
  • A language learning app developer has pronunciation reference recordings in AIF and needs to package them as M4B audiobook lessons with bookmarkable sections for learners to revisit specific phrases.
  • A meditation or lecture series producer has high-fidelity AIF recordings and wants to create M4B files that listeners can bookmark at specific points within long, continuous audio sessions.
  • A sound engineer archiving legacy Mac-era AIF recordings wants to reduce storage footprint for distribution copies while keeping the original AIF masters intact, producing compact AAC-encoded M4B files for everyday listening.

Frequently Asked Questions

Yes, this conversion is lossy — AAC encoding permanently discards some audio information from the original uncompressed PCM stored in the AIF file. At the default 128k bitrate, the quality loss is generally imperceptible to most listeners for speech, audiobooks, and podcasts, which are the primary use cases for M4B. If your AIF source contains music or complex audio, increasing to 192k or 256k will better preserve fidelity. The original AIF file is not modified, so you always retain the lossless master.
AIF is a raw audio container format designed for uncompressed audio storage and has no built-in support for chapter markers, bookmarks, or navigation metadata. M4B, by contrast, is built on the MPEG-4 container specification and includes a dedicated chapter track structure recognized by Apple Books and iTunes. This makes M4B the standard format for audiobooks on Apple platforms, where listeners expect to jump between chapters and have the app remember their playback position across devices.
The FFmpeg command on this page converts the audio and prepares the M4B container, but chapter metadata must be supplied separately via a metadata file or by merging pre-existing chapter data. You can create a chapter metadata file in FFmpeg's ffmetadata format and add it using the -i flag alongside your AIF input, then map it with -map_metadata. Alternatively, tools like mp4chaps or Chapter and Verse can inject chapter markers into an already-converted M4B file after the fact.
Replace '128k' in the -b:a flag with your desired bitrate. For audiobooks and spoken-word content, 64k or 96k produces perfectly acceptable quality at a very small file size. For music or high-fidelity audio, 192k or 256k is recommended to minimize perceptible loss from the AAC encoding of your lossless AIF source. For example: ffmpeg -i input.aif -c:a aac -b:a 192k -movflags +faststart output.m4b
FFmpeg will attempt to copy compatible metadata tags from the AIF source into the M4B container's iTunes-style tag structure. Common fields like title, artist, and album typically transfer correctly. However, AIF metadata support varies by how the original file was tagged, and some custom or non-standard AIF chunks may not map cleanly to MPEG-4 atoms. You should verify the output metadata in iTunes or a tag editor like MusicBrainz Picard, and manually correct any missing or misformatted fields before distribution.
Yes, you can adapt the command for batch processing in a shell script. On macOS or Linux, a simple loop works well: for f in *.aif; do ffmpeg -i "$f" -c:a aac -b:a 128k -movflags +faststart "${f%.aif}.m4b"; done. On Windows using PowerShell: Get-ChildItem *.aif | ForEach-Object { ffmpeg -i $_.FullName -c:a aac -b:a 128k -movflags +faststart ($_.BaseName + '.m4b') }. This is particularly useful when converting an entire audiobook's worth of individual chapter recordings from AIF masters.

Technical Notes

AIF files use big-endian PCM encoding (pcm_s16be, pcm_s24be, pcm_s32be, or float variants), which is native to Apple's historically big-endian processor architecture. When FFmpeg reads the AIF, it decodes these raw PCM samples into an internal float representation before passing them to the AAC encoder. The AAC encoder used here is FFmpeg's native aac encoder, which produces compliant MPEG-4 AAC-LC audio — the most universally compatible AAC profile for Apple Books, iTunes, and iOS/macOS devices. If you need higher-quality AAC encoding, you can substitute -c:a libfdk_aac in a locally installed FFmpeg build (requires enabling non-free components at compile time), though the native encoder is sufficient for audiobook use cases. The M4B container uses MP4 atoms (moov, mdat) and the -movflags +faststart flag moves the moov atom to the front of the file, which is important for streaming and for compatibility with some audiobook players that validate file structure before playback. File size will be dramatically smaller than the AIF source — a 24-bit/48kHz AIF at approximately 8.6 MB per minute will compress to roughly 1 MB per minute at 128k AAC. Note that M4B does not support multiple audio tracks or embedded subtitles, so if your AIF workflow involves multi-track sessions, you will need to mix down to a single stereo or mono track before or during this conversion.

Related Tools