.MKV

MKV File

Matroska Video
Ask a question
QUICK ANSWER

An MKV file is a Matroska multimedia container that holds video, multiple audio tracks, subtitles and chapters in one file. Open it for free with VLC media player, or on Windows 11 with the built-in Media Player. If a TV or phone refuses the file, you can usually repackage (remux) it to MP4 with no quality loss.

Developer: Matroska.org (open-source project, started by Steve Lhomme) Category: Video Files Open standard MIME: video/x-matroska
OPENS ON Windows macOS Linux Android iOS
Related: .DAV · .MP4 · .H264 · .VOB

On this page

19k+ extensions indexed
Last reviewed Jul 4, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

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: LOW

MKV 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 nutshell
FULL NAMEMatroska Video
DEVELOPERMatroska.org (open-source project, started by Steve Lhomme)since 2002 (fork of the MCF project); EBML standardized as IETF RFC 8794 (2020)
CATEGORYVideo Files
MIME TYPEvideo/x-matroska
TYPEEBML-based multimedia container (binary)
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
1A45DFA3
ASCII
·E··
Shared with WebM (same EBML base); distinguish by the DocType element: "matroska" vs "webm"

Programs that open MKV files

Windows6 apps
VLC media player Open-source Right-click the MKV - Open with - VLC. Plays everything with built-in codecs; switch audio/subtitle tracks from the Audio and Subtitle menus.
MKVtoolnix Open-source Not a player - the official Matroska toolkit to inspect, edit, split and remux MKV tracks (mkvtoolnix-gui, mkvextract).
Media Player (Windows 11) / Movies & TV Built-in Double-click - MKV plays natively since Windows 10 (2015). If HEVC video fails, install the 'HEVC Video Extensions' from Microsoft Store.
MPC-HC (clsid2 fork) Open-source Lightweight classic player; drag the MKV onto the window. Original project ended 2017 - use the actively maintained clsid2 fork.
mpv Open-source Minimal high-quality player; drag & drop the file. Cycle audio with '#' and subtitles with 'j'.
PotPlayer Free Open the file; extensive codec and track-selection controls built in.
macOS3 apps
VLC media player Open-source Drag the MKV onto VLC. QuickTime Player cannot open MKV - VLC is the standard answer on a Mac.
Elmedia Player Freemium Open the file; free version plays MKV, Pro adds streaming to TV.
IINA Open-source Modern native macOS player built on mpv; set as default for .mkv in Finder Get Info.
Linux3 apps
VLC media player Open-source Available in every distro repository: open the file or 'vlc file.mkv'.
mpv Open-source 'mpv file.mkv' - the de-facto standard CLI/desktop player on Linux.
GNOME Videos (Totem) Open-source Default player on GNOME desktops; plays MKV if GStreamer codec packs are installed.
Android2 apps
VLC for Android Open-source Install from Google Play, open the file from the Video tab or a file manager.
MX Player Freemium Popular MKV player with subtitle support; may need the separate AC-3/DTS codec pack for some audio tracks.
iOS2 apps
VLC for iOS Open-source Transfer the MKV via Files/AirDrop/Wi-Fi share and play in VLC - the built-in iOS player does not support MKV.
OPlayer Paid Long-standing iOS media player with MKV support; transfer files over Wi-Fi or Files app.

Technical details

deep spec
Container encodingEBML (Extensible Binary Meta Language) binary format
Magic bytes1A 45 DF A3 at offset 0 (EBML header); DocType element "matroska" distinguishes it from WebM
MIME typevideo/x-matroska
Video codec supportUnrestricted; common codecs include H.264, H.265/HEVC, VP9, AV1, and MPEG-4
Audio codec supportUnrestricted; common codecs include AAC, MP3, FLAC, AC-3, DTS, Vorbis, and Opus
Subtitle formatsSRT, SSA/ASS, PGS (Blu-ray), VobSub (DVD), and others embedded natively
Simultaneous tracksUnlimited video, audio, and subtitle tracks in a single file
Chapter supportNamed chapters with timestamps; multiple editions (ordered chapter sets) supported
Attachment embeddingArbitrary files such as fonts, cover art, and ICC profiles can be attached within the container
StreamingHTTP progressive download and RTP streaming supported by design
Error resilienceCluster-based structure allows playback to resume after corrupt or missing segments
Seek indexCue 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 supportNative in Windows 10+; broad Linux support via GStreamer/FFmpeg; macOS via third-party players
Relationship to WebMGoogle's WebM (2010) uses the same EBML base but restricts codecs to VP8/VP9/AV1 and Opus/Vorbis
Tag and metadata supportSupports nested XML-like tags for title, language, date, rating, and custom fields per track
Released2002 (fork of the MCF project); EBML standardized as IETF RFC 8794 (2020)
Open standardYes · royalty-free
Specificationwww.matroska.org

MKV conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with MKV files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about MKV files.

Frequently asked questions

How do I convert MKV to MP4 without losing quality?
Remux it: copy the streams into an MP4 container without re-encoding, e.g. 'ffmpeg -i in.mkv -c copy out.mp4'. Works when the video is H.264/H.265 and audio AAC/AC-3 - which covers most files. Quality is identical because nothing is re-encoded.
Why won't my Smart TV play this MKV file?
Either the TV rejects the Matroska container or it lacks a decoder for a stream inside (commonly HEVC video or DTS audio). Remux to MP4, or re-encode the offending track (e.g. DTS to AC-3). Plugging in via USB vs DLNA can also change what the TV accepts.
Is MKV better than MP4?
Quality is identical for the same streams - both are just containers. MKV is more flexible (any codec, unlimited tracks, chapters, attachments); MP4 is far more widely supported by devices and editors. Choose by compatibility, not quality.
Why does my MKV have no sound?
The audio track uses a codec your device can't decode - usually DTS or AC-3 on TVs and phones. Play it in VLC (decodes everything) or convert the audio track to AAC.
How do I extract subtitles from an MKV?
Use mkvextract from MKVToolNix or FFmpeg to pull the subtitle track. Text tracks come out as .srt/.ass directly; Blu-ray PGS image subtitles need OCR with a tool like Subtitle Edit.
Can I play MKV on iPhone?
Not with the built-in player. Install VLC for iOS (free) and add the file via the Files app, AirDrop or VLC's Wi-Fi sharing - or remux the file to MP4 first.
Why does OBS record to MKV?
MKV survives crashes - an interrupted recording stays playable, unlike MP4 which corrupts without its final index. OBS can remux finished recordings to MP4 via File - Remux Recordings, losslessly.

References

1IETF RFC 8794 - Extensible Binary Meta Language (EBML)www.rfc-editor.org
2Matroska.org - Technical specificationswww.matroska.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.MDMarkdown Document
4.BINCD/DVD Disc Image (BIN/CUE)
5.PARTPartial Download File
6.RPMSGRestricted Permission Message
7.NOMEDIAAndroid No-Media Marker File
8.EXEWindows Executable (Portable Executable)
9.AVIFAV1 Image File Format (AVIF)
10.DBSQLite Database File

Related extensions

.DAVDVR365 / Dahua DVR Video File (DHAV stream)
.MP4MPEG-4 Part 14 Video File
.H264Raw H.264 / AVC Video Elementary Stream
.VOBDVD Video Object File
.264Raw H.264 / AVC Video Elementary Stream (DVR/CCTV export)
.SWFSmall Web Format (Shockwave Flash)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z