How to convert AVI to MP4
- 1
Drop your AVI file into the converter above, or click to browse. Nothing is uploaded — the file stays on your device.
- 2
Adjust the settings (quality, resolution, and trim). Tip: Old AVI footage is often low resolution, so leave Resolution on Original (it never upscales) and keep quality at 80 or higher to preserve the detail that is there.
- 3
Click “Convert to MP4”. The conversion runs locally in your browser — larger files take longer, and a progress bar keeps you posted.
- 4
Preview the result and hit Download to save your MP4 file.
Settings at a glance
| Setting | Options | Default | What it does |
|---|---|---|---|
| Quality | 10–100 (steps of 5) | 80 | Sets the H.264 CRF: 100 = CRF 18, 80 = CRF 21, 10 = CRF 31. Higher means more detail and a larger file. |
| Resolution | Original, 1080p, 720p, 480p | Original | Caps the output height and keeps the aspect ratio; never upscales. |
| Trim | Start and end time (seconds or m:ss) | Whole video | Converts only the part you choose. |
| Audio | Fixed | AAC 128 kbps | Audio is re-encoded to AAC so it plays everywhere. |
| Frame rate | Fixed | Same as source | The original frame rate is kept. |
Why convert AVI to MP4?
AVI dates back to 1992 and was designed long before today's codecs. Many AVI files contain older video codecs, and modern phones, browsers and editors have been steadily reducing their support for them.
Converting re-encodes the video with H.264 and the audio with AAC inside an MP4, a combination that plays on current phones, browsers, TVs and editors. Whether the file gets smaller depends on which codec the AVI used: older formats such as MJPEG are far less efficient than H.264, but an AVI that already holds H.264 will not shrink much.
AVI vs MP4 at a glance
| AVI | MP4 | |
|---|---|---|
| Type | Video container (legacy) | Video container (H.264 + AAC) |
| Compression | Dated, inefficient | Lossy, very efficient |
| Audio | Yes | Yes (AAC) |
| Compatibility | Old Windows software; poor on modern devices | Universal — every device, browser, and editor |
| Best for | Legacy camera footage and archives | Sharing, social media, editing, playback anywhere |
About the formats
AVI Audio Video Interleave
AVI is Microsoft's legacy video container from 1992. It's still produced by older cameras, dashcams, and Windows tools, but it compresses poorly by modern standards and increasingly fails to open on phones, browsers, and current editing apps.
MP4 MPEG-4 Part 14
MP4 is the most widely supported video format in the world. Built on the H.264 codec with AAC audio, it plays on every phone, browser, TV, and editing app, and offers an excellent balance of quality and file size. When in doubt, MP4 is the safe choice for sharing video.
Frequently asked questions
My AVI is from an old camera. Will it convert?
Most likely. The ANFX converter runs a full build of FFmpeg, which decodes the codecs most commonly found in AVI files, including MJPEG and MPEG-4 Part 2 (DivX/Xvid). A file using a rare or proprietary codec, or a damaged file, can still fail, in which case the tool shows an error instead of producing a file.
Will the MP4 be smaller than my AVI?
Often, but not always. H.264 is much more efficient than the older codecs many AVI files use (such as MJPEG, which stores every frame as a separate JPEG), so those files usually shrink. An AVI that already contains H.264, or very low-bitrate footage, may stay about the same size or grow. The converter encodes at your chosen quality, not at the original bitrate.
Is this AVI to MP4 converter really free?
Yes. The ANFX AVI to MP4 converter is free to use with no sign-up, no watermark added to the output, and no cap on how many files you convert. It is paid for by the ads on the page, not by you.
Are my files uploaded to a server?
No. The ANFX AVI to MP4 converter runs FFmpeg compiled to WebAssembly inside your browser tab, so your AVI file is read and converted on your own device and is never sent to ANFX or anyone else. The only thing downloaded is the conversion engine itself, which makes the tool suitable for private or confidential files.
Is there a file size limit?
The tool sets no file-size or length limit of its own. The whole AVI file is loaded into your browser tab's memory and converted there, so the practical ceiling is your device's available memory: large files take longer, and very large ones can fail on phones or low-memory computers. Trimming does not reduce the memory needed to load the file, but it does shorten the conversion and shrink the output.
Why does the first conversion take a moment to start?
On the first conversion your browser downloads the conversion engine (FFmpeg compiled to WebAssembly, about 31 MB) from a public CDN. The browser caches it, so later conversions start much faster. The engine runs on a single CPU thread, so conversion speed depends on your device and on the length and resolution of the file.
Related converters
See all converters on the free online tools page.
AVI and MP4 explained
Not sure which format you actually want? These guides cover the trade-offs.
- How to Reduce Video File Size Without Killing QualityResolution, codec, quality setting, trimming — four levers control video file size, and they're not equally effective. Which to pull first, with real numbers.
- Best Codec for Motion Graphics: H.264 vs ProRes vs WebMH.264 for delivery, ProRes for editing, ProRes 4444 or PNG for alpha, WebM for transparent web video. Decision table, real file sizes, ffmpeg commands.
Making videos? Grab free assets too
ANFX offers a library of free 4K motion graphics, overlays, and stock video — no attribution required.
Browse free stock video