AVI to MP4
Convert old AVI files (Xvid, DivX, MJPEG) to MP4 with ffmpeg running in your tab.
Drop an AVI file here
or paste with ⌘V / Ctrl V
Soft limit 700 MB for AVI (converted by the ffmpeg engine), 4 GB for MP4-friendly files.
Your file is processed in this tab and isn’t uploaded to our servers.
Related tools
How to use AVI to MP4
- Drop the .avi file. Browsers can’t read AVI, so the page explains that it needs the ffmpeg engine and what that involves.
- Click “Load the ffmpeg engine and convert”. The engine (about 32 MB) downloads from this site; your video stays in the tab.
- 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.
- 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.
AVI to MP4 specs
- Runs
- In this browser tab
- Built on
- Mediabunny remux and WebCodecs encoders; ffmpeg.wasm for AVI and WMV
- Cost
- Free, no account needed
- Browsers
- Current Chrome, Edge, Firefox and Safari
- Last updated
- November 27, 2026
- Part of
- 12 free tools on videoutils.dev
- 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