AVI to MKV Converter
FileFlip converts AVI to MKV entirely inside your browser, using WebCodecs and FFmpeg compiled to WebAssembly. The file is never uploaded to a server: it is read off your disk, converted on your own machine, and saved back by the browser. That means no file-size limit, no queue and no account.
How do I convert an AVI file to MKV?#
- Drop your AVI file onto the converter at the top of this page, or click it to pick one from your computer. You can add as many as you like.
- Leave the target set to MKV and the conversion starts on its own. FileFlip usually downloads nothing, falling back to 30.8 MB of WebAssembly if your browser cannot encode these codecs itself, then runs WebCodecs and FFmpeg on your own machine.
- Save the MKV file. Your browser writes it straight to your downloads folder, because there was never a server holding it.
Does converting AVI to MKV lose quality?#
Sometimes. When the codecs inside the AVI file are ones the MKV container can hold, the streams are copied straight across and nothing at all is lost. When they are not, the file has to be decoded and encoded again, and that step does cost a little quality.
Is it safe to convert AVI files online?#
Yes, because nothing is uploaded. FileFlip converts AVI files inside the browser tab you already have open, using WebAssembly builds of the same engines a desktop converter would install. Your file is read from your own disk into the page's memory, and no request carrying it is ever made.
You do not have to take that on trust. Open your browser's network panel, run a conversion, and you will see the engine come down and your file go nowhere. There is no upload, no server-side copy, no retention window, and no account tied to what you converted.
How FileFlip works lists every engine, its version and its download size, and shows how to check for yourself that nothing leaves your machine.
What AVI to MKV actually does to the file#
Converting AVI to MKV runs on WebCodecs and FFmpeg, usually downloads nothing, falling back to 30.8 MB of WebAssembly if your browser cannot encode these codecs itself, copies the streams through when the codecs fit and re-encodes when they do not.
| Engine | WebCodecs and FFmpeg |
|---|---|
| Conversion path | One step: AVI → MKV |
| Downloaded to your browser | Nothing in most browsers, or 30.8 MB if yours cannot encode these codecs itself |
| Quality | Lossless when the codecs fit, lossy when they do not |
| You get back | One file |
| Where it runs | In a background worker, so the page stays responsive |
What survives the conversion
| What is in the file | This conversion | Why |
|---|---|---|
| Encoded streams | Sometimes | Survives for some files and not others. |
Worth knowing before you start:
- the FFmpeg fallback is an LGPL build, so a re-encode produces MPEG-4 Part 2, VP8, VP9, or Theora rather than H.264 or H.265
- whether the browser can do this without FFmpeg depends on the codecs it exposes through WebCodecs
- the encoded streams are copied when the file's codecs fit the target container, and re-encoded when they do not
What is an AVI file?#
An AVI file interleaves video and audio in chunks of Microsoft's RIFF structure, the container Windows has used for video since 1992 and the one most video from the DivX and Xvid years is stored in.
Keep a file as AVI when it is going into software old enough to predate MP4, which is the one situation where the format's age helps.
Convert AVI to MP4 to get the video playing on phones, browsers and TVs, and to shrink it, since what is inside an AVI is usually a codec generation or two behind.
What is an MKV file?#
An MKV file is a Matroska container built on the EBML binary format, and it can hold any number of video, audio, subtitle and attachment tracks, encoded with essentially any codec, in a single file.
Use MKV when a video needs multiple audio tracks, several subtitle languages, or a codec MP4 doesn't accommodate, and it's staying on software you control, like a media server or a desktop player.
Convert MKV to MP4 when a file needs to play on a device that never added MKV support, since that's usually a hardware or software gap rather than anything wrong with the codec inside.
AVI to MKV questions people ask#
Does converting AVI to MP4 lose quality?
Converting AVI to MP4 nearly always re-encodes the video, so some quality is lost. AVI predates H.264 and H.265, which is what MP4 players expect, so the old DivX or Xvid stream cannot simply be rewrapped the way an MKV can. Encoding at a generous bitrate keeps the loss invisible in practice, and the result usually still ends up smaller than the AVI.
Can AVI files have subtitles?
AVI has no subtitle track, so subtitles for an AVI live in a separate SRT or SUB file sitting next to it with a matching filename, and the player pairs them up. Move the video without the sidecar file and the subtitles are gone. Converting to MKV or MP4 lets the subtitles be embedded in the video file itself, which is the usual reason people move AVIs into a newer container.
Why won't my AVI file play?
An AVI that will not play is usually encoded with a codec the machine does not have. AVI identifies its video by a four character code and leaves the decoder to the operating system, which is why Windows users spent years installing codec packs. Old DivX, Xvid, Indeo and Cinepak files all hit this. VLC ships its own decoders and plays most of them, and converting to MP4 removes the problem permanently.
Is AVI a codec or a container?
AVI is a container, and an unusually open-ended one. Any codec that registers a four character code can go inside, so AVI files from different eras hold wildly different things: MJPEG from a camera, Cinepak from a CD-ROM, DivX or Xvid from a download. That is why one AVI plays instantly and the next one shows a black screen on the same computer.