Convert MKV to WebP

Converting MKV to WebP takes one frame out of a recording and writes it in the format browsers download fastest, which is what an index page over a shelf of videos needs. The frame arrives at the recording’s own resolution rather than at card size, so the honest description of this job is two steps: pull the frame here, then scale it to what the page actually displays.

  • Where it runs In your browser. The file is never uploaded.
  • Lossy Some detail is traded for size. WebP cannot hold everything an MKV can.
  • File size limit Up to 100 MB per file, free, without an account.
  • Worth knowing One frame, at full resolution. A still from compressed video carries that compression — a fast-moving moment looks softer than a static one, which is the video’s own encoding rather than anything this conversion does.

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

One picture per recording, forty times over

A library of recordings without preview images is a list of filenames, and a list of filenames is not something anyone browses. The fix is one still per file, which is a small job repeated many times rather than a difficult one — and repeated jobs are where the details that do not matter once start to matter a great deal.

Two of those details drive this page. The image comes out much larger than the card it is going into, and the timestamp that flatters one recording gives you a black frame on another. Neither is a flaw exactly; both are things worth knowing before the twentieth file rather than after it.

The frame arrives at full resolution, and that is not what a card wants

There is no resize control on this conversion. A 1080p recording produces a 1920 by 1080 WebP and a 4K rip produces a 3840 by 2160 one, regardless of the fact that it is destined for a 320-pixel card. That is the right default for a tool that is extracting a frame — throwing pixels away by default would be worse — and it is not the file you want to serve.

So plan for a second pass. Scaling the images down afterwards is quick, entirely lossless in the direction that matters, and it is where nearly all of the size saving on an index page comes from: a 3840-pixel WebP sent to a browser that displays it at 320 carries a hundred and forty times the pixels the card can use, and no codec choice compensates for that.

Why WebP over JPG for an index page

WebP was published by Google in 2010 as a single format to replace both JPG and PNG, and for the ordinary case — a photographic frame at moderate size — it produces a smaller file than JPG at the same visible quality. Every current browser reads it, which is the property that lets it be the only format you serve rather than one you offer conditionally.

On a page showing forty preview images the compounding is the point. A saving that would be trivial on one image is the difference between an index that appears immediately and one that fills in while the visitor is already scrolling. Measure it on your own frames rather than on a published average, because the gap varies with content more than most comparisons admit.

Choosing a timestamp that works across a whole set

Zero seconds is where the box starts and it is the wrong answer for almost every recording — captures open on black, rips open on a logo or a slate, lecture recordings open on an empty lectern. Something in the first third of the file, past any title sequence, on a settled shot, is what makes a card worth clicking.

When several files are converted together they are all sampled at the same time, which is efficient and imperfect. Pick a number that clears the opening on the longest title sequence in the set — sixty or ninety seconds is often safe — and accept that two or three recordings will need doing again by hand. That is still far less work than choosing individually for all forty.

Where the softness in a preview comes from

A frame from a video is not a photograph and it does not look like one. Codecs describe moving parts of the picture approximately and spend their detail where the eye will notice, so a still lifted from the middle of a pan or a crowd is visibly softer than one from a moment where nothing was moving. The format cannot fix this; it can only avoid making it worse.

Choosing a still moment is worth more than any encoder setting available anywhere. At preview size most of it disappears anyway — a 320-pixel card is forgiving of a great deal — which is one more reason to do the scaling step rather than to worry about the codec.

The alpha channel, the metadata, and what is not in the file

WebP can carry transparency and this output has none. A video frame is opaque everywhere, and the encoder writes no alpha channel when nothing in the frame is transparent — the result is a plain lossy WebP with no extended header and no alpha chunk, rather than a file carrying a channel that is uniformly full. Nothing is wrong with it and nothing about it needs a background colour chosen.

It also carries no metadata at all. There is no EXIF block, no source filename, no timestamp, nothing tying the image back to the recording it came from. For a catalogue that has to be handled outside the file — the filename or the database row is where the association lives — and the habit of naming each image after its recording as it is downloaded saves an hour of matching later.

Quality is fixed, and what to do when that is not enough

No quality control is offered on this conversion. The frame is encoded at a fixed setting chosen to be clean on ordinary content, which for an image that will be displayed at card size is comfortably past the point of visible difference.

Where a page has an unusually tight budget or an unusually demanding image, the route around it is to take the frame as a PNG — which stores exactly what was decoded — and to encode the WebP yourself at whatever setting the budget calls for. One extra step, complete control, and no risk of a slider on this page quietly making a hundred images worse.

Building the index without the recordings leaving the machine

Only enough of each file is read to reach the timestamp, and the decoding and encoding both happen in the browser tab. Nothing carrying the recordings is sent to a server, which for a library of internal training material or unpublished conference footage is not a preference but a condition of doing the work at all.

The free tier accepts an MKV up to 100 MB per file. Longer recordings will be past it, and for those the practical route is to have the media server produce its own poster — Plex, Jellyfin and Emby all generate thumbnails — or to take a snapshot in VLC and convert that image here instead. The result is the same picture by a different road.

How to make a WebP preview from an MKV recording

  1. Pick one timestamp that clears the opening titles on every recording in the set.
  2. Drop the MKV files onto this page, type that number in seconds, and convert.
  3. Scale the resulting WebP images down to the size your cards display before publishing them.

MKV and WebP: a shelf of recordings against an index page

MKV compared with WebP
MKVWebP
Full nameMatroska VideoWebP Image
File extension.mkv.webp
Media typevideo/x-matroskaimage/webp
CompressionLossy — file size is bought with qualityEither, depending on the setting
First published20022010
Published byGoogle
SpecificationMatroskaRFC 9649
LicensingOpen standardOpen standard
Standing todayCurrentCurrent
Bit depth8
Colour it can describeRGB, YCbCr
Largest image16,383 px per side
Opens in a browserSome browsersEvery browser
Considered insteadMP4, WebMAVIF, JPG, PNG

Opening the result

WebP opens in every current browser. MKV has narrower browser support than that. If the file is going onto a web page or into a form, that is usually the whole reason for the conversion.

The usual programs do not overlap: MKV opens in VLC, MKVToolNix and HandBrake, WebP in Adobe Photoshop, GIMP and Squoosh — so whoever receives the result needs something from the second list.

What each format is for

MKV was published in 2002. The specification is Matroska, and it is worth reading if the file has to outlive the tool that wrote it.

WebP comes from Google and dates from 2010, specified as RFC 9649. Adobe Photoshop, GIMP and Squoosh all read it.

MKV to WebP: size, resolution and browser support

Are my MKV files uploaded anywhere?

No. This conversion runs entirely inside your browser, so the file never leaves your device. You can confirm it yourself: open the network tab of your browser's developer tools and convert something. You will see the page load, plus the analytics and advertising the site is paid for with — and nothing carrying your file. The engine behind this particular pair is mediabunny, a wrapper around WebCodecs, which borrows your device's own hardware decoders; your browser fetches it once and caches it.

Does the WebP come out thumbnail-sized?

No, and this catches people. The frame is written at the recording’s own resolution, so a 1080p capture gives a 1920-pixel image and a 4K rip gives a 3840-pixel one. There is no resize control on this conversion — the second step is to scale each image down to the size your cards actually display, which the resize tool here will do without going near a server.

How much smaller is WebP than JPG for the same frame?

Meaningfully, and the exact figure depends on the picture. WebP was designed as a replacement for both JPG and PNG and generally beats JPG at the same visible quality, which on a page showing forty preview images is the difference between a fast index and a slow one. Test one frame both ways on your own material rather than trusting a percentage from anyone.

Will every browser display it?

WebP is read by all current browsers, which is what makes it a safe default for an index page rather than a progressive enhancement. It is not read by everything outside a browser — some older desktop image viewers and a few upload forms still refuse it — so keep a JPG for anything that leaves the site.

Which moment makes a good preview image?

Somewhere in the first third, on a settled shot, after any title card has cleared. Zero seconds gives you black or a slate on almost any recording. A frame with a face or a distinct visual in it is worth far more on a card than a technically better frame of an empty stage.

Is the quality adjustable?

No. The frame is encoded at a fixed setting that is visually clean on ordinary content, and for a preview image displayed at a few hundred pixels it is not the limiting factor. If you need per-file control, take the frame as a PNG and encode the WebP yourself with the setting you want.

Can I do a whole folder of recordings at once?

Files can be dropped together, but every one of them will be sampled at the same timestamp — which is the sensible behaviour and is often the wrong picture for at least one recording in the set. Expect to redo a few by hand, and pick a timestamp that is past the title sequence on all of them.

More about these formats

Where these figures come from

The claims this page makes about MKV and WebP are checkable, and these are the documents that settle them.