AVI to MP4 converter
Convert AVI to MP4 free in your browser, on a Mac or a PC, with no upload. Old DivX and Xvid AVIs are re-encoded to H.264 so they play anywhere; H.264 without B-frames is repackaged in seconds.
Drop files here
or
Accepts .avi · Up to 20 files at a time · up to 4.0 GB each "Upload" and "download" here mean your browser reading a file from this device and writing one back to it. Your file is never sent to a server — open your browser's network panel and watch: no request carries your file.
What happens to your AVI
- DivX, Xvid, MS MPEG-4 and MJPEG video is re-encoded to H.264, the codec every phone, TV, Mac and browser decodes in hardware. This is what fixes an AVI that will not play.
- H.264 video without B-frames, as security cameras, dashcams and screen recorders write it, is copied into the MP4 as it is: no quality lost, and seconds instead of minutes.
- The sound — usually MP3 or AC-3 in an AVI — becomes AAC at 192 kbps, which MP4 players expect.
- The index goes at the start of the file, so the MP4 starts playing at once when opened in a browser or streamed.
How long it takes
| AVI | Per minute of video | A 10-minute clip |
|---|---|---|
| H.264 without B-frames (repackaged) | about 2 s | about 20 s |
| 480p DivX or Xvid (re-encoded) | about 53 s | about 9 min |
| 720p DivX or Xvid (re-encoded) | about 72 s | about 12 min |
Worked out from the measurements below, in Chrome on a laptop with an Intel Core i7-1165G7. Nothing is uploaded, so your connection does not matter; your processor does. The page converts files up to 4 GB on a computer — about two and a half hours of 720p Xvid at the bitrate of the test file, which would take hours to re-encode.
Other ways to do it
- VLC (free, Windows and Mac): Media → Convert / Save, add the file, pick the profile "Video - H.264 + MP3 (MP4)".
- HandBrake (free, Windows and Mac): open the AVI, keep the MP4 format, Start Encode. Better for files over 4 GB or a whole folder of them.
- QuickTime Player on a Mac cannot open DivX or Xvid, so it cannot convert them either.
This page needs nothing installed, keeps the file on your computer, and copies H.264 video instead of re-encoding it when the AVI allows that.
What it does not do
- No files over 4 GB on a computer, or 512 MB on a phone. Use HandBrake or VLC for those.
- No cutting or joining. The whole AVI becomes one MP4.
- No HEVC (H.265) output. H.264 is the one every device plays; HEVC would be smaller but not universal.
How fast it is and what it costs in quality, measured
| AVI | Time | MP4 | VMAF |
|---|---|---|---|
| 480p, 156.5 MB | 8 min 48 s | 52.9 MB (34%) | 91.3 |
| 720p, 284.4 MB | 11 min 56 s | 89.2 MB (31%) | 91.8 |
VMAF is the video quality measure Netflix built and published: it compares each frame of the converted file with the same frame of the original and gives a score from 0 to 100, trained on how real viewers rated encoded video against its source. It is not a pass mark, and it does not mean nobody could tell the two apart — it is a number you can check and compare with other converters on the same file.
What came out
- Nothing dropped or added. Both files kept all 14,315 frames of the original and its exact running time of 9 min 56 s.
- H.264 (High profile) video with AAC stereo audio at 192 kbps, the combination phones, TVs and browsers all play without extra software.
- The index is at the start of the file, so it begins playing straight away when streamed or opened in a browser instead of waiting for the whole file.
- The low points are brief. VMAF is the average over every frame; 95% of frames scored at least 87.1 at 480p and 87.8 at 720p. Out of 14,315 frames, 4 at 480p and 6 at 720p scored below 80; the lowest single frame was 74.0 at 480p and 75.7 at 720p.
How it was measured
The test files are the Blender Foundation's official AVI releases of Big Buck Bunny, at 854×480 and 1280×720 — MS MPEG-4 v2 video with MP3 audio, the kind of AVI that modern phones will not play. Each was converted on this page with the default settings, in Chrome on a laptop with an Intel Core i7-1165G7 and 16 GB of memory. The time runs from choosing the file to the download being ready, and leaves out the converter's one-time download on first use. VMAF was computed with libvmaf over every frame against the decoded original. Measured on 19 October 2026.
Two caveats. Speed depends on your computer: nothing is uploaded, so your connection does not matter, but a slower processor will take longer. And Big Buck Bunny is animation — flat colour compresses more easily than grainy camera footage, so expect a larger file from a noisy home video.
AVIs that already hold H.264
An AVI whose video is already 8-bit H.264 without B-frames — as many security cameras, dashcams and screen recorders write it — is not re-encoded: the picture is copied into the MP4 and only the sound is converted to AAC. One minute of 720p took 1.9 seconds, every one of its 1,440 frames decoded identically to the AVI's, and it played in Chrome without a dropped frame. H.264 with B-frames is re-encoded like any other AVI, because an AVI does not record the order those frames are shown in; copied, they played out of order. Measured on 26 October 2026; the details are in Why won't my AVI file play?.
AVI to MP4 FAQ
How do I convert AVI to MP4 on a Mac?
Open this page in Safari or Chrome, add the AVI and download the MP4 — nothing to install. QuickTime Player cannot do it: it does not open the DivX and Xvid video most AVIs hold, which is usually why the file will not play on a Mac in the first place. The MP4 that comes back is H.264 with AAC sound, so it opens in QuickTime, Photos and iMovie. Re-encoding a long clip takes a few minutes; an AVI that already holds H.264 without B-frames is repackaged in seconds. Files up to 4 GB on a computer.
Why does this take so much longer than MOV to MP4?
Because it is a real conversion, not a repack. MOV and MP4 hold the same codecs, so the streams are copied. AVI holds codecs MP4 does not accept, so every frame has to be decoded and compressed again — the slow part of any video work. The exception is an AVI that already holds H.264 without B-frames: its video is copied as it is, and the conversion takes seconds.
Will the video lose quality?
A little, when it is re-encoded. Re-encoding compressed video always costs something. At the default quality the loss is not visible on ordinary footage. Raising the quality preset reduces it further at the cost of a larger file. An H.264 AVI that is repackaged instead loses nothing in the picture.
Why will nothing play my AVI?
The container is not really the problem — the codec inside is. DivX and Xvid predate hardware decoders, so phones and TVs have no silicon for them and increasingly no software either. Converting to H.264 gives the file a codec every device already has. Browsers are the exception: they do not open AVI at all, whatever is inside — in our test Chrome refused an AVI holding H.264 too.
Can it convert a large AVI — over 1 GB?
Up to 4 GB per file on a computer and 512 MB on a phone. On a computer the converted file is written to your browser's own storage on disk as it is made, not held in memory, so it can be as large as the source; the upload box shows the figure for your device. Most AVIs are re-encoded, which takes as long as the video runs or longer — re-encoding 18 minutes of 720p took 27 minutes in our tests — so leave the tab open.
Does the audio get converted too?
Yes. AVI often carries MP3 or AC-3 audio, which MP4 does not accept in the same form, so the audio is re-encoded to AAC alongside the video. When the video is repackaged and the sound is already AAC, the sound is copied as it is too.
Can I convert several AVIs at once?
Yes, up to twenty. They run one after another rather than together, because each conversion needs its own working memory and running them in parallel would exhaust it.
Related guides
Related converters
MP4 to AVI
Every frame re-encoded — slower than a container swapAVI to MP3
Keeps only the soundtrack, compressed into a smaller fileMOV to MP4
Repackages the same streams — lossless and near-instantMKV to MP4
Repackages the same streams — lossless and near-instantWebM to MP4
Every frame re-encoded — slower than a container swapWMV to MP4
Every frame re-encoded — slower than a container swapFLV to MP4
Every frame re-encoded — slower than a container swapM4V to MP4
Repackages the same streams — lossless and near-instant