MKV vs WebM: What Each File Can Hold and Where It Plays

Card with one line for each format, read November 2026: an MKV file may hold any codec with a Matroska mapping (H.264, H.265, AV1, AAC, AC-3 and more) and text and picture subtitles; a WebM file may hold VP8, VP9 or AV1 video, Vorbis or Opus sound and WebVTT text.

Use WebM for a web page, MKV to keep codecs, subtitles and attachments that WebM leaves out. A WebM is a Matroska file held to a short list: VP8, VP9 or AV1 video, Vorbis or Opus sound. Neither is smaller by itself.

Have an MKV that a web page must play? Convert the MKV to a WebM on our page; the steps and what the WebM does not keep are below.

Checked on 2026-11-22 on xconvert.com/convert-mkv-to-webm with ten-second test clips we made with ffmpeg; no phone or television was used. Sources at the end.

The difference in one table

Read November 2026MKVWebM
Written down inthe Matroska project’s site and, since October 2024, RFC 9559the WebM project’s Container Guidelines
Name inside the file (DocType)“matroska”“webm”
Videoany codec with a Matroska mapping: H.264, H.265 (HEVC), AV1, VP8, VP9, MPEG-2, ProRes and moreVP8 or VP9 by the guidelines; AV1 by its own mapping
SoundAAC, AC-3, DTS, FLAC, MP3, Opus, Vorbis and moreVorbis or Opus
Subtitlestext and picture formats: SRT, ASS, WebVTT, VobSub, PGSWebVTT text only
Chaptersyes, ordered ones tooyes; ordered chapters unsupported
Attached files (fonts, cover art)yesunsupported
Several audio or subtitle tracksyesnot ruled out; the guidelines give no number
File names.mkv, .mka, .mks, .mk3d.webm
Media typevideo/matroska; video/x-matroska is a deprecated aliasvideo/webm

Both are Matroska: the guidelines say WebM “comprises a subset of the Matroska multimedia container format”.

The WebM project’s FAQ says: “A distinct name gives us a way to easily refer to the subset, and gives users a way to associate a piece of content with a client having known-good support.”

The guidelines name VP8 and VP9, not AV1. AV1 rests on the AV1 mapping for Matroska (“Every time Matroska is mentioned it applies equally to WebM”) and on MDN’s codec table for WebM.

What it costs in size and quality (measured)

The container itself costs almost nothing. On 2026-11-22 we copied a ten-second WebM into an MKV with ffmpeg, encoding nothing: the MKV was 57 bytes larger (first row of the table below).

The video and the sound had the same SHA-256 checksum in both files. Both files start with the same four bytes; within the first 64, one reads “webm” and the other “matroska”.

A size difference between an MKV and a WebM comes from what is inside. The four results from our two converter pages hold other codecs than their uploads, and each is larger.

Upload (ten seconds, 640 x 360)Route on 2026-11-22ResultBytes (times the upload)SSIM
WebM, VP9 and Opus, 782,611 bytesffmpeg copy on our test machineMKV, the same VP9 and Opus782,668 (1.00)not encoded
the same WebMour WebM to MKV page, as loadedMKV, H.264 and AAC1,408,614 (1.80)0.989
MKV, H.264 and AAC, 1,131,238 bytesour MKV to WebM page, as loadedWebM, VP9 and Opus1,663,444 (1.47)0.991
the same MKVthe same page, AV1 chosenWebM, AV1 and Opus1,439,040 (1.27)0.992
MKV, H.265 (HEVC) and AAC, 957,827 bytesthe same page, as loadedWebM, VP9 and Opus1,510,019 (1.58)0.992

Those are three encodings of one ten-second clip, each already compressed: not a rule. SSIM is a computed difference from the upload; nobody looked at the pictures.

Where each one works, and what uploaded files hold

Read November 2026MKVWebM
Chrome (Chromium’s media page)“Matroska” is in its list of container formats“WebM” is in the same list
Firefox (release notes, MDN)from version 145 (first offered 11 November 2025), for AVC, HEVC, VP8, VP9, AV1, AAC, Opus and Vorbisyes, by MDN’s table
Safari on a Mac (Apple’s notes for 14.1 and 15)not statedfrom 14.1, with VP8 or VP9 and Vorbis; Opus from 15
Safari on iPhone and iPad (17.4 notes)not statedfrom 17.4
Android (supported formats)read, with H.263, H.264, H.265, VP8, VP9 or AV1; not writtenread and written with VP8 or VP9
YouTube uploads (file formats)not on the liston the list
Media Player on Windows (Microsoft’s codec page)not statednot stated

