# AVI to MP4

> Convert AVI to MP4 in your browser with ffmpeg.wasm. Xvid, DivX and MJPEG become H.264; H.264 AVIs are remuxed. No upload, no watermark.

- URL: https://www.videoutils.dev/tools/avi-to-mp4/
- Published: 2026-11-26
- Updated: 2026-11-27

---

Convert old AVI files (Xvid, DivX, MJPEG) to MP4 with ffmpeg running in your tab. Your file is processed in this tab and isn’t uploaded to our servers. Free on videoutils.dev, no account needed.

## How to use AVI to MP4

1. Drop the .avi file. Browsers can’t read AVI, so the page explains that it needs the ffmpeg engine and what that involves.
2. Click “Load the ffmpeg engine and convert”. The engine (about 32 MB) downloads from this site; your video stays in the tab.
3. ffmpeg checks the streams. H.264 video and AAC or MP3 audio are copied; Xvid, DivX, MJPEG and other old codecs are re-encoded to H.264.
4. Re-encoding in WebAssembly is slow, often around real time or slower, so leave the tab open, then download the MP4.

## Features

- Runs real ffmpeg compiled to WebAssembly, so it reads the AVI variants browsers can’t: Xvid, DivX, MJPEG, Cinepak, Indeo and PCM or MP3 audio.
- Copies streams that are already MP4-friendly (H.264 video, AAC or MP3 audio) instead of re-encoding them.
- Reads the AVI from disk with a mounted file instead of copying it into memory first.
- Writes an H.264 MP4 (AAC audio, or the original MP3 audio when it is copied) with the index at the front (fast start), so it plays and seeks everywhere.
- Asks before downloading the engine, and says up front that it is slower than the browser’s built-in encoders.

## About AVI to MP4

**AVI** (Audio Video Interleave) is Microsoft’s container from 1992. It was the format of the DivX and Xvid era, of early digital cameras that recorded **MJPEG**, and of many old screen captures. Modern phones, TVs, editors and browsers have largely dropped it: no browser can read AVI, and the MPEG-4 Part 2 codecs (Xvid, DivX) inside most AVIs aren’t built into any of them.

So this page works differently from the others here. Instead of the browser’s own media engine, it loads **ffmpeg compiled to WebAssembly** (ffmpeg.wasm), the same ffmpeg that desktop converters use, and runs it inside the tab. The engine is a download of about 32 MB from this site (your browser caches it afterwards), which is why it only loads when you click. ffmpeg first reads the file’s streams: if the video is already **H.264** it is copied, and **MP3** or **AAC** audio is copied too. Anything else is encoded to H.264 and AAC.

Be realistic about speed: ffmpeg in WebAssembly runs on one CPU core with no hardware encoder, so re-encoding often runs at about real time or slower, depending on the resolution and your CPU. Short, low-resolution clips are quick enough; an hour of 720p footage is a long wait. The engine also works within WebAssembly’s memory limit, so this page has a 700 MB soft limit for AVI files (above it, it warns and asks before trying). For a big archive of AVIs, desktop HandBrake or command-line ffmpeg will be much faster.

## Specs

- Runs: in the browser tab
- Built on: Mediabunny remux and WebCodecs encoders; ffmpeg.wasm for AVI and WMV
- Cost: free, no account needed
- Soft size limit: 700 MB (ffmpeg.wasm memory)
- Engine: ffmpeg.wasm (@ffmpeg/core 0.12.10), about 32 MB, loaded on request from this site
- Output: MP4, H.264 (CRF 23) + AAC 160 kbps, or copied streams when already compatible
- Category: [Convert to MP4](https://www.videoutils.dev/categories/convert-to-mp4/)

## Questions

### How do I convert AVI to MP4?

Drop the AVI here, click “Load the ffmpeg engine and convert”, and wait for the progress bar. The page downloads ffmpeg once (about 32 MB), converts the file in this tab, and gives you an MP4 to download.

### Why does this page download an engine when the others don’t?

Browsers can read MP4, MOV, MKV and WEBM with their own media APIs, but not AVI or the Xvid and DivX codecs inside it. ffmpeg compiled to WebAssembly can, so the page loads it only when you convert an AVI.

### Why is AVI to MP4 slow?

Most AVI files contain Xvid, DivX or MJPEG video, which has to be re-encoded to H.264 for MP4. ffmpeg in WebAssembly does that on one CPU core without hardware acceleration, often at about real time or slower. H.264 AVIs are copied and finish quickly.

### Is my AVI file uploaded?

No. Your file is processed in this tab and isn’t uploaded to our servers. The only network request is the engine download from this site, which doesn’t include your video.

### What is the size limit for AVI files?

The soft limit is 700 MB. ffmpeg.wasm runs in 32-bit WebAssembly memory that has to hold the engine and the finished MP4, so larger files may fail or crash the tab; the page warns you and asks before trying. For bigger files, desktop HandBrake or ffmpeg is the better choice.
