Convert MKV to OGA — Free Online Tool
Extract and convert the audio track from an MKV file into an OGA container using the Vorbis codec — a fully open-source, patent-free audio format ideal for web streaming and Linux-centric audio workflows. Video and subtitle streams are discarded, leaving a compact, high-quality Ogg Vorbis audio file.
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 files commonly carry audio encoded in AAC, MP3, Opus, Vorbis, or FLAC alongside one or more video streams. During this conversion, FFmpeg discards all video streams and subtitle tracks, then re-encodes the audio into the Libvorbis encoder targeting an Ogg container with a .oga extension. If the MKV already contains a Vorbis audio track, the re-encoding step still occurs to ensure the stream is properly wrapped in a clean Ogg container. The output is audio-only — OGA does not support video. Quality is controlled via Vorbis's variable bitrate quality scale (-q:a), with a default of 4, which targets roughly 128–160 kbps and is transparent for most listeners. If the source MKV has multiple audio tracks, FFmpeg will default to the first audio track unless you specify otherwise.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg command-line tool, which is running here as a WebAssembly binary in your browser via FFmpeg.wasm — no installation required and no files leave your device. |
-i input.mkv
|
Specifies the input Matroska file. FFmpeg will parse all streams inside the MKV — video, audio, subtitles, and chapters — but only the first audio stream will be used in this conversion. |
-c:a libvorbis
|
Encodes the audio stream using the Libvorbis encoder, producing Ogg Vorbis audio — the patent-free lossy codec native to the OGA container format and required for .oga output. |
-q:a 4
|
Sets the Vorbis variable bitrate quality level to 4 on a scale of 0–10, which targets roughly 128–160 kbps — a balanced default that delivers near-transparent quality for music and voice while keeping file sizes reasonable. |
output.oga
|
Defines the output filename with the .oga extension, which signals to FFmpeg to wrap the encoded Vorbis stream in an Ogg container formatted as an audio-only file per the OGA specification. |
Common Use Cases
- Extract the audio commentary track from an MKV movie rip to listen offline on an Ogg-compatible audio player like Rockbox or VLC on Linux
- Convert an MKV lecture recording into a lightweight OGA file for distribution on open-source or educational platforms that explicitly support Ogg-based formats
- Strip the audio from an MKV game cutscene or fan dub to archive it as a standalone patent-free Vorbis file for open-source game modding projects
- Extract music or a soundtrack from an MKV anime episode into an OGA file for use in open-source video game engines like Godot, which natively support Ogg Vorbis
- Produce an audio-only version of an MKV screen recording for podcast-style distribution where video is unnecessary and file size must be minimized
- Archive a Vorbis audio stream originally muxed inside an MKV into its native OGA container for long-term storage in a fully open, royalty-free format
Frequently Asked Questions
It depends on the audio codec in your source MKV. If the original audio is AAC, MP3, or another lossy format, re-encoding it to Vorbis means a second generation of lossy compression, which can introduce subtle artifacts. If your MKV contains FLAC or another lossless audio track, the Vorbis output will be lossy but starting from a perfect source, so quality will be very good at the default -q:a 4 setting. The only way to avoid any quality loss is to use the FLAC codec option within the OGA container, which is lossless.
All subtitle tracks are dropped — OGA has no support for subtitles whatsoever. Similarly, OGA does not support multiple audio tracks in a single file, so only the first (or default) audio track from the MKV will be included in the output. If your MKV has a secondary audio track — such as a director's commentary or a different language dub — you would need to explicitly select it using the -map flag before converting.
Yes. OGA supports three codecs: Libvorbis (lossy, default), FLAC (lossless), and Opus (lossy, modern). To use FLAC, replace -c:a libvorbis -q:a 4 with -c:a flac in the FFmpeg command. This will produce a lossless OGA file, which is significantly larger but preserves every detail of the original audio — ideal for archiving high-quality source material from the MKV.
The -q:a flag controls Vorbis's variable bitrate quality scale, which ranges from 0 (lowest quality, smallest file) to 10 (highest quality, largest file). A value of 4 targets approximately 128–160 kbps, which is transparent for most content. To increase quality, raise the value — for example, -q:a 6 targets around 192 kbps and is excellent for music. To reduce file size at the cost of some fidelity, lower the value, such as -q:a 2 for roughly 96 kbps, suitable for voice recordings or podcasts.
OGA is an audio-only variant of the Ogg container format, using the .oga file extension specifically to signal that it contains only audio streams. Functionally, the internal format is identical to an .ogg file containing Vorbis audio. Most players that support OGG will also play OGA files — including VLC, Audacity, Firefox, and most Linux-based media players. However, some older or consumer-focused players may not recognize the .oga extension; renaming the file to .ogg often resolves compatibility issues without altering the data.
The displayed command processes a single file, but you can batch convert on the command line using a loop. On Linux or macOS, run: for f in *.mkv; do ffmpeg -i "$f" -c:a libvorbis -q:a 4 "${f%.mkv}.oga"; done. On Windows Command Prompt, use: for %f in (*.mkv) do ffmpeg -i "%f" -c:a libvorbis -q:a 4 "%~nf.oga". This processes every MKV in the current directory and produces a matching OGA file for each one.
Technical Notes
OGA uses the Ogg bitstream framing layer as its container, and the .oga extension specifically identifies files that carry only audio — distinguishing them from .ogv (video) or the generic .ogg extension. The Libvorbis encoder used here is the reference implementation of the Vorbis I specification and produces fully compliant, patent-free output. Unlike Opus, which uses a fixed-frame-size CBR-friendly model suited for low-latency streaming, Vorbis uses a windowed MDCT transform optimized for higher-latency but higher-quality music and long-form audio. One important limitation: OGA does not support multiple audio streams in a single file, so the conversion extracts only one track from the MKV. Chapter metadata from the MKV can technically be preserved in the Ogg container via Vorbis comment headers, but FFmpeg's chapter mapping behavior between these two containers may be inconsistent — verify chapter retention if that metadata is critical. Tags such as title, artist, and album from the MKV's Matroska metadata block will generally be mapped to Vorbis comment fields in the output, though field names may differ slightly between the two metadata schemas.