Convert AIF to M4A — Free Online Tool
Convert AIF (Apple's uncompressed PCM audio) to M4A using AAC encoding at 128kbps — reducing file sizes by up to 90% while producing audio optimized for iTunes, Apple Music, and iOS playback. This tool runs entirely in your browser using FFmpeg.wasm; no files leave your device.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your AIF file here
or click to browse
Free — no uploads, no signups. Your files never leave your browser.
Settings
Note: Browser-based encoding uses approximate quality targets. For precise CRF compression, copy the FFmpeg command above and run it on your desktop.
Estimated output:
Conversion Complete!
DownloadHow It Works
AIF stores audio as raw uncompressed PCM data (typically 16-bit, 24-bit, or 32-bit big-endian samples), which means every sample is stored at full fidelity with no compression whatsoever. During conversion, FFmpeg decodes those raw PCM samples and re-encodes them using the AAC (Advanced Audio Coding) codec, which applies perceptual audio compression — discarding frequencies and details that human hearing is least sensitive to. The encoded audio stream is then wrapped in an MPEG-4 container with the .m4a extension. This is a full transcode, not a remux: the audio data is genuinely re-encoded, which is why file sizes drop so dramatically. The default bitrate of 128kbps produces near-transparent quality for most listeners on typical playback devices.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg program, the open-source multimedia processing engine that handles the AIF decoding and AAC encoding pipeline underlying this conversion. |
-i input.aif
|
Specifies the input AIF file. FFmpeg reads the uncompressed PCM audio samples stored in big-endian format from this file and passes them to the encoder. |
-c:a aac
|
Sets the audio codec to AAC (Advanced Audio Coding), which is the native codec for M4A files and the standard format used by iTunes and Apple Music for compressed audio distribution. |
-b:a 128k
|
Sets the AAC audio bitrate to 128 kilobits per second, a standard quality level that balances file size and audio transparency. Increase to 192k or 256k for higher fidelity music, or decrease to 96k for smaller spoken-word files. |
-vn
|
Explicitly disables any video stream in the output. This is a required safety flag for M4A because FFmpeg might otherwise attempt to pass through embedded artwork or video data from the source, which is incompatible with a clean audio-only M4A file. |
output.m4a
|
Specifies the output filename and container. The .m4a extension tells FFmpeg to wrap the AAC-encoded audio in an MPEG-4 audio container, the format expected by iTunes, Apple Music, iOS, and most modern media players. |
Common Use Cases
- Preparing a high-quality AIF recording from a digital audio workstation (DAW) for distribution on iTunes or Apple Music, which prefers M4A/AAC over raw AIF files
- Shrinking a large AIF sample library or sound effects archive so it fits on an iPhone or iPad without consuming excessive storage
- Converting AIF masters from a Mac recording session into M4A files suitable for streaming or embedding in a podcast episode
- Sharing a lossless AIF recording with collaborators or clients who need a smaller, universally playable file that works on both Apple and non-Apple devices
- Preparing AIF voiceover or narration files for use in video editing software or presentation tools that require a smaller audio format
- Archiving a collection of old AIF files from legacy Mac software into a modern, compact M4A format for long-term storage on mobile devices
Frequently Asked Questions
Yes, this conversion is lossy — AAC at 128kbps discards some audio information compared to your original uncompressed AIF file. In practice, most listeners find AAC at 128kbps indistinguishable from the original on typical headphones and speakers. If you need higher fidelity, you can increase the bitrate to 192kbps or 256kbps in the FFmpeg command, or use the FLAC codec within the M4A container for a lossless result.
AIF stores audio as completely uncompressed PCM data — a 5-minute stereo track at 16-bit/44.1kHz occupies roughly 50MB. AAC at 128kbps compresses that same audio down to about 4.8MB, a reduction of approximately 90%. The size difference reflects the shift from raw sample-by-sample storage to perceptual compression that models and discards data the ear is unlikely to notice.
Not with AAC encoding. AAC is a lossy codec and does not preserve bit depth in the same way PCM does — your 24-bit or 32-bit AIF will be decoded and then re-encoded as a compressed AAC stream, so the original bit depth is not retained. If preserving bit depth matters (e.g., for mastering or archival), consider encoding to FLAC inside the M4A container using '-c:a flac' instead, which does support higher bit depths losslessly.
AIF supports a limited set of metadata via its MARK and NAME chunks, and FFmpeg will attempt to map compatible tags to the M4A/iTunes metadata fields during conversion. However, AIF metadata support is inconsistent, and some tags embedded by specific DAWs or editors may not transfer reliably. It is recommended to verify and re-tag your M4A files in iTunes or a dedicated tag editor like MusicBrainz Picard after conversion.
Replace the '128k' value in '-b:a 128k' with your preferred bitrate. For example, use '-b:a 256k' for higher quality suitable for critical listening or music distribution, or '-b:a 96k' for smaller files where bandwidth or storage is limited. AAC generally achieves transparent quality at 192kbps and above for most music content.
Yes. On macOS or Linux, you can batch convert with a shell loop: 'for f in *.aif; do ffmpeg -i "$f" -c:a aac -b:a 128k -vn "${f%.aif}.m4a"; done'. On Windows Command Prompt, use: 'for %f in (*.aif) do ffmpeg -i "%f" -c:a aac -b:a 128k -vn "%~nf.m4a"'. This is especially useful for large collections or files over 1GB that exceed the browser tool's limit.
Technical Notes
AIF (Audio Interchange File Format) stores PCM audio in big-endian byte order, which is a legacy of its Motorola 68000 origins on classic Macs. FFmpeg handles all standard AIF bit depths (16-bit, 24-bit, 32-bit integer, and 32/64-bit float) transparently during decode. The output M4A container is technically an MPEG-4 Part 14 file renamed with the .m4a extension to signal audio-only content — this is the same container format as .mp4 but without a video stream, which is why the '-vn' flag is included to explicitly suppress any video track. AAC is natively supported by every Apple device and operating system, making M4A/AAC the most iTunes-compatible output choice. One limitation to be aware of: M4A with AAC does not support gapless playback metadata for album sequences unless explicitly written by iTunes or compatible tools, so if you are converting a continuous live recording or DJ mix, you may experience a brief gap at track boundaries on some players. The M4A container does support chapters, but those are not written by this command since AIF does not carry chapter data.