Convert AC3 to M4A — Free Online Tool

Convert AC3 (Dolby Digital) audio files to M4A using AAC encoding — ideal for bringing surround sound or broadcast audio into an Apple-compatible, streamable format. This tool runs entirely in your browser via FFmpeg.wasm, so your files never leave your device.

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

AC3 is Dolby Digital's lossy codec, commonly encoding 5.1 surround sound at bitrates up to 640kbps. M4A is an MPEG-4 audio container that typically holds AAC-encoded audio. Since AC3 and AAC are completely different codecs, this conversion is a full transcode — FFmpeg decodes the AC3 audio to raw PCM and then re-encodes it to AAC at 128kbps by default. If your source is a 5.1 surround AC3 file, the AAC encoder will handle the downmix to stereo unless you explicitly configure channel output. Because both formats are lossy, there is a small quality cost from the generational encode, but at 128kbps AAC the result is perceptually clean for stereo playback and far more compatible with Apple devices, web browsers, and podcast platforms.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg binary. In this browser tool, FFmpeg runs as a WebAssembly module (FFmpeg.wasm) entirely in your local environment — no server is involved.
-i input.ac3 Specifies the input file, which is a raw AC3 (Dolby Digital) audio file. FFmpeg will detect the AC3 codec and channel layout (mono, stereo, or 5.1 surround) automatically from the stream.
-c:a aac Sets the audio codec for the output to AAC using FFmpeg's built-in AAC encoder. This triggers a full transcode — FFmpeg decodes the AC3 audio to raw PCM and re-encodes it as AAC, which is the native and most compatible codec for the M4A container.
-b:a 128k Sets the AAC output bitrate to 128kbps. This is a standard perceptually transparent bitrate for stereo AAC audio and produces a file roughly 60–70% smaller than a comparable 320kbps AC3 source while maintaining good quality for music and dialogue.
-vn Disables any video output stream. This flag is a safeguard to ensure the output is a pure audio-only M4A file, in case the AC3 source is wrapped in a container that also contains video data.
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, which is the standard format for iTunes, Apple Music, iPhone playback, and most podcast platforms.

Common Use Cases

  • Converting the AC3 audio track ripped from a DVD or Blu-ray into an M4A file for playback in iTunes or on an iPhone without needing a Dolby decoder
  • Preparing broadcast television audio (AC3 is the mandatory audio format for ATSC broadcast) for upload to a podcast platform that requires AAC or M4A files
  • Archiving the dialogue-only center channel from a Dolby Digital 5.1 AC3 stream as a compact M4A file for accessibility or transcription purposes
  • Converting AC3 audio from a video production project into M4A so it can be imported into GarageBand or Logic Pro for further editing
  • Making Dolby Digital audio from a home theater rip compatible with web-based media players, which universally support AAC inside M4A but rarely support raw AC3
  • Distributing extracted movie or TV audio as M4A to take advantage of M4A's iTunes metadata support for tagging tracks with title, artist, and album artwork

Frequently Asked Questions

Yes, there is some quality loss because both AC3 and AAC are lossy codecs — decoding AC3 and re-encoding to AAC is a generational encode. However, at the default 128kbps AAC output, the result is perceptually transparent for most stereo listening. If your source AC3 was encoded at a high bitrate (e.g., 448kbps or 640kbps for 5.1), choosing a higher AAC output bitrate like 192kbps or 256kbps will better preserve the original fidelity.
AC3 files are frequently encoded in 5.1 surround (6 channels), while most M4A/AAC playback contexts expect stereo. FFmpeg's AAC encoder will automatically downmix the 5.1 channels to stereo by default, combining the surround information into two channels. If you need to retain 5.1 in the output, you can modify the command to add '-ac 6' before the output file, though playback support for multichannel AAC in M4A is limited compared to standard stereo.
AC3/Dolby Digital requires a licensed Dolby decoder, which Apple devices and web browsers do not include for standalone audio playback. AAC inside an M4A container is natively supported by every Apple device, Safari, Chrome, and Firefox, as well as platforms like iTunes, Spotify, and most podcast apps. M4A also supports iTunes metadata tags like track title, artist, album, and cover art, which AC3 does not.
Replace the '128k' value in '-b:a 128k' with your desired bitrate. For example, use '-b:a 192k' for higher quality or '-b:a 96k' for a smaller file. AAC at 128kbps is generally considered near-transparent for stereo, but if your source AC3 was a high-bitrate 5.1 track, bumping to 192kbps or 256kbps is worthwhile. The tool's quality selector updates this value automatically before running the command.
Yes. On Linux or macOS, you can run a shell loop: 'for f in *.ac3; do ffmpeg -i "$f" -c:a aac -b:a 128k -vn "${f%.ac3}.m4a"; done'. On Windows Command Prompt, use: 'for %f in (*.ac3) do ffmpeg -i "%f" -c:a aac -b:a 128k -vn "%~nf.m4a"'. This browser tool processes one file at a time, so the FFmpeg command is especially useful for batch jobs or files over 1GB.
AC3 files do not support chapters natively, so there are no chapter markers to transfer. However, M4A does support chapters, and if you ever convert from a container format like MKV that carries both AC3 audio and chapter data, you would need a different workflow to preserve chapters. For a direct AC3-to-M4A conversion, chapter support is not relevant since the source format cannot hold that data.

Technical Notes

AC3 supports up to 6 discrete audio channels (5.1) and bitrates from 32kbps to 640kbps, making it a flexible broadcast and home video codec. AAC, the default codec in M4A, is technically superior to AC3 at equivalent bitrates — it achieves better audio quality at the same file size, which is why Apple and the streaming industry moved to AAC. The default output bitrate of 128kbps AAC is suitable for stereo content derived from AC3 sources. One important limitation: FFmpeg's built-in 'aac' encoder (used here) is a solid general-purpose encoder, but for maximum AAC quality, advanced users may prefer to install FFmpeg with 'libfdk_aac' support, which requires a separately compiled binary due to licensing. Metadata from AC3 files is minimal — AC3 does not carry ID3 or iTunes tags — so the output M4A will not automatically populate with track metadata; you will need to tag it manually using a tool like MusicBrainz Picard or iTunes. The '-vn' flag is included as a safeguard to strip any video stream that might be present in an AC3 container, ensuring a clean audio-only M4A output.

Related Tools