MKV to GIF converter

Make an animated GIF from part of a MKV video: choose the clip, size and frame rate, all on your device.

Your files never leave your device

Drop a video here

MP4, MOV, WebM or MKV. Pick up to 30 seconds of it for the GIF. The video stays on your device.

You can also paste files with Ctrl+V.

In short

To convert MKV to GIF, drop the MKV video above, drag the selection to the part you want (up to 30 seconds), adjust Width and Frame rate if needed and press Create GIF. The defaults for a GIF from a MKV, 480 px at 15 fps, suit chats and websites.

MKV vs GIF at a glance

MKV vs GIF at a glance
FeatureMKVGIF
Full name Matroska Video Graphics Interchange Format
File extension .mkv .gif
Type Video container Raster image
Compression – Lossless
Transparency – Yes
Animation – Yes
Colors – 256 colors
Largest width or height – 65,535 px
Camera data (EXIF) – No
Usual video codecs H.264, HEVC, VP9, and AV1 –
Usual audio codecs AAC, Opus, AC-3, and FLAC –
Introduced 2002 (Matroska.org) 1987 (CompuServe)
Opens in web browsers Partly Yes
Opens on Windows Yes Yes
Opens on Mac No Yes
Opens on iPhone No Yes
Opens on Android Partly Yes

How to convert MKV to GIF

  1. Drop your MKV on the box above or press Choose video.
  2. Move the start and end of the selection to the moment you want; a GIF made from a MKV can be up to 30 seconds long.
  3. Set Width (default 480 px), Frame rate (default 15 fps) and Colors; lower values make a smaller GIF from the same MKV clip.
  4. Press Create GIF, check the preview of the MKV clip as GIF, then press Download.

Example: 5 seconds of MKV as a GIF

A 1080p MKV scaled to 480 px wide becomes 480 × 270 pixels. At 15 fps, 5 seconds are 75 frames, and each 8-bit frame holds 129,600 bytes: 9.7 MB of raw frame data.

LZW compression usually keeps 35 to 70 percent of that for real MKV footage, so expect a GIF of about 3.4 MB – 6.8 MB; the same 5 seconds of MKV video are often smaller, which is the price of GIF's universal playback.

GIF size for 5 seconds of MKV by width

16:9 footage at 15 fps; raw = width × height × frames.
Size (pixels)Raw frame dataTypical GIF
240 × 136 2.4 MB857 kB – 1.7 MB
320 × 180 4.3 MB1.5 MB – 3 MB
480 × 270 9.7 MB3.4 MB – 6.8 MB
640 × 360 17.3 MB6 MB – 12.1 MB

What a GIF keeps from a MKV

MKV (Matroska) can carry almost any codec plus several audio and subtitle tracks, which makes it popular for recordings and archives but means phones, Macs and TVs often refuse it while they play GIF. A GIF plays as a short silent loop almost anywhere, from chat apps to email and forums, which is what makes MKV clips shareable as GIF.

A GIF stores frames with at most 256 colors and no sound, so a few seconds of MKV footage can become a large file; the converter picks the best 256 colors for your clip, and with dithering on it keeps gradients smooth.

At the default 480 × 270 and 15 frames per second, 5 seconds of MKV are 75 frames of 129,600 bytes each, 9.7 MB before compression and typically 3.4 MB – 6.8 MB as a GIF.

Frequently asked questions

How long can the GIF made from my MKV be?

Up to 30 seconds of the MKV. Longer animations become very large as GIF; for more than that, keep the MKV clip as a video or convert it to MP4 instead.

How do I make the GIF from my MKV smaller?

Lower the width (320 px has less than half the pixels of 480 px), lower the frame rate to 10 fps, reduce Colors to 128 or 64, or pick a shorter part of the MKV. The estimated GIF size updates as you change these settings.

Does the GIF keep the sound of the MKV?

No. A GIF has no audio track, so the MKV sound is dropped. To keep the sound, trim the MKV as a video instead.

Is there a watermark on the GIF?

No. The GIF contains only the frames of your MKV, with no watermark, logo or end card.

Is my MKV uploaded to make the GIF?

No. The MKV is decoded and the GIF is encoded in your browser; nothing is sent to a server.

Which MKV files can I turn into a GIF?

MKV files with H.264, HEVC, VP9, and AV1 video work wherever your browser can decode that codec; if one can't be read, a message says so instead of producing a broken GIF.

Will the GIF loop?

Yes. The GIF loops forever by default; turn off Loop forever before creating it for a GIF that plays once.

How your files stay private

Lumofile runs this tool with JavaScript and WebAssembly inside your browser tab. Your files are read from your disk, processed in memory and saved back to your device. Nothing is uploaded: open your browser's network panel while you use the tool and you will see no upload request.

Related conversions

More MKV conversions

Other formats to GIF

File converter: every format pair

Last updated Nov 20, 2026