AVI to MKV Converter
Move an AVI into a Matroska file, re-encoded as H.264 and AAC.
or drop files here
AVI Format
Audio Video Interleave
A container introduced by Microsoft in 1992 and based on RIFF. It interleaves video and audio and can hold many different codecs.
- RIFF-based container
- Many codecs
- Limited support for modern features
- Legacy format
MKV Format
Matroska video
An open container that holds any number of 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 AVI to MKV
Follow these steps to convert AVI to MKV online.
Choose your AVI file, or several at once.
Wait while the converter turns each file into MKV.
Download each new MKV file. Your original file isn't changed.
Related Tools
MKV to AVI
Convert MKV video files to AVI format
AVI to 3GP
Convert AVI files to 3GP format
AVI to ASF
Convert AVI files to ASF format
AVI to AU
Convert AVI files to AU format
AVI to F4V
Convert AVI files to F4V format
AVI to M4V
Convert AVI files to M4V format
AVI to MP2
Convert AVI files to MP2 format
AVI to MP3
Convert AVI files to MP3 format
AVI to MP4
Convert AVI files to MP4 format
AVI to MPEG2
Convert AVI files to MPEG2 format
AVI to TS
Convert AVI files to TS format
AVI to WMA
Convert AVI files to WMA format
AVI Compressor
Compress and optimize AVI files
AV1 to MKV
Convert AV1 files to MKV format
AVCHD to MKV
Convert AVCHD files to MKV format
GIF to MKV
Convert GIF files to MKV format
HEVC to MKV
Convert HEVC files to MKV format
MOV to MKV
Convert MOV files to MKV format
MPEG to MKV
Convert MPEG files to MKV format
MPG to MKV
Convert MPG files to MKV format
RMVB to MKV
Convert RMVB files to MKV format
TS to MKV
Convert TS files to MKV format
VOB to MKV
Convert VOB files to MKV format
WMV to MKV
Convert WMV files to MKV format
What to know before converting AVI to MKV
- The video is re-encoded as H.264 and the sound as AAC at 96 kbps, so this is not a lossless remux.
- Footage larger than 1920 pixels on its longer side is scaled down, and the frame rate is capped at 30 fps.
- The page passes no stream mapping, so FFmpeg's defaults choose which streams are written.
- Several AVI files convert in turn, one MKV each.
About AVI files
What is an AVI file?
Windows 3.1 got AVI, short for Audio Video Interleave, from Microsoft, with a first specification from 1992. Pictures and sound that run on a timeline are stored in a RIFF file. One chunk holds the header (dimensions, frame rate and similar), another holds the media, and FOURCC codes name each stream and codec.
Uncompressed, lossless or lossy video can all live in an AVI, so the extension alone cannot tell you its quality or size. The usual ending is .avi, and one common media-type label is video/x-msvideo.
You find AVI in video production archives and in older desktop workflows such as camera and capture output. It is a legacy container, and people often replace it with something newer.
Programs that open AVI files
QuickTime Player, VLC and Windows Media Player all play AVI. Sorted by platform, the fact sheet for AVI names these programs:
Windows, Mac and Linux
- ffplay: FFmpeg contains the AVI demuxer.
- mpv: desktop playback where audio and subtitle streams are selectable.
Windows and Mac
- Adobe Premiere: takes in the container so long as the decoder it needs is there.
Mobile
- VLC for Android and VLC for iOS: the Android app is free, and what it decodes follows from the contents of the container; the iOS app is a mobile player that handles most movie formats and reaches both local and network media.
AVI and MKV compared
- Names and types: .avi is commonly labeled video/x-msvideo, and IANA registers video/matroska for Matroska video.
- Structure: AVI is built from RIFF chunks. Matroska rests on EBML, a binary structure that derives from XML.
- Tracks: Matroska can carry several video, audio and subtitle streams, and chapters and descriptive tags are part of its design. AVI has limited support for modern features.
- Codecs: no codec or quality level is built into either container. An AVI may hold uncompressed, lossless or lossy video, and Matroska leaves the compression method open.
- Origins: Microsoft introduced AVI in 1992. Matroska developed from the earlier MCF project.
This page does not just rewrap the AVI. It decodes the video and writes it again through x264 at CRF 32 with its ultrafast preset, writes the sound as 96 kbps AAC, scales anything past 1920 pixels along the longer edge, and holds the rate to 30 fps. The MKV is a compressed copy, not an archival match of the AVI, and you cannot change the quality.
No stream mapping is passed, so FFmpeg's own defaults pick the streams, and its defaults also copy global tags where the output can hold them. For a plain one-video, one-audio AVI that is what you expect. Your original stays untouched, and the download is named after the AVI with the .mkv ending. Pick several files and they convert in turn, one MKV each. This page does not cap the size.
Other ways to convert AVI to MKV
- FFmpeg, remux (Windows, Mac, Linux): run
ffmpeg -i capture-master.avi -c copy capture-master.mkv. Streams are copied without re-encoding, and FFmpeg chooses them automatically. - HandBrakeCLI: run
HandBrakeCLI --input avi-review.avi --output avi-review.mkv --format av_mkv --encoder x264 --aencoder av_aac --quality 22. This re-encodes, so it is a derivative copy. - Prism (Windows): add the AVI, set Output Format to MKV, review Encoder Options, set Save to Folder and click Convert. Its available codecs depend on the installation.
Problems with AVI files
- The player opens it but an editor rejects it: an editor may identify AVI yet have no decoder for what is actually inside.
- A huge capture won't open: the original AVI design limits size in ways the later OpenDML extension does not, so big captures need software that copes.
- Stretched or combed picture: implementations of AVI do not treat aspect ratio and scan type in a consistent way. Check the MKV in a player.
- Wrong or missing extra track: this page does not map tracks, and FFmpeg's defaults decide. Run FFmpeg yourself if you need a specific stream layout.
- A damaged or cut-short AVI: it often converts anyway, yielding a shorter MKV. Compare its running time with the source.
- A smaller picture than the source: this page scales footage whose longer side passes 1920 pixels. The FFmpeg remux keeps the original size.
- A soft or blocky result: the page re-encodes at CRF 32 with the ultrafast preset, so the MKV can look worse than the AVI.
Frequently Asked Questions
Everything you need to know about our converter
How do I convert AVI to MKV?
Is this a lossless AVI to MKV remux?
Could the MKV look worse than my AVI?
Will the MKV be smaller than the AVI?
Which audio tracks end up in the MKV?
Why would I move from AVI to MKV?
Will resolution and frame rate stay as they were?
What plays an MKV file?
Can I rename an AVI to .mkv instead?
Is my AVI uploaded anywhere?
Browse All Tools
Browse by category instead of one giant mixed list.
Convert Tools
Convert image, audio, video, document, and data files directly in your browser.