Convert WebM to MKV

Converting WebM to MKV puts the video in the Matroska container that media servers and hardware players expect. Worth knowing before you start: this is not a remux. The VP9 or AV1 video is re-encoded as H.264 and the Opus audio as AAC, which is what makes the file direct-play — and if you wanted the original streams kept untouched, a different tool is the right one.

  • Where it runs In your browser. The file is never uploaded.
  • Lossy Some detail is traded for size. MKV cannot hold everything a WebM can.
  • File size limit Up to 100 MB per file, free, without an account.
  • Worth knowing Video is re-encoded rather than copied, so some detail is lost even at the highest setting. Subtitle tracks and chapters are not carried over. Where the soundtrack is a format the browser cannot decode — AC-3, E-AC-3, DTS and TrueHD, common on disc and streaming rips — the picture converts and the result is silent.

Up to 100 files at once. Mixed formats are fine.

WebM is Matroska already, which is the confusing part

The two formats are not distant relatives. Matroska was published in 2002 as a container that could hold essentially anything, and WebM, released by Google in 2010, is a deliberately narrowed version of it: the same structure, restricted to a short list of royalty-free codecs. Open a WebM in a hex editor and the first four bytes are the Matroska signature.

That closeness is why so many guides describe WebM to MKV as a rename. In terms of the file structure they are almost right. In terms of whether your player will then play it, they are missing the point entirely — because the thing that fails is not usually the container.

What this conversion actually does to the streams

It re-encodes them. The video comes out as H.264 and the audio as AAC, regardless of what went in. Every frame is decoded back to pixels and compressed again, which takes real time and loses a little detail, exactly as converting to MP4 would. The MKV wrapper is the only part of the operation that is free.

That is a deliberate choice rather than a limitation of the container: MKV will happily hold VP9, and it holds AV1 and FLAC too. The reason to write H.264 is that somebody converting to MKV is nearly always feeding a media player rather than a browser, and a player that chokes on a WebM chokes on VP9 inside an MKV in precisely the same way.

If you wanted a lossless remux, use MKVToolNix instead

There is a real operation that does what "WebM to MKV" sounds like it should: lifting the compressed streams out of one container and writing them into the other without touching a single frame. It takes seconds regardless of file length, loses nothing at all, and produces a bit-identical picture.

It is not this. `mkvmerge` from MKVToolNix does it with a drag and a click, and `ffmpeg -i input.webm -c copy output.mkv` does it from a terminal. If your only problem is that a piece of software insists on the `.mkv` extension while being perfectly happy with VP9, that is the shorter and better path, and it is worth saying so on the page rather than selling you five minutes of CPU you did not need.

Direct play is the reason to re-encode ahead of time

Plex, Jellyfin and Emby all have the same decision to make when a client presses play: hand the file over as it is, or transcode it on the fly. Direct play is free and instant; transcoding is a sustained load on whatever box the server runs on, and on a low-power NAS it is the difference between smooth playback and a spinning buffer.

H.264 with AAC is the combination almost every client decodes in hardware, from a decade-old smart TV to a phone. Converting a VP9 WebM once, in advance, moves that work off the server permanently. Converting a library of them is where the batch mode and the absence of upload limits stop being conveniences and start being the whole reason it is feasible at all.

What an MKV is good at that this conversion does not use

Matroska’s reputation rests on things this conversion cannot give you. It holds any number of audio tracks, so a film can carry the original language and two dubs. It holds subtitle tracks in several formats, embedded rather than sitting beside the file. It holds chapters, attachments and cover art.

None of that survives here: one video track and one audio track go across and everything else is dropped. If the reason you want MKV is to bundle subtitles with a video, do that afterwards in MKVToolNix — it adds tracks to an existing MKV without re-encoding anything, which means it takes seconds and costs no quality.

Where MKV files are refused and MP4 is not

MKV support is genuinely patchy outside the enthusiast world. No browser plays one natively, so an MKV cannot be embedded in a web page. Many smart-TV apps, most set-top boxes with older firmware and Apple’s ecosystem generally either refuse it or handle it badly, which is the opposite of the situation for MP4.

Since the file produced here contains the same H.264 and AAC either way, the container is a free choice, and MP4 is the safer default. Choose MKV when something in your chain specifically asks for it — a server’s naming convention, a player that prefers it, a workflow that will add subtitle tracks later — and not because it sounds like the more capable format.

