Convert MKV to OGG — Free Online Tool
Convert MKV files to OGG audio format in your browser, extracting and re-encoding audio streams to Vorbis — Xiph.Org's open, patent-free codec. This is ideal for stripping video from MKV files and producing compact, high-quality OGG/Vorbis audio compatible with open-source media players and web applications.
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 is a video container that typically holds video, audio, and subtitle streams together. When converting to OGG, the video stream is discarded entirely — OGG is a purely audio-oriented container with no video support. The audio stream from the MKV (which may originally be encoded as AAC, MP3, Opus, FLAC, or Vorbis) is decoded and re-encoded to Vorbis using libvorbis at a variable bitrate quality level of 4 (roughly 128 kbps). This re-encoding step means some audio generation loss occurs unless the source was already lossless. The resulting OGG file contains only the Vorbis audio stream, wrapped in Xiph.Org's open OGG container.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg program — the open-source multimedia processing engine that powers this conversion both in the browser via WebAssembly and on your local desktop when run from the command line. |
-i input.mkv
|
Specifies the input file as an MKV (Matroska) container, which may contain video, audio, subtitle, and chapter streams that FFmpeg will parse and make available for processing. |
-c:a libvorbis
|
Selects libvorbis as the audio encoder for the output, re-encoding whatever audio stream exists in the MKV (AAC, MP3, FLAC, etc.) into the Vorbis codec, which is the standard and most compatible audio codec for OGG containers. |
-q:a 4
|
Sets the Vorbis variable bitrate quality level to 4 on a 0–10 scale, targeting approximately 128 kbps — a balanced default that suits music and speech without producing an unnecessarily large OGG file. Raise this value for higher fidelity. |
output.ogg
|
Defines the output filename with the .ogg extension, instructing FFmpeg to wrap the encoded Vorbis audio stream in an OGG container. The video and subtitle streams from the source MKV are automatically dropped because OGG does not support them. |
Common Use Cases
- Extract the audio commentary track from an MKV film or documentary to share as a standalone OGG audio file compatible with open-source players like VLC or Audacity
- Convert MKV lecture recordings to OGG/Vorbis for embedding in a web application or HTML5 audio player that targets open-format compatibility
- Strip the audio from an MKV game capture or screen recording to produce a lightweight OGG file for use as background music or sound effects in a game engine like Godot, which natively prefers OGG/Vorbis
- Convert MKV audiobook or podcast recordings stored in Matroska format into OGG files for playback on Linux-based media systems or portable devices that prioritize open standards
- Reduce file size by discarding the video track from a large MKV and producing a compact Vorbis-encoded OGG for archiving or sharing audio-only content
- Prepare audio extracted from MKV interview footage for use in a browser-based web project, where OGG/Vorbis serves as the open-format audio fallback alongside MP3
Frequently Asked Questions
It depends on the source audio codec inside the MKV. If the MKV contains a lossy audio stream (such as AAC or MP3), converting to OGG/Vorbis involves decoding that lossy audio and re-encoding it with libvorbis — a lossy-to-lossy transcode that introduces a small additional quality loss. If the MKV source contains a lossless stream (such as FLAC or PCM), the re-encode to Vorbis is a single lossy generation and quality loss is minimal at quality level 4. For critical listening applications, consider increasing the quality level to 6–8 in the FFmpeg command.
Both are permanently discarded. OGG does not support video streams or subtitle tracks, so FFmpeg automatically drops them when targeting an OGG output. Only the first audio stream from the MKV is extracted and re-encoded to Vorbis by default. If your MKV has multiple audio tracks and you need a specific one, you would need to modify the FFmpeg command to select it explicitly with the -map flag.
The quality is controlled by the -q:a flag, which uses Vorbis's variable bitrate quality scale from 0 (lowest, roughly 64 kbps) to 10 (highest, roughly 500 kbps). The default used here is 4, which targets approximately 128 kbps and is suitable for most music and speech. To increase quality, replace '4' with a higher value — for example, 'ffmpeg -i input.mkv -c:a libvorbis -q:a 6 output.ogg' targets around 192 kbps. For speech-only content, a value of 2 or 3 is often indistinguishable from 4 while producing a smaller file.
OGG/Vorbis has broad support in Firefox, Chrome, and Opera, and is natively supported by Linux media systems, Android, and open-source game engines like Godot. However, Safari on macOS and iOS has historically had limited or absent native OGG support, so web projects targeting Apple users often need an MP3 or AAC fallback. For maximum cross-platform audio compatibility, MP3 or AAC would be safer choices, but OGG/Vorbis remains the preferred format in open-source and Linux-centric ecosystems.
The command as shown processes a single file, but you can batch process using a shell loop. On Linux or macOS, run: 'for f in *.mkv; do ffmpeg -i "$f" -c:a libvorbis -q:a 4 "${f%.mkv}.ogg"; done'. On Windows Command Prompt, use: 'for %f in (*.mkv) do ffmpeg -i "%f" -c:a libvorbis -q:a 4 "%~nf.ogg"'. This is especially useful for large collections over 1GB that exceed the browser tool's file size limit.
The tool defaults to libvorbis because Vorbis is the historically dominant and most universally recognized codec for OGG containers — many players and systems associate 'OGG' specifically with Vorbis. Opus is technically superior at lower bitrates and is also supported in OGG containers (OGG Opus), but compatibility is slightly narrower. If you prefer Opus for better efficiency at low bitrates, you can modify the command to 'ffmpeg -i input.mkv -c:a libopus -b:a 128k output.ogg', though you should verify your target player supports OGG Opus specifically.
Technical Notes
The OGG container, while technically capable of holding multiple audio streams and chapter markers, is used here in its most common single-stream Vorbis configuration. The libvorbis encoder uses a true variable bitrate (VBR) model driven by the -q:a quality parameter, which means the actual output bitrate will fluctuate based on the complexity of the audio signal — quality 4 typically produces files between 112 and 160 kbps in practice. Metadata tags (title, artist, album) stored in the MKV's container may be carried over into OGG's Vorbis comment tag format by FFmpeg, though complex or non-standard MKV metadata fields may not map cleanly. Chapter data from the MKV may also be preserved if the OGG container's chapter implementation is compatible with the source. One notable limitation: if your MKV contains multiple audio tracks (e.g., different language dubs), FFmpeg will by default select only the first audio stream for the OGG output. To select a different track, add '-map 0:a:1' (for the second audio track) to the command. FLAC encoding inside OGG is also possible via 'ffmpeg -i input.mkv -c:a flac output.ogg' if lossless preservation is required and your player supports OGG/FLAC.