What is the MKV file format?
Files with the .mkv extension contain video, audio, and subtitles collected in a single multimedia container. This open-standard format was established in 2002 as the Matroska project, led by Steve Lhomme, and is based on a predecessor format - the MCF multimedia container. Its binary structure relies on EBML (Extensible Binary Meta Language), which was formally standardized as IETF RFC 8794 in 2020.
Stored multimedia data may use various codecs - according to the specification, virtually any codec can be wrapped. The most widely used video codecs today include:
- H.264 (AVC - Advanced Video Coding)
- H.265 (HEVC - High Efficiency Video Coding)
- AV1 - an increasingly common royalty-free codec
.mkv is popular among movie enthusiasts; finding software supporting it is easy, and since Windows 10 it has been supported natively by Microsoft Windows. .mkv files are highly capable of recovering from damaged data and support streaming over HTTP and RTP protocols.
Google's WebM format (2010) is based on .mkv, but is restricted to a defined set of codecs - originally VP8 and VP9, with AV1 added later. A companion audio-only variant, .mka, and a subtitles-only variant, .mks, share the same container structure.
Security & safety
RISK: LOWMKV files contain media data, not executable code, so the file itself is low risk. Real-world dangers are adjacent: pirated-movie downloads disguised as codec installers or .mkv.exe double-extension executables, malicious subtitle files exploiting old player bugs (the 2017 'hacked by subtitles' vulnerabilities in VLC/Kodi - long since patched, keep players updated), and scam 'MKV codec packs'. Never install a codec a website demands; VLC needs nothing extra.
Format details
in a nutshellPrograms that open MKV files
Technical details
deep spec| Container encoding | EBML (Extensible Binary Meta Language) binary format |
| Magic bytes | 1A 45 DF A3 at offset 0 (EBML header); DocType element "matroska" distinguishes it from WebM |
| MIME type | video/x-matroska |
| Video codec support | Unrestricted; common codecs include H.264, H.265/HEVC, VP9, AV1, and MPEG-4 |
| Audio codec support | Unrestricted; common codecs include AAC, MP3, FLAC, AC-3, DTS, Vorbis, and Opus |
| Subtitle formats | SRT, SSA/ASS, PGS (Blu-ray), VobSub (DVD), and others embedded natively |
| Simultaneous tracks | Unlimited video, audio, and subtitle tracks in a single file |
| Chapter support | Named chapters with timestamps; multiple editions (ordered chapter sets) supported |
| Attachment embedding | Arbitrary files such as fonts, cover art, and ICC profiles can be attached within the container |
| Streaming | HTTP progressive download and RTP streaming supported by design |
| Error resilience | Cluster-based structure allows playback to resume after corrupt or missing segments |
| Seek index | Cue Points element enables fast random-access seeking without scanning the full file |
| Companion extensions | .mka (audio-only Matroska), .mks (subtitles-only), .mk3d (stereoscopic 3D video) |
| Platform support | Native in Windows 10+; broad Linux support via GStreamer/FFmpeg; macOS via third-party players |
| Relationship to WebM | Google's WebM (2010) uses the same EBML base but restricts codecs to VP8/VP9/AV1 and Opus/Vorbis |
| Tag and metadata support | Supports nested XML-like tags for title, language, date, rating, and custom fields per track |
| Released | 2002 (fork of the MCF project); EBML standardized as IETF RFC 8794 (2020) |
| Open standard | Yes · royalty-free |
| Specification | www.matroska.org |
MKV conversions
Community Q&A
asked by usersNo questions yet - be the first to ask about MKV files.