How to Convert AVI to MP4 — Fast, Free, No Quality Loss
AVI (Audio Video Interleave) was Microsoft's dominant video format for over a decade. But that decade ended in the early 2000s. Today, AVI files refuse to play on iPhones, get rejected by social media platforms, and confuse modern media players. The fix is simple: convert to MP4.
The good news: most AVI to MP4 conversions are instant. AVI is just a container. If the video inside it is already encoded with H.264 — which most AVI files from the past 15 years are — you can copy the video data directly into an MP4 container without re-encoding a single frame. No quality loss, no waiting.
Convert AVI to MP4 — Free, No Upload
Browser-based AVI to MP4 converter powered by FFmpeg.wasm. Files never leave your device.
Why AVI Won't Play Everywhere
AVI was designed around the Video for Windows (VFW) codec architecture from 1992. It was a brilliant system for its time — but it tied video playback to Windows codec packs. When you installed DivX or Xvid to play an AVI file in 2003, you were installing a VFW codec. That worked fine when everyone ran Windows. But iOS, Android, and modern macOS don't support the VFW codec system at all.
MP4, standardized as ISO/IEC 14496-12, uses a different architecture. It encodes video using MPEG-4 codecs (primarily H.264/AVC and H.265/HEVC) and wraps them in a container format that every modern device's media framework understands natively. There is no codec installation required — H.264 MP4 playback is built into the hardware decoder of every phone, tablet, and smart TV manufactured since 2010.
Check What's Inside Your AVI File First
Before converting, knowing what codec is inside determines whether your conversion will be instant (remux) or slow (re-encode):
ffprobe -v quiet -print_format json -show_streams input.avi | grep codec_name
What you'll see:
| Codec inside AVI | Strategy | Speed | Quality |
|---|---|---|---|
h264 | Remux only (-c:v copy) | Instant | Zero loss |
mpeg4 (DivX/Xvid) | Re-encode to H.264 | Slow | One generation loss |
msmpeg4v3 | Re-encode to H.264 | Slow | One generation loss |
huffyuv / rawvideo | Re-encode to H.264 | Slow | Lossless source |
Method 1: Convertlo Browser Tool
- Open convertlo.pro/avi-to-mp4.html in Chrome or Firefox.
- Drag and drop your AVI file or click Browse to select it.
- The converter detects your codec and uses stream copy if possible — otherwise re-encodes with H.264.
- Click Convert and download the MP4 when done.
All processing runs in your browser via WebAssembly. Your video file never leaves your device.
Method 2: FFmpeg Command Line (Fastest for Large Files)
When the AVI contains H.264 video, this command remuxes in seconds regardless of file size:
# Instant remux — no re-encoding ffmpeg -i input.avi -c:v copy -c:a copy output.mp4 # If audio codec isn't MP4-compatible (e.g. PCM audio in AVI) ffmpeg -i input.avi -c:v copy -c:a aac -b:a 192k output.mp4 # Full re-encode when DivX/Xvid video needs conversion ffmpeg -i input.avi -c:v libx264 -crf 18 -preset slow -c:a aac -b:a 192k output.mp4 # Batch convert all AVI files in a folder for f in *.avi; do ffmpeg -i "$f" -c:v copy -c:a aac output_"${f%.avi}.mp4"; done
CRF 18 is visually lossless for re-encodes. Lower values (16) are larger files with negligible quality difference. Higher values (23) produce smaller files with slight quality reduction.
Method 3: VLC — Free Desktop App
- Open VLC. Go to Media → Convert / Save (or press Ctrl+R).
- Click Add, select your AVI file, then click Convert / Save.
- In the Convert dialog, set Profile to Video - H.264 + MP3 (MP4).
- Set a destination filename ending in
.mp4. Click Start.
VLC always re-encodes — it doesn't do stream copy. This means conversion takes longer than FFmpeg's copy mode, but it works for all AVI variants including old DivX files.
The DivX/Xvid Problem
AVI files from 2000–2010 — downloaded movies, TV rips, DVD backups — almost always use DivX or Xvid encoding. These MPEG-4 Part 2 codecs predate H.264 and aren't natively supported by most modern devices even in an MP4 container.
When you convert these files, you must re-encode to H.264. The re-encode introduces one generation of compression loss, but at CRF 18 the output is visually indistinguishable from the source. The trade-off: a 1-hour Xvid AVI at 700 MB might take 10–30 minutes to re-encode on a modern CPU, and the output MP4 could be larger or smaller depending on the source quality.
-c:a aac -b:a 192k to re-encode just the audio while keeping the video stream copied losslessly.
Frequently Asked Questions
Does converting AVI to MP4 reduce quality?
Why won't my AVI file play on iPhone or Android?
How do I know what codec is inside my AVI file?
ffprobe -v quiet -print_format json -show_streams input.avi | grep codec_name. H.264 (h264/avc1) can be remuxed instantly. DivX, Xvid, and msmpeg4 variants need re-encoding.What is the fastest way to convert AVI to MP4?
ffmpeg -i input.avi -c:v copy -c:a aac output.mp4. This remuxes in seconds regardless of file size — a 10 GB file converts in under 30 seconds because no encoding happens.