“Not stated” means the maker’s page has no sentence on it, not that the file fails. Chromium’s page does not say which codec it reads in which container.

From 14 to 20 November 2026, 81 visitors sent us 873 files named .mkv and 343 visitors sent 1,360 named .webm. Our upload check, which reads a file’s first video track and first audio track, could read the codecs of 829 and 1,355 of them.

Of the 1,355 .webm files, 1,337 held only what WebM’s list allows, and 18 held H.264 video. Of the 829 .mkv files, 823 held video or sound off that list, most often H.264 with AAC (380 uploads from 31 visitors).

Bar chart of uploads to xconvert.com from 14 to 20 November 2026, counted on 22 November 2026: of 829 uploads named .mkv that could be read, 6 (0.7 %) held only video and sound that WebM allows; of 1,355 named .webm, 1,337 (98.7 %) did.

One visitor sent 23.4 % of the .mkv files. The counts describe one week of uploads to a converter, not MKV or WebM files in general.

Which to pick: by situation

  • A video for a web page. WebM: MDN’s table marks VP8 and VP9 in WebM “Yes” for Chrome, Edge, Firefox and Safari. MP4 vs WebM for web video covers serving an MP4 beside it.
  • A recording in OBS. MKV. OBS’s guide says: “MKV is recommended in case of unforeseen issues arising, since MKV will not corrupt the whole file if there is no graceful stoppage of recording.”
  • A film with picture subtitles or attached fonts. MKV: the WebM column of the first table has no place for picture subtitles or attached files.
  • A file to share or to play on many devices. MKV vs MP4 covers MP4, the container that post names for sharing.
  • A file that already plays where you need it. Keep it. The sizes after a conversion on our pages are in the measured table.

A WebM for a web page still has to be hosted. Check that the host sends it as video/webm, and open the page in each browser your visitors use. That is a hosting step, separate from conversion, and it comes last.

Converting between them

WebM to MKV needs no encoding. On our test machine this line made the MKV in the first row of the measured table in 0.02 seconds:

ffmpeg -i up-vp9-opus.webm -map 0 -c copy r1_copy.mkv

Our WebM to MKV page does not copy: as loaded it writes H.264 with AAC (second row of that table). For a copy it is the wrong tool; ffmpeg does it.

MKV to WebM is a copy only when the MKV already holds codecs on WebM’s list. Our VP9 test MKV copied back in 0.02 seconds with this line:

ffmpeg -i r1_copy.mkv -map 0 -c copy r3_back.webm

For our H.264 MKV, ffmpeg refused the copy: “Only VP8 or VP9 or AV1 video and Vorbis or Opus audio and WebVTT subtitles are supported for WebM.” Such a file has to be encoded.

Renaming does neither. Our WebM renamed .mkv kept every byte, and MediaInfo still called it WebM. Container vs codec covers why a new name changes nothing inside.

To see what a file holds, read the codecs that ffprobe or MediaInfo lists. ffprobe names the format “matroska,webm” for both kinds.

Our MKV to WebM page encodes the video and the sound again; no control on it copies them.

From a test MKV with two audio tracks, SRT subtitles, two chapters and a title, the WebM kept the first audio track, the subtitles as WebVTT, the chapters and the title. The second audio track was gone.

ASS subtitles also arrived as WebVTT. We tested no picture subtitles (PGS or VobSub) and do not know what the page does with them.

