Extract Audio from MKV to AC3 — Free Online Tool
Extract and convert audio from MKV video files to AC3 (Dolby Digital) format, producing a standalone .ac3 file encoded with the ac3 codec at 192k bitrate by default. This is ideal for preserving surround sound audio from MKV sources for use in DVD authoring, Blu-ray workflows, or home theater systems that require native Dolby Digital streams.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your MKV 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
MKV containers can hold a wide variety of audio codecs — AAC, MP3, Opus, Vorbis, or FLAC — alongside video and subtitle tracks. This tool demuxes the MKV container, discards the video stream entirely, and re-encodes the audio track using the ac3 codec (Dolby Digital). Because MKV audio is almost never already encoded as AC3 in typical consumer files, a full audio transcode is performed rather than a simple stream copy. The output is a raw .ac3 bitstream file — not a container like MP4 or MKV — meaning it holds only the Dolby Digital audio with no video, subtitles, chapters, or metadata. The default output bitrate is 192k, which supports stereo Dolby Digital; for 5.1 surround output you would need to ensure the source has multi-channel audio and adjust the channel layout accordingly.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg binary — the underlying engine that this browser tool runs via WebAssembly. On your desktop, this assumes FFmpeg is installed and available in your system PATH. |
-i input.mkv
|
Specifies the input Matroska (.mkv) file, which may contain video, audio (AAC, MP3, Opus, Vorbis, or FLAC), subtitles, chapters, and metadata tracks. |
-vn
|
Disables video output entirely, telling FFmpeg to ignore all video streams from the MKV. Since the goal is a standalone AC3 audio file, the video track is not needed and including it would cause an error because AC3 is an audio-only format. |
-c:a ac3
|
Instructs FFmpeg to encode the audio stream using the ac3 encoder, producing Dolby Digital output. This is a full transcode — the MKV's source audio codec (e.g., AAC or FLAC) is decoded and re-encoded as AC3 rather than being stream-copied. |
-b:a 192k
|
Sets the AC3 audio bitrate to 192 kilobits per second, which is the standard Dolby Digital bitrate for stereo content and the default for this tool. For 5.1 surround source material, increasing this to 384k or 448k is strongly recommended to maintain fidelity. |
output.ac3
|
Defines the output as a raw Dolby Digital bitstream file (.ac3) with no container wrapper. This format is directly compatible with DVD authoring tools, Blu-ray muxers, and home theater devices that accept discrete AC3 streams. |
Common Use Cases
- Extracting the Dolby Digital audio track from an MKV movie rip to mux into a DVD or Blu-ray authoring project that requires a native AC3 stream
- Preparing audio from an MKV source file for import into video editing software or NLEs that natively accept AC3/Dolby Digital but not AAC or Opus
- Stripping the audio from an MKV broadcast recording to create a standalone AC3 file compatible with home theater receivers and AV processors that decode Dolby Digital
- Converting an MKV file's AAC or Vorbis audio track to AC3 for playback on older Blu-ray players or game consoles that support Dolby Digital but not modern codecs
- Archiving the audio portion of an MKV video in AC3 format for use as a secondary audio track in a DVD authoring suite like DVDFlick or Encore
Frequently Asked Questions
Yes, some quality loss is expected in most cases. If your MKV's audio track is AAC, MP3, Opus, or Vorbis, the conversion to AC3 involves decoding a lossy format and re-encoding it as another lossy format — a generation loss. If the source audio is FLAC (lossless), the conversion to AC3 at 192k is a one-time lossy encode, which is the best possible scenario. AC3 at 192k is generally considered transparent for stereo content, but audiophiles may prefer 320k or higher for critical listening.
It can, but only if the source MKV contains a multi-channel audio track (e.g., 5.1 AAC or FLAC). FFmpeg will re-encode the channels it finds in the source. However, the default 192k bitrate used by this tool is on the low side for 5.1 — Dolby Digital 5.1 is typically encoded at 384k or 448k for broadcast quality. If your source has surround sound, consider running the command locally with a higher -b:a value like 448k for better fidelity.
A raw .ac3 file is a bare Dolby Digital bitstream with no container wrapping — it contains only the audio and nothing else. This is intentional for use cases like DVD/Blu-ray authoring where you need to supply discrete audio streams. If you instead want an MKV or MP4 file with AC3 audio inside it, you would need a different tool that remuxes the AC3 stream into a container alongside the video track.
All of them are discarded. The AC3 format is a raw audio bitstream and does not support subtitles, chapters, or container-level metadata — those are features of MKV's container, not of audio codecs. The -vn flag drops the video, and by targeting a bare .ac3 output, FFmpeg writes only the encoded audio stream with no wrapper to carry any other data.
Replace the value after -b:a in the command. For example, to encode at 448k (recommended for 5.1 surround), use: ffmpeg -i input.mkv -vn -c:a ac3 -b:a 448k output.ac3. Valid AC3 bitrates include 96k, 128k, 192k, 256k, 320k, 384k, 448k, and 640k. Higher bitrates reduce compression artifacts but increase file size. For stereo content, 192k–256k is generally sufficient; for 5.1, prefer 384k or 448k.
Yes, on the command line you can loop over files using a shell one-liner. On Linux/macOS: for f in *.mkv; do ffmpeg -i "$f" -vn -c:a ac3 -b:a 192k "${f%.mkv}.ac3"; done. On Windows Command Prompt: for %f in (*.mkv) do ffmpeg -i "%f" -vn -c:a ac3 -b:a 192k "%~nf.ac3". The browser-based tool processes one file at a time, so the desktop FFmpeg command is the recommended approach for batch jobs or files over 1GB.
Technical Notes
AC3 (Dolby Digital) enforces strict constraints on bitrate and channel configuration that differ significantly from the flexible codec options available in MKV. The ac3 encoder in FFmpeg supports bitrates from 32k up to 640k, but the Dolby Digital specification ties acceptable bitrates to channel count — for stereo (2.0), 192k–256k is the standard range; for 5.1, the spec recommends 384k–448k with 640k as the ceiling. FFmpeg will automatically map input channels to AC3-compatible layouts, but complex multi-track MKV files (with multiple audio streams) will only have the first (default) audio track converted unless you specify -map 0:a:N to select a specific track. The output .ac3 file has no container overhead, so file size is almost entirely determined by bitrate and duration. Metadata embedded in the MKV (title, language tags, encoder information) is not preserved in the AC3 output. Finally, because AC3 is a lossy codec, there is no lossless AC3 option — if your use case requires lossless audio, consider extracting to FLAC instead.