Resolution and quality for a library rather than a clip

The resolution control is worth using when the source is a screen capture at an odd size. Media servers and television apps are happiest with the standard steps, and 1080p is where most libraries live; a 1440p browser capture dropped to 1080p is both smaller and less likely to make a client think about scaling.

The quality band is the other lever. Balanced is right for anything that will be watched once; the high setting is worth the extra size for something that is going into a collection you intend to keep, since this is already the second generation of compression and there is no point making it a lean one.

A whole folder of WebM files, converted locally

Libraries are not converted one file at a time. Up to a hundred WebM files can be dropped together, each converting with its own progress, and the finished MKV files download as a single ZIP. Nothing is queued behind anyone else because there is no shared server.

The absence of an upload is what makes this practical rather than merely private. A hundred recordings is tens of gigabytes; sending that to a converter and pulling it back would take longer than the encoding itself and would run into a daily limit on every free service that offers it.

How to convert a WebM into an MKV file

  1. Drop your WebM files onto this page, or click to choose them.
  2. Set the resolution and quality if the library has a standard, then convert in your browser.
  3. Download the MKV files, together as a ZIP if there is more than one.

WebM and MKV: the same family, one restricted and one not

WebM compared with MKV
WebMMKV
Full nameWebM VideoMatroska Video
File extension.webm.mkv
Media typevideo/webmvideo/x-matroska
CompressionLossy — file size is bought with qualityLossy — file size is bought with quality
First published20102002
Published byGoogle
SpecificationMatroska
LicensingOpen standardOpen standard
Standing todayCurrentCurrent
Opens in a browserEvery browserSome browsers
Considered insteadMP4MP4

Opening the result

Only some browsers read MKV. It is the less portable of the two, so it is worth being sure the program at the other end accepts it before sending one.

MKV is a container rather than a single format. What actually plays is the codec inside it — usually H.264, HEVC and AV1 — which is why two files with the same extension can behave differently on the same device.

WebM can be played while it is still arriving; MKV expects the whole file first. That is the difference between a video that starts on a web page and one that has to finish downloading.

VLC reads both WebM and MKV, so there is a way to check the result against the original without a second tool.

What each format is for

The two are aimed at different work: WebM at the web and streaming, MKV at archiving and handing a finished file over. That is worth weighing before converting, because the reason one exists is usually the reason the other is awkward.

MKV dates from 2002, specified as Matroska. VLC, MKVToolNix and HandBrake all read it.

WebM to MKV: remuxing, direct play and subtitle tracks

Does this keep the VP9 stream and only change the container?

No, and that is the most important thing on this page. WebM is technically a restricted profile of Matroska, so a pure remux is possible in principle — but this tool re-encodes the video to H.264 and the audio to AAC. If you specifically want the VP9 kept byte for byte, use mkvmerge from MKVToolNix or `ffmpeg -c copy`; both do it in seconds and lose nothing.

Then why convert at all?

Because a remux does not solve the usual problem. Hardware players and older television apps fail on VP9 itself, not on the container, so an MKV that still contains VP9 fails in exactly the same way. Re-encoding to H.264 is what makes a file direct-play instead of forcing your server to transcode it on every viewing.

Will Plex or Jellyfin direct-play the result?

Usually, because H.264 and AAC are the pairing almost every client decodes in hardware. That is the practical point of doing this ahead of time: the alternative is your server transcoding the same VP9 file every time somebody presses play, which costs it far more work than converting once.

Are subtitles carried into the MKV?

No. MKV is the container people choose precisely because it holds subtitle tracks, chapters and several audio languages, and this conversion carries none of them — one video track and one audio track cross over. For merging subtitles into an MKV, MKVToolNix is the right tool and it does not re-encode anything.

Is the file uploaded anywhere?

No. The decode and the H.264 encode both run in your browser using the machine’s own codecs. For a media library that matters practically as much as privately: a collection is measured in gigabytes, and nothing here has to travel to a server and back.

MKV or MP4 for a media server?

MP4 unless something specifically needs MKV. The two files produced here have identical contents — H.264 and AAC — and MP4 is understood by more hardware players, more smart-TV apps and every browser. MKV earns its place when a file needs several audio tracks, embedded subtitles or chapters, and this conversion carries none of those.

More about these formats