AVI to MP4
Bring old AVI captures, DivX rips and camera clips into an MP4 that phones, TVs and editors play without complaint.
or drop them here · files stay on your device
We count formats and sizes. Filenames stay private unless you opt in.
- Runs on your device
- No sign-up or watermark
- No fixed file size cap
The short answer
To convert AVI to MP4, choose the AVI here and press Convert to MP4. ffmpeg, running in your browser, decodes the old codec inside (often DivX, Xvid or MJPEG) and re-encodes it to H.264 with AAC audio. The file is never uploaded, and several AVIs can be converted in one go.
How to convert AVI to MP4 for free
- STEP 1
Choose your AVI files
Select one AVI or a whole folder’s worth. Each converts in turn and saves separately.
- STEP 2
Leave the height cap or lift it
Old AVIs are usually 480p or 576p, under the 1080p default, so resolution is unchanged.
- STEP 3
Pick a quality number
Between 18 and 40, lower keeps more detail. 23 is a good choice for archiving family footage.
- STEP 4
Convert and download
Press Convert to MP4. Each MP4 downloads next to your other files; the AVIs are not changed.
Why AVI files cause trouble now
AVI (Audio Video Interleave) is Microsoft’s container from the early 1990s. It can hold almost any codec, and in practice old AVIs carry DivX, Xvid, Cinepak, MJPEG from early digital cameras, or uncompressed video from capture cards.
Phones, smart TVs and web players often refuse those codecs, and AVI has no proper support for modern features such as B-frame timing or streaming. Re-encoding to H.264 in MP4 fixes compatibility and usually shrinks the file a great deal, especially for MJPEG or uncompressed captures.
What survives, and what does not
Each AVI is decoded by ffmpeg’s built-in decoders and re-encoded with libx264 at the veryfast preset, quality 28 by default, with sound converted to AAC at 128 kbps. The height cap only ever reduces the picture, never enlarges it.
What you keep
Picture and sound, now in codecs every device plays
Original resolution when the height cap is at or above it
Frame rate, including 25 fps PAL and 29.97 fps NTSC captures
What you lose
A small amount of quality from the re-encode
Interlacing is not removed, so combing on old TV captures stays visible
Secondary audio tracks and AVI metadata
Honest limits are published on every tool page. If a tool cannot do something well, it says so here rather than letting you find out after the download.
AVI to MP4 at a glance
| Input | AVI (DivX, Xvid, MJPEG and other ffmpeg-readable codecs) |
|---|---|
| Output | MP4, H.264 + AAC |
| Method | Re-encode |
| Batch | Yes |
| Engine | ffmpeg.wasm |
| First-use download | About 32 MB |
| Works offline | After the first use |
If something goes wrong
ffmpeg says it could not process the file
The AVI may be truncated, which is common with captures that were cut off, or use a rare codec this build lacks. Try playing it in VLC; if VLC also complains, the file itself is damaged.
The picture has horizontal comb lines on movement
That is interlacing from analogue TV or camcorder sources. This tool does not deinterlace, so the lines carry over into the MP4.
AVI to MP4 questions
How do I convert AVI to MP4 without losing quality?
Set the quality slider to 18 to 20 and the height cap to Keep original. It is still a re-encode, so not bit-for-bit lossless, but the result is visually indistinguishable for typical old AVI footage.
Will the MP4 be smaller than the AVI?
Usually, and often by a lot. DivX and Xvid are older, less efficient codecs, and MJPEG or uncompressed captures are huge, so H.264 typically produces a much smaller file at similar quality.
Can I convert AVI to MP4 on a Mac?
Yes. macOS players often refuse AVI, but this page runs in Safari, Chrome or Firefox on a Mac and produces an MP4 that QuickTime and Photos open.
Are my AVI files sent anywhere?
No. Decoding and encoding both happen in your browser tab. The only download is the ffmpeg engine itself, about 32 MB, the first time you use a video tool.
Why does it take a while?
ffmpeg here runs on a single CPU thread in WebAssembly, slower than a desktop app. Short standard-definition AVIs finish quickly; long HD captures take minutes.