These steps ran on 2026-11-22 with the H.264 test clip (1.13 MB). The file is processed on our servers, not in your browser; without a paid plan it can be up to 400 MB.

  1. On the MKV to WebM converter, click Upload and pick the file.
    The page xconvert.com/convert-mkv-to-webm from its top, before a file is chosen: the site header, the heading MKV to WebM Converter and the upload box, where the Upload button is outlined and labeled.
    Close-up of the Upload button in the image above.
  2. For VP9 with Opus, change nothing. For another codec, turn on Show All Options: under VIDEO CODEC click AV1 or VP8; AUDIO CODEC offers Opus and Vorbis. Pictured: the test clip loaded, the switch on, VP9 selected.
    The page xconvert.com/convert-mkv-to-webm with the test clip loaded and Show All Options turned on: the group VIDEO CODEC with its buttons AV1, VP8 and VP9 is outlined and labeled, and VP9 is the selected one.
    Close-up of the VIDEO CODEC group in the image above: the buttons AV1, VP8 and VP9, with VP9 selected.
  3. Click Convert. On the downloads page, wait for “Completed”, then click Download. Pictured: the test clip’s card, “VP9 · OPUS” and “Output Size: 1.66 MB”.
    The page xconvert.com/downloads after the job on the test clip: the finished card reads VP9 · OPUS, Converted MKV to WEBM and Output Size: 1.66 MB, and the Download button is outlined and labeled.
    Close-up of the Download button in the image above, under the card's lines VP9 · OPUS, Converted MKV to WEBM and Output Size: 1.66 MB.

Uploads and results are deleted automatically about 5 hours after they were written.

What we could not confirm

  • MKV in Safari. Apple’s release notes for Safari 14.1, 15, 16 and 17.4 have no line on Matroska or MKV, and we had no Mac or iPhone.
  • Chrome, Edge and Firefox with our files. The one build we ran, Chromium 147.0.7727.15 under Playwright, played the five files we gave it, the H.264 MKV included; the HEVC MKV was not one of them. It is not Chrome.

Sources

  • WebM project: WebM Container Guidelines: the quoted sentence on the subset, the DocType “webm”, VP8 or VP9, Vorbis or Opus, WebVTT tracks, the table of supported and unsupported elements (chapters, attachments, track names), .webm and video/webm. Read 2026-11-22.
  • WebM project: Frequently Asked Questions: the quoted sentence on the name. Read 2026-11-22.
  • matroska.org: What is Matroska?, the home page, Codec Mappings, Subtitles, Chapters and Attachments: the streams a file may hold, the four file endings, the codec and subtitle names, ordered chapters, attached files. Read 2026-11-22.
  • RFC 9559, Matroska Media Container Format Specification, October 2024: the DocType “matroska” and the media types. Read 2026-11-22.
  • AOM AV1 codec mapping in Matroska/WebM, in the repository of the IETF working group that writes the Matroska specification: the quoted sentence. Read 2026-11-22.
  • MDN: Media container formats: the tables of video and audio codecs supported by WebM, by browser. The page has no section on Matroska. Read 2026-11-22.
  • The Chromium Projects: Audio/Video: the list of container formats. Read 2026-11-22.
  • Firefox 145.0 release notes, first offered 11 November 2025: “Added Matroska support for the most commonly used codecs: AVC, HEVC, VP8, VP9, AV1, AAC, Opus, and Vorbis.” Read 2026-11-22.
  • Apple, Safari release notes 14.1, 15, 16 and 17.4: WebM with VP8 or VP9 and Vorbis on the Mac in 14.1, Opus in WebM in 15, WebM on iPhone and iPad in 17.4; no line on Matroska in the four. Read 2026-11-22.
  • Android Developers: Supported media formats: the containers Android reads and writes for each video codec. Read 2026-11-22.
  • YouTube Help: Supported YouTube file formats: WebM is on the list; the page holds neither MKV nor Matroska. Read 2026-11-22.
  • Microsoft Support: Codecs in Media Player: no line on MKV, Matroska or WebM. Read 2026-11-22.
  • OBS: Standard Recording Output Guide: the quoted sentence; the page does not hold the word WebM. Read 2026-11-22.
  • The test footage: ten seconds of “Tears of Steel”, (CC) Blender Foundation, mango.blender.org, Creative Commons Attribution 3.0.
  • Our measurements, 2026-11-22: test clips of ten seconds at 640 x 360 and 24 frames a second, made with ffmpeg; test files, not a camera’s. On the live pages: eight anonymous jobs on three pages, one at a time, each finished at the first attempt; the six on the two converter pages are reported here. The results were read with ffprobe and MediaInfo 26.01 on Linux; SSIM by ffmpeg’s filter over all 240 frames against the upload. The two copies and the refused copy (ffmpeg) and the rename ran on our test machine, not on the converter. Nobody looked at a picture, and no file was played on a phone or a television.
  • Our upload counts: files uploaded to xconvert.com in seven days, 14 to 20 November 2026 (UTC), counted on 2026-11-22 by the ending of the file’s name; the codecs are what our upload check read from each file’s first video track and first audio track.

By James