AVI to MP4

Convert AVI videos to MP4 in seconds, one file or many at once, without sending them to any server.

loading AVI to MP4
About this tool

What are AVI and MP4?

AVI is Microsoft’s 1992 container, usually with DivX/Xvid (MPEG-4 Part 2) video: common in old cameras and downloads, not supported by browsers or phones. MP4 is the video container that plays everywhere: phones, browsers, TVs, WhatsApp, Instagram and every editor, normally with H.264 video and AAC audio.

AVI files from old digital cameras and DVDs do not play in browsers or phones; the MP4 is re-encoded to H.264, which every device plays.

This page opens the video converter ready for AVI → MP4. The conversion runs in your browser: the files never leave your device.

AVI vs MP4

AVIMP4
Extension.avi.mp4
What it iscontainercontainer
Usual codecsXvid/DivX + MP3H.264, H.265, AV1 + AAC
Plays onWindows, VLC, old DVD players; not browsers or phoneseverything
Best forlegacy playerssharing, web, phones

When to convert AVI to MP4

  • Convert to MP4 when the video must play on any phone, browser or social network.
  • Keep the AVI when an old DVD player, a TV box or legacy software only reads AVI.

What changes in the conversion

  • The picture is re-encoded to H.264 and the sound to AAC, which every phone and browser plays. Re-encoding loses a little detail; the "high" quality keeps it invisible in practice.
  • Everything runs in your browser with FFmpeg compiled to WebAssembly: big files need free memory (the page warns above 300 MB) and take longer on phones.

How to convert AVI to MP4

  1. Drop one or more AVI files (.avi) on the page.
  2. Convert; MP4 is already selected.
  3. Download each MP4 or a ZIP with all of them.

Example

The converter runs FFmpeg in your browser. With the default "balanced" quality, a AVI is re-encoded with these exact arguments:

ffmpeg -i input.avi -map 0:v:0 -map 0:a:0 -vf scale=trunc(iw/2)*2:trunc(ih/2)*2 -c:v libx264 -preset veryfast -crf 24 -pix_fmt yuv420p -c:a aac -b:a 160k -movflags +faststart -y output.mp4

When the source video is already H.264 and the size is kept, the "fast" option copies the picture instead (-c:v copy), which takes seconds:

ffmpeg -i input.avi -map 0:v:0 -map 0:a:0 -c:v copy -c:a aac -b:a 160k -movflags +faststart -y output.mp4

Frequently asked questions

Are my files uploaded?

No. Your browser reads and converts the AVI files itself.

Why does a AVI file not play everywhere?

A AVI file is a container that usually carries Xvid/DivX + MP3; it plays on Windows, VLC, old DVD players; not browsers or phones. A MP4 plays on everything.

Is there a size limit?

No fixed limit, but the browser holds the file about three times in memory while converting; the page warns above 300 MB and above 1 GB, where a desktop with plenty of RAM works best.

Report a problem