Video · AVI to MP4
AVI to MP4, for playback anywhere.
Old AVI files usually hold Xvid or DivX video, a format phones and browsers no longer play. This converts them to H.264 MP4 on your device, or copies them untouched if you ask. Not uploaded.
How to convert AVI to MP4
- Choose the AVI file (a digitised tape, an old camera clip, a downloaded video from the 2000s).
- Check the table. Xvid or DivX video appears as MPEG-4 and is marked Re-encoded to H.264; MP3 audio is marked Copied.
- Pick Balanced or Faster, press Convert to MP4, and download.
Why AVI needs more than a rewrap
AVI is a 1992 container, and what is inside it is usually MPEG-4 Part 2 (Xvid, DivX) video with MP3 audio. MP4 can technically store MPEG-4 Part 2, so a straight copy is possible, but almost nothing that plays MP4 will decode it: browsers, iPhones and most smart TVs want H.264. That is why Auto re-encodes this kind of video. If you only need the MP4 wrapper, for example to feed an editor that reads MPEG-4 Part 2, choose Remux only; the tool then copies both tracks unchanged and generates the missing timestamps AVI does not store reliably.
Quality, size and old-video quirks
Old AVI clips are typically 640x480 or smaller, so they re-encode quickly: in our own test runs this build encoded 640x360 at roughly 40 frames per second. Re-encoding old compressed video adds a second compression pass, so keep the original. Interlaced footage from analogue tape is not deinterlaced; it will look the same as it did. Non-square pixels are preserved as stored.
Worked example
A 45-minute 640x480 Xvid AVI of about 700 MB, with 128 kbps MP3 audio. Auto, Balanced: video Re-encoded to H.264, audio Copied. At roughly 640x480 and 25 fps that is 67,500 frames; at a conservative 30 frames per second the encode takes about 40 minutes on a laptop, so keep the tab open. The MP4 is typically smaller than the AVI because H.264 compresses better than Xvid. For a quick look, trim a short section first with the video trimmer to check the settings.
What can go wrong
- Audio drifts out of sync. Some AVIs with variable-bitrate MP3 have wrong timing. Try Always re-encode, which rewrites the audio.
- Unsupported codec. Rare codecs in AVI (Indeo, Cinepak, some DV types) may have no decoder in this build. You get a clear message rather than a broken file.
- Remux only fails. If a track cannot be stored in MP4 the tool says which one and suggests Auto.
- Windows Media files renamed to .avi (WMV video) are re-encoded when a decoder is present.
Common mistakes
- Deleting the AVI before checking the MP4 plays through to the end.
- Choosing Remux only and expecting phones to play the result.
- Upscaling: the tool only offers shrink options, because enlarging old video adds size, not detail.
Your file never leaves your browser
The conversion is done by FFmpeg compiled to WebAssembly inside a sandboxed frame. The frame's content security policy refuses every network connection except local blob and data URLs, and no ads or analytics run inside it, so there is nowhere for your video to go. The AVI is read from disk, the MP4 is built in memory, and you save it with your browser's normal download. Family video from old tapes is exactly the kind of file that should not be uploaded to a conversion site.
Limits and what this does not do
- One file at a time, up to 2 GB; warning above 500 MB.
- No deinterlacing, noise reduction, upscaling or cropping.
- No DVD (VOB) or disc-structure handling.
- Subtitles embedded in AVI are rare and not converted.
Common mix-ups
-
Often assumedAn AVI and an MP4 with the same picture are the same video, only renamed.
What the source saysMDN says a media container wraps streams and metadata, and that the codecs used are a separate component of the format. Converting changes the wrapper, and may change the codec as well. [1]
-
Often assumedIf the file converts without error, it will play anywhere MP4 plays.
What the source saysMDN lists AVC (H.264) as supported in MP4 containers in browsers and MPEG-4 Part 2 Visual, the video used by Xvid and DivX, as not supported there. A straight copy of old AVI video can therefore refuse to play. [1]
Checked against these sources on .
Frequently asked questions
Why does AVI to MP4 re-encode the video by default?
Xvid and DivX are MPEG-4 Part 2, which MP4 can hold but most phones, browsers and TVs cannot play. Re-encoding to H.264 makes the MP4 actually playable.
Can I convert AVI to MP4 without re-encoding?
Yes. Choose Remux only. The video and audio are copied unchanged into MP4. The result may not play on phones or in browsers, but works in some editors and media players.
Will the MP4 look worse than the AVI?
Slightly, because the video is compressed a second time. At the default quality the loss is usually hard to see on old standard-definition footage. Keep the original AVI.
How long will it take?
Standard-definition video encodes at roughly 30 to 40 frames per second in our tests, so a 45-minute clip takes on the order of 30 to 60 minutes. Larger frames are slower. Copying takes seconds.
My audio is out of sync. What now?
Try Always re-encode, which decodes and rewrites the audio and rebuilds timing. Remux only keeps the original timing, including any fault.
Does it handle DivX or Xvid specifically?
Yes. Both appear as MPEG-4 video in the track table and are handled the same way.
What if the converter says a decoder is missing?
The browser build supports common AVI codecs (MPEG-4, MJPEG, WMV, MP3, PCM) but not every rare one. The message names the problem; desktop software such as FFmpeg or HandBrake covers more.
Is my AVI uploaded?
No. It is processed on your device in a frame without network access.
Sources
Last checked
- MDN: video codecs used on the web — H.264, HEVC, VP8, VP9, AV1 and MPEG-4 Part 2 support and licensing notes
- MDN: media container formats — which codecs each container can hold and where browsers can play them
- FFmpeg wiki: H.264 encoding guide — CRF quality scale and presets (ultrafast to veryslow)
- FFmpeg formats documentation — the MP4, Matroska, WebM and Ogg muxers and their options (movflags faststart)
- FFmpeg command-line documentation — stream selection with -map and stream copy with -c copy
- ffmpeg.wasm project — FFmpeg compiled to WebAssembly, the engine this page runs in your browser
Runs entirely in your browser. Your file is read on your device and is never uploaded.