Convert MKV to M4A — Free Online Tool

Extract and convert audio from MKV video files into M4A format, encoding the audio stream as AAC at 128k bitrate while discarding all video data. Ideal for pulling music, dialogue, or soundtracks from Matroska containers into a compact, iTunes-compatible audio file.

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 files are versatile containers that often bundle video, multiple audio tracks, subtitles, and chapters together. When converting to M4A, FFmpeg reads the MKV container and extracts only the first audio stream, ignoring all video and subtitle data entirely. Because M4A is an audio-only MPEG-4 container, the video must be discarded using the -vn flag — it cannot be preserved. If the MKV's audio is already AAC-encoded, FFmpeg still re-encodes it to ensure clean compatibility with the M4A container and the specified bitrate target. The resulting M4A file retains chapter markers if they were present in the source MKV, and the AAC codec ensures broad compatibility with Apple devices, iTunes, and most modern media players. Audio tracks beyond the first are dropped, as M4A supports only a single audio stream.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg program. When run locally on your desktop, this must be installed and available on your system PATH; in the browser tool, it runs as FFmpeg.wasm compiled to WebAssembly with no installation required.
-i input.mkv Specifies the input file — in this case, a Matroska (.mkv) container which may contain video, one or more audio tracks, subtitles, chapters, and metadata. Replace 'input.mkv' with the actual path to your file when running locally.
-c:a aac Sets the audio codec to AAC (Advanced Audio Coding), the native and most compatible codec for M4A files. AAC is required for broad Apple ecosystem compatibility and is the only codec guaranteed to play correctly in iTunes, Apple Music, and iOS without additional software.
-b:a 128k Sets the AAC audio bitrate to 128 kilobits per second, which is the default and a reasonable balance between file size and audio quality. For music or high-fidelity content from the MKV source, increasing this to 192k or 256k is recommended.
-vn Disables all video stream output, which is essential here because M4A is an audio-only container and cannot hold video data. Without this flag, FFmpeg would attempt to process the video track from the MKV and the output would be invalid or rejected by M4A-compatible players.
output.m4a Defines the output filename with the .m4a extension, which tells FFmpeg to wrap the encoded AAC audio in an MPEG-4 audio container. The .m4a extension specifically signals to iTunes, Apple Music, and other players that this is an audio-only MPEG-4 file.

Common Use Cases

  • Extract a music concert recorded in MKV format to an M4A file for playback in iTunes or Apple Music on iPhone
  • Pull the dialogue or commentary track from an MKV screen recording or lecture video to create a standalone podcast episode or audio file
  • Convert an MKV audiobook rip — which may contain chapters — into an M4A file that preserves chapter markers for navigation in Apple Books or podcast apps
  • Strip the audio from a large MKV movie file to create a lightweight M4A for listening to a film's score or soundtrack on a portable device
  • Extract narration audio from an MKV video tutorial to produce an audio-only version for accessibility or offline listening
  • Convert MKV game recordings or streams into M4A audio files to isolate in-game music or voice acting clips

Frequently Asked Questions

Yes, some quality loss occurs because FFmpeg re-encodes the audio to AAC at 128k bitrate, which is a lossy compression format. If the original MKV contained a lossless audio track (such as FLAC or PCM), the re-encoding introduces compression artifacts. If the source was already lossy (e.g., AAC or MP3 in the MKV), you're performing a generation-loss re-encode. At 128k AAC, quality is generally transparent for speech and acceptable for music, but audiophiles extracting high-quality soundtracks should consider increasing the bitrate to 192k or 320k in the FFmpeg command.
Yes — unlike many audio formats, M4A (as an MPEG-4 container) does support chapter metadata, and FFmpeg will carry over chapter markers from the source MKV during this conversion. This makes the format particularly useful for audiobooks and long lecture recordings where navigation points matter. You can verify chapters were preserved by opening the resulting M4A in iTunes or a chapter-aware player like VLC.
By default, FFmpeg selects the first audio stream in the MKV file, which is typically the default or primary track. M4A does not support multiple audio tracks, so only one stream can be included in the output. If you need a specific track — for example, a dubbed language that isn't the first stream — you can modify the FFmpeg command to add '-map 0:a:1' (for the second audio track) before the output filename to select it explicitly.
Both are completely discarded. The -vn flag explicitly instructs FFmpeg to exclude all video streams, and since M4A has no subtitle support whatsoever, any subtitle tracks in the MKV are silently dropped. The output M4A is a pure audio file. If preserving subtitles matters to you, M4A is not the right target format — consider MKV-to-MKV audio extraction or a format like MP4 with subtitle support instead.
Replace the '128k' value in the '-b:a 128k' flag with your desired bitrate. For example, '-b:a 256k' will produce noticeably better audio quality for music, while '-b:a 320k' approaches the upper limit of what AAC encoding can deliver. For voice-only content like podcasts or speech recordings, 96k or even 64k is often sufficient and produces smaller files. The full command at 256k would be: ffmpeg -i input.mkv -c:a aac -b:a 256k -vn output.m4a
Yes, with a small shell script. On Linux or macOS, run: for f in *.mkv; do ffmpeg -i "$f" -c:a aac -b:a 128k -vn "${f%.mkv}.m4a"; done — this loops over every MKV in the current directory and produces a matching M4A file. On Windows Command Prompt, use: for %f in (*.mkv) do ffmpeg -i "%f" -c:a aac -b:a 128k -vn "%~nf.m4a". The browser-based tool processes files individually, so the FFmpeg command is especially valuable for bulk conversions of large libraries.

Technical Notes

M4A is essentially an MPEG-4 Part 14 container (.mp4) restricted to audio streams, and the file extension itself signals audio-only content to software like iTunes. The AAC codec used in this conversion is natively supported by Apple's entire ecosystem — iPhones, iPads, Macs, Apple TV, and iTunes — making M4A the most natural target format when the destination is Apple hardware or software. One notable limitation is that M4A supports only a single audio stream, so MKV files containing multiple language dubs or commentary tracks will lose all but the primary audio. Chapter metadata from the MKV source is preserved in the MPEG-4 container's chapter atom structure, which is recognized by iTunes, Apple Books, and VLC. Embedded cover art or iTunes-style metadata (artist, album, title) is not automatically transferred from MKV — MKV and MP4 use different metadata tag structures, so tags may need to be re-applied after conversion using a tool like mp3tag or Kid3. The -vn flag is mandatory here: without it, FFmpeg would attempt to copy or transcode video streams into the M4A container, which would either fail or produce a non-standard file that most players would reject.

Related Tools