Cookies for analytics and advertising
We use cookies for analytics and advertising, both sent to Google. Refusing changes nothing you can see.Read the privacy page
Converting MKV to AVIF takes one frame out of a video and encodes it with AV1, which produces the smallest good-looking still available here. If your MKV is 10-bit or HDR — which Matroska files from modern sources very often are — read the second section first: the extra range does not survive the route this frame takes, whatever AVIF as a format is capable of.
Up to 100 files at once. Mixed formats are fine.
They convert one after another and download together as a ZIP.
MKV to AVIF
Matroska is the container that ended up holding everything modern, because it is the one that never argued. HEVC at ten bits, AV1, VP9 profile 2, HDR10 and Dolby Vision metadata all travel in MKV files as a matter of routine, where MP4 handles several of them awkwardly and WebM is restricted by design.
So the person extracting a still from an MKV is much more likely than anyone else on this site to have a source with more than eight bits per channel in it, and much more likely to have chosen AVIF for exactly that reason. That expectation is reasonable, well informed, and wrong about this particular path — which is why it is the subject of the page rather than a line in the FAQ.
The frame is decoded and drawn onto a canvas, and the pixels are read back out of that canvas as eight bits per channel. Everything after that point — including the AVIF encoder — is working from eight-bit values. AVIF can store twelve bits and a wide gamut; there is simply nothing beyond eight left to hand it by the time it is asked.
Nor is a colour profile attached. The file carries the numbers that came off the canvas with nothing describing what colour space they belong to, so any viewer will treat them as sRGB. On a web page that is the right assumption and costs nothing. In a colour-managed pipeline it is the difference between a reference frame and a picture that looks approximately right.
If the still is a colour reference, a grading check or anything that has to represent the master, this is not the tool. A desktop decoder that writes straight to a high-bit-depth buffer — ffmpeg to a 16-bit PNG or an EXR, or a frame export from Resolve — keeps what the recording had and lets you decide how it is mapped rather than having a browser decide silently.
It is worth saying plainly because the alternative is a workflow built on a still that looks nearly right. Eight-bit values with no profile are perfectly serviceable for illustration and completely unsuitable as a reference, and the difference between those two uses is not visible in the file.
None of the above touches the reason most people reach for AVIF. It is a still image encoded by AV1, the codec designed to replace VP9 and compete with HEVC, and at the same visible quality it produces a substantially smaller file than JPG. That advantage is about compression efficiency and is entirely independent of bit depth.
So if the goal is the smallest good-looking still from a recording — for a page, a card, a preview, an app — this is the best target on the list, and the eight-bit ceiling costs you nothing you would have seen. The page above is for the reader who wanted something else and would not have found out until later.
AV1 searches far more possibilities per block than older codecs, and here it runs as WebAssembly on your own processor rather than on the hardware encoder your machine uses for video. A single frame from a 4K recording takes noticeably longer than the same frame as a JPG or a WebP — long enough to notice, not long enough to leave the desk.
It matters at volume rather than individually. One still is a pause; forty stills from a shelf of recordings is a real stretch of time, and that is the point at which taking the frames as PNG and batch-encoding them with a desktop AVIF encoder starts to be the faster overall route.
The timestamp is the only control on this conversion and it is the one that changes the result most. A frame from the middle of a pan, a fight or a crowd was described approximately by the video codec and no still encoder can recover what was never stored. A frame from a settled shot two seconds later can be dramatically better from the same file.
The box takes seconds from the start and begins at zero, which on a Matroska file is almost always a black frame or a logo. Play the recording, pause where you want it, convert the elapsed time to seconds, and type that in — an hour and four minutes is 3840.
Recent browsers read AVIF, which is what makes it reasonable to serve at all. The careful arrangement is still a `<picture>` element with an AVIF source and a JPG fallback, and it remains worth doing whenever a measurable share of your traffic is on older software you do not control.
Outside the browser the picture is thinner. Some desktop image viewers, several operating-system preview panes and a good number of upload forms still do not recognise the format, so an AVIF is a poor choice for anything that will be emailed, attached or handed to software somebody else chose. Keep a JPG for that and use the AVIF where it is being served.
Only as much of the file as is needed to reach the timestamp is read, and the decoding and the AV1 encoding both happen inside the browser tab. Nothing carrying the recording is sent anywhere, which for unreleased or graded material is generally the condition under which the work can happen at all.
The free tier accepts an MKV up to 100 MB. High-bit-depth 4K recordings are usually far past that, which is the awkward shape of this pair — the sources most likely to raise the bit-depth question are the least likely to fit. Where they do not, take a snapshot with a desktop player or export a PNG frame with ffmpeg, and convert that image here instead.
| MKV | AVIF | |
|---|---|---|
| Full name | Matroska Video | AV1 Image File Format |
| File extension | .mkv | .avif |
| Media type | video/x-matroska | image/avif |
| Compression | Lossy — file size is bought with quality | Either, depending on the setting |
| First published | 2002 | 2019 |
| Published by | — | Alliance for Open Media |
| Specification | Matroska | AV1 Image File Format |
| Licensing | Open standard | Open standard |
| Standing today | Current | Current |
| Bit depth | — | 12 |
| Colour it can describe | — | RGB, YCbCr, wide gamut |
| Largest image | — | 65,536 px per side |
| Opens in a browser | Some browsers | Current browsers |
| Considered instead | MP4, WebM | WebP, JXL, JPG |
AVIF opens in current browsers, though not in older ones. 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.
AVIF is a container rather than a single format. What actually plays is the codec inside it — usually AV1 — which is why two files with the same extension can behave differently on the same device.
The usual programs do not overlap: MKV opens in VLC, MKVToolNix and HandBrake, AVIF in GIMP, Squoosh and ImageMagick — so whoever receives the result needs something from the second list.
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.
AVIF comes from Alliance for Open Media and dates from 2019, specified as AV1 Image File Format. GIMP, Squoosh and ImageMagick all read it.
MKV was published in 2002 and AVIF in 2019. The older one is generally the safer file to hand to somebody; the newer one usually does the job in fewer bytes.
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.
No. The frame is read through a standard canvas, which hands over eight bits per channel, and the AVIF is written from those eight bits. AVIF as a format can store twelve and a wide gamut; this path has nothing beyond eight to give it. If HDR is the point, a desktop tool that decodes straight to a high-bit-depth buffer is the only route.
No ICC profile is attached. The values in the file are what came off the canvas, with nothing describing which colour space they belong to, so a viewer will assume sRGB. For an image going onto a web page that is the correct assumption anyway. For anything colour-managed it is a real gap.
Yes, for size. AVIF is a still image encoded by AV1, and it is materially more efficient than JPG at the same visible quality — which is the whole reason it exists and it is unaffected by the bit depth question. If you want the smallest good-looking still from a video frame, this is it.
Because AV1 encoding is genuinely expensive. It searches far more possibilities per block than JPG does, and it runs here as WebAssembly on your own processor. A single 4K frame takes noticeably longer than the same frame as a JPG or a WebP, which is fine for one image and worth planning around for forty.
Not on this conversion. The frame is encoded at a fixed setting chosen to be visually clean on ordinary content. If you need control — and for AVIF the quality-against-time curve is steep enough that you might — take the frame as a PNG, which stores exactly what was decoded, and encode the AVIF yourself.
Recent browsers read it, so a web page is the safe case. Outside the browser support is patchier: some desktop image viewers, older operating system previews and a number of upload forms still do not recognise it. Keep a JPG for anything that has to be opened by software you have not chosen.
The claims this page makes about MKV and AVIF are checkable, and these are the documents that settle them.