Convert M4A to AC3 — Free Online Tool

Convert M4A audio files to AC3 (Dolby Digital) format, re-encoding AAC audio to the ac3 codec used in DVDs, Blu-rays, and broadcast television. This is especially useful when authoring disc content or preparing audio tracks for home theater systems that require Dolby Digital compatibility.

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

M4A files typically contain AAC-encoded audio inside an MPEG-4 container. Since AC3 uses an entirely different codec (Dolby Digital), this conversion is a full transcode — the AAC audio stream is decoded to raw PCM and then re-encoded using the ac3 encoder at the target bitrate (192k by default). The MPEG-4 container is replaced by a raw AC3 bitstream file, which has no container wrapper at all. This means iTunes metadata, chapter markers, and gapless playback tags present in the M4A source will not carry over to the AC3 output, as the AC3 format does not support those features.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg tool. In this browser-based tool, the same FFmpeg engine runs locally via WebAssembly (FFmpeg.wasm), so no file ever leaves your device.
-i input.m4a Specifies the input file — an M4A file containing an AAC-encoded audio stream inside an MPEG-4 container. FFmpeg reads the container, detects the AAC audio stream, and prepares it for decoding.
-c:a ac3 Instructs FFmpeg to encode the audio stream using the ac3 (Dolby Digital) codec. Since AAC and AC3 are incompatible codecs, this triggers a full decode of the AAC audio to PCM followed by re-encoding to the Dolby Digital format.
-b:a 192k Sets the AC3 audio bitrate to 192 kilobits per second, which is the standard bitrate for stereo Dolby Digital on DVDs. You can increase this to 384k or 448k for higher fidelity, or reduce it to 128k for smaller files at the cost of audio quality.
output.ac3 Defines the output as a raw AC3 elementary stream file. The .ac3 extension tells FFmpeg to write a bare Dolby Digital bitstream without any container wrapper, which is the format expected by DVD authoring tools and broadcast delivery systems.

Common Use Cases

  • Preparing a stereo music track or podcast audio for inclusion as an AC3 audio stream in a DVD or Blu-ray authoring project
  • Converting iTunes-purchased or recorded M4A audio into Dolby Digital format for playback on AV receivers and home theater systems that require AC3 input
  • Creating a compatible AC3 audio track to mux into an MKV or VOB video container that expects Dolby Digital audio
  • Transcoding M4A podcast or audiobook files into broadcast-compatible AC3 audio for television or cable delivery workflows
  • Testing AC3 audio output quality and bitrate options before committing to a full DVD authoring pipeline

Frequently Asked Questions

Yes, some quality loss is expected. Both AAC and AC3 are lossy codecs, so converting between them involves decoding the AAC stream to uncompressed PCM and then re-encoding that PCM data as Dolby Digital AC3. This generation loss is generally minor at 192k or higher, but the source quality is capped by the original M4A bitrate — if the source was 128k AAC, re-encoding to 192k AC3 won't recover detail that was already discarded.
The AC3 format does support up to 5.1 surround sound, which is one of its primary use cases in DVD and Blu-ray. However, this tool converts your M4A source as-is — since M4A files typically contain stereo AAC audio, the AC3 output will also be stereo. To produce a true 5.1 AC3 track, you would need a multi-channel source audio file to begin with.
They are lost. The AC3 format is a raw Dolby Digital bitstream and does not support container-level metadata, chapter markers, iTunes tags, album art, or gapless playback information. If you need to preserve metadata, you should store it in a higher-level container (such as MKV) that wraps the AC3 stream rather than working with bare .ac3 files.
Replace the value after -b:a in the command. For example, use -b:a 384k or -b:a 640k for higher quality, or -b:a 128k for a smaller file. AC3 supports bitrates from 96k up to 640k. For DVD-standard Dolby Digital stereo, 192k is typical; for 5.1 surround, 384k or 448k is more common.
Yes. On Linux or macOS, you can use a shell loop: for f in *.m4a; do ffmpeg -i "$f" -c:a ac3 -b:a 192k "${f%.m4a}.ac3"; done. On Windows Command Prompt, use: for %f in (*.m4a) do ffmpeg -i "%f" -c:a ac3 -b:a 192k "%~nf.ac3". The browser-based tool processes one file at a time, so the FFmpeg command is the practical path for bulk conversions.
An .ac3 file is a raw Dolby Digital elementary stream with no container wrapping it. This is the native format expected by DVD authoring tools and some broadcast workflows. If you need the AC3 audio embedded inside a video file, you would mux the .ac3 output into a container like MKV or VOB using a separate FFmpeg command with the -c:a copy flag to avoid re-encoding.

Technical Notes

The AC3 codec (also known as Dolby Digital) uses a transform-based lossy compression algorithm quite different from AAC's perceptual coding model, so the transcode from M4A to AC3 is never a lossless or copy operation — full decode and re-encode is always required. The default 192k bitrate is the standard for stereo Dolby Digital as used on DVDs and in broadcast. One important limitation: the ac3 encoder in FFmpeg enforces specific constraints on sample rates (32kHz, 44.1kHz, or 48kHz) and channel layouts; if your M4A source uses an unusual sample rate, FFmpeg may automatically resample it. The resulting .ac3 file contains no metadata or tagging support, and cannot store chapter information that M4A supports. File sizes for AC3 at 192k will be roughly comparable to the source M4A if it was encoded at a similar bitrate, but since both are lossy formats at similar rates, the AC3 output will not be noticeably larger or smaller than the input in most cases.

Related Tools