Convert MKV to AC3 — Free Online Tool

Extract and convert audio from MKV files into AC3 (Dolby Digital) format, encoding directly to the ac3 codec at 192k bitrate by default. Ideal for preparing surround sound audio tracks for DVD authoring, Blu-ray workflows, or broadcast-compatible delivery.

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

MKV is a container format, meaning it wraps one or more streams — video, audio, subtitles — into a single file. When converting MKV to AC3, the tool discards the video and subtitle streams entirely, extracting only the primary audio track. That audio is then transcoded using the ac3 encoder into Dolby Digital format. AC3 is not a container but a raw audio bitstream, so the output file holds only encoded audio with no wrapper — no chapters, no metadata fields, no multiple tracks. If the source MKV audio is already AC3, re-encoding still occurs to produce a clean standalone .ac3 file. If the source is AAC, Opus, FLAC, or another codec, the audio is fully decoded and re-encoded to AC3, which introduces some generation loss regardless of the chosen bitrate.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg binary. In this browser-based tool, FFmpeg runs locally via WebAssembly (FFmpeg.wasm), so no file data leaves your machine — the same open-source FFmpeg engine powers both the in-browser conversion and the desktop command shown here.
-i input.mkv Specifies the input Matroska file. FFmpeg will parse all streams inside the MKV — video, audio, subtitles, attachments — but only the audio stream will be used in this conversion, since the AC3 output format cannot carry video or subtitle data.
-c:a ac3 Sets the audio codec to ac3, which is FFmpeg's implementation of the Dolby Digital encoder. This instructs FFmpeg to transcode the input audio — regardless of whether it's AAC, Opus, FLAC, or another codec — into a Dolby Digital AC3 bitstream compatible with DVD, Blu-ray, and broadcast systems.
-b:a 192k Sets the audio bitrate to 192 kilobits per second, which is Dolby Digital's standard bitrate for stereo content. For 5.1 surround sound sources, increasing this to 384k or higher is strongly recommended to preserve multichannel audio fidelity within the constraints of the lossy AC3 format.
output.ac3 Defines the output filename with the .ac3 extension, which tells FFmpeg to write a raw Dolby Digital bitstream rather than wrapping it in a container. This bare bitstream format is directly compatible with professional authoring tools and AV receivers but cannot be played by all media players without container support.

Common Use Cases

  • Extracting a 5.1 surround sound audio track from an MKV movie file to import into DVD Studio Pro or similar DVD authoring software that requires standalone AC3 streams
  • Preparing a Dolby Digital audio track from an MKV source for multiplexing into an MPEG-2 transport stream for broadcast or cable television playout
  • Converting the audio from an MKV encode to AC3 for use on a standalone Blu-ray or DVD player that does not support MKV playback or alternative audio codecs like Opus or AAC
  • Stripping the Dolby Digital-compatible audio from an MKV file to test surround sound decoding behavior on an AV receiver or home theater processor
  • Creating a lightweight AC3 audio-only file from a large MKV for archiving or syncing dialogue and sound design separately from the video in a post-production pipeline
  • Extracting audio from an MKV recording of a live event to deliver as a broadcast-ready AC3 file to a television network requiring Dolby Digital format

Frequently Asked Questions

Yes, some quality loss is unavoidable. AC3 is a lossy codec, and if your MKV's audio track is already in a lossy format like AAC or MP3, converting to AC3 means decoding that lossy audio and re-encoding it with a different lossy algorithm — a process called transcoding that compounds compression artifacts. If your MKV source contains a lossless track (such as FLAC or PCM), the quality loss will be determined solely by the AC3 bitrate you choose, with 320k or higher bitrates preserving most perceptible detail for stereo content and 384k–640k being more appropriate for 5.1 surround.
Yes, provided the source MKV audio track is already encoded in 5.1 (or higher) channel layout. The ac3 encoder will respect the input channel configuration and encode up to 5.1 channels natively, since Dolby Digital AC3 was specifically designed for multichannel surround sound. However, if your MKV contains only a stereo track, the output AC3 file will also be stereo — the converter does not upmix channels. For 5.1 output, use a bitrate of at least 384k; the default 192k is more suited to stereo content.
All of them are discarded. AC3 is a raw audio bitstream format — it has no container structure capable of holding video streams, subtitle tracks, or chapter metadata. The output .ac3 file contains only the encoded Dolby Digital audio. If you need to keep the video and simply want to change the audio codec within a container, you would target a format like MKV or MP4 instead of a bare AC3 file.
Modify the value after the -b:a flag. For example, to encode at 384k for a 5.1 surround track, change the command to: ffmpeg -i input.mkv -c:a ac3 -b:a 384k output.ac3. AC3 supports bitrates from 96k up to 640k, though Dolby's own specification recommends 384k for 5.1 content and 192k for stereo. Choosing a bitrate above 640k is not valid for AC3 and FFmpeg will reject it.
Yes, but you need to modify the FFmpeg command manually. MKV files commonly carry multiple audio tracks — for example, a 5.1 English track and a stereo commentary track. By default, FFmpeg selects the first audio stream. To target a specific track, add the -map flag: ffmpeg -i input.mkv -map 0:a:1 -c:a ac3 -b:a 384k output.ac3, where 0:a:1 selects the second audio stream (zero-indexed). Run ffmpeg -i input.mkv first to see a list of all streams and their indices.
Several factors contribute to this. First, the video stream — typically the largest component of an MKV file — is completely removed. Second, AC3 is a lossy audio codec, so even at higher bitrates the encoded audio is far smaller than lossless source formats. An MKV containing a two-hour film might be 10–20GB, while the extracted AC3 audio at 384k would typically be under 400MB. This dramatic reduction is expected and does not indicate a problem with the conversion.

Technical Notes

The ac3 encoder in FFmpeg implements the Dolby Digital standard, which defines specific allowed bitrates — the encoder will round or reject values that fall outside the AC3 specification. AC3 supports up to 5.1 channels (left, center, right, left surround, right surround, and LFE), and the output channel count is determined by the input audio stream unless explicitly overridden with the -ac flag. One important limitation: AC3 does not support sample rates other than 32kHz, 44.1kHz, and 48kHz, so if your MKV audio uses an unusual sample rate, FFmpeg will automatically resample it, which introduces a minor additional quality step. Metadata such as track titles, language tags, and artist information from the MKV is not carried over, since the .ac3 raw bitstream format has no standardized metadata container. If downstream tools require language or track metadata, you should mux the AC3 output into a container like MPEG-TS or VOB rather than using it as a bare .ac3 file.

Related Tools