WebM to MKV Converter

Re-encode a WebM as an H.264 MKV with AAC sound, in your browser.

or drop files here

WE

WEBM Format

WebM video

An open media format designed for the web, based on a subset of Matroska. Pictures use VP8, VP9 or AV1; sound uses Vorbis or Opus.

  • Royalty-free
  • VP8, VP9 or AV1 video
  • Vorbis or Opus audio
  • Supported by major browsers
MK

MKV Format

Matroska video

An open, free container format that can hold unlimited video, audio, picture and subtitle tracks in one file. WebM is a subset of Matroska.

  • Open standard
  • Multiple audio and subtitle tracks
  • Chapters and metadata
  • Supports almost any codec

How to convert WebM to MKV

Follow these steps to convert WEBM to MKV online.

    1

    Choose your WEBM file, or several at once.

    2

    Wait while the converter turns each file into MKV.

    3

    Download each new MKV file. Your original file isn't changed.

What to know before converting WebM to MKV

  • The streams are not copied. Video becomes H.264 and audio becomes AAC.
  • Large frames are scaled down and a high frame rate is limited.
  • Odd dimensions are trimmed by one pixel.
  • For a lossless wrapper change, remux with FFmpeg.

Understanding WebM for MKV output

What is a WebM file?

WebM is a royalty-free web video format, defined as a subset of Matroska. A typical file holds VP8, VP9 or AV1 pictures with Vorbis or Opus sound. Because WebM is a restricted flavor of Matroska, the jump to MKV is a change of container rules more than of family. Matroska itself can hold chapters, tags and many video, audio and subtitle streams.

Programs that open WebM files

  • Windows, Mac and Linux: FFplay plays WebM through FFmpeg's decoders, and VLC reads Matroska-family media too.
  • Web: Safari on macOS handles WebM that holds VP8 or VP9 video with Vorbis sound. Chrome and Firefox play it directly.
  • Mobile: The VLC apps on Android and iOS open WebM straight from the device.

What actually decides playback is the codec inside, not the file extension.

WebM and MKV compared

  • Codecs: WebM allows a short list of video and audio codecs. MKV does not prescribe a codec.
  • Tracks: MKV holds many audio and subtitle tracks, plus chapters.
  • Media types: video/webm for WebM, video/matroska for MKV.
  • This page's output: H.264 pictures with AAC sound at 96 kbps.

FFmpeg running in your browser decodes the WebM and writes fresh H.264 with libx264, using CRF 32 and the ultrafast preset. It deinterlaces, limits the long side to 1920 pixels, holds output to 30 fps and trims odd dimensions to the next even number down.

Other ways to convert WebM to MKV

  • FFmpeg remux: run ffmpeg -i browser.webm -map 0 -c copy wrapped.mkv. -map 0 takes every stream from the input and -c copy copies them without re-encoding.

Problems with WebM files

  • A second audio or language track is missing: no -map option is set, so FFmpeg's defaults choose the streams. Remux with -map 0 to carry every track.
  • A fast clip looks different: the page limits the frame rate, so a faster source loses frames.
  • A very sharp source softens: the page re-encodes and may resize, so remux if you need the original streams.
  • Seeking is slow: if the cue index is missing, the player has less to go on and seeks less efficiently.
  • The WebM has an odd width or height: H.264 needs even dimensions, so the page trims it.

Frequently Asked Questions

Everything you need to know about our converter

Is this a lossless WebM to MKV conversion?

What happens to a very large WebM?

Will a high frame rate recording keep its frame rate?

Why is my video slightly narrower?

Do the title and other tags survive?

How is MKV different from WebM?

Why does the MKV look softer than the WebM?

Can I queue more than one WebM?