AVI to MP4

Bring old AVI captures, DivX rips and camera clips into an MP4 that phones, TVs and editors play without complaint.

or drop them here · files stay on your device
We count formats and sizes. Filenames stay private unless you opt in.

Cap the height
Quality (lower is better)28
Processed on this device
  • Runs on your device
  • No sign-up or watermark
  • No fixed file size cap

The short answer

To convert AVI to MP4, choose the AVI here and press Convert to MP4. ffmpeg, running in your browser, decodes the old codec inside (often DivX, Xvid or MJPEG) and re-encodes it to H.264 with AAC audio. The file is never uploaded, and several AVIs can be converted in one go.

How to convert AVI to MP4 for free

  1. STEP 1

    Choose your AVI files

    Select one AVI or a whole folder’s worth. Each converts in turn and saves separately.

  2. STEP 2

    Leave the height cap or lift it

    Old AVIs are usually 480p or 576p, under the 1080p default, so resolution is unchanged.

  3. STEP 3

    Pick a quality number

    Between 18 and 40, lower keeps more detail. 23 is a good choice for archiving family footage.

  4. STEP 4

    Convert and download

    Press Convert to MP4. Each MP4 downloads next to your other files; the AVIs are not changed.

Why AVI files cause trouble now

AVI (Audio Video Interleave) is Microsoft’s container from the early 1990s. It can hold almost any codec, and in practice old AVIs carry DivX, Xvid, Cinepak, MJPEG from early digital cameras, or uncompressed video from capture cards.

Phones, smart TVs and web players often refuse those codecs, and AVI has no proper support for modern features such as B-frame timing or streaming. Re-encoding to H.264 in MP4 fixes compatibility and usually shrinks the file a great deal, especially for MJPEG or uncompressed captures.

What survives, and what does not

Each AVI is decoded by ffmpeg’s built-in decoders and re-encoded with libx264 at the veryfast preset, quality 28 by default, with sound converted to AAC at 128 kbps. The height cap only ever reduces the picture, never enlarges it.

What you keep

Picture and sound, now in codecs every device plays

Original resolution when the height cap is at or above it

Frame rate, including 25 fps PAL and 29.97 fps NTSC captures

What you lose

A small amount of quality from the re-encode

Interlacing is not removed, so combing on old TV captures stays visible

Secondary audio tracks and AVI metadata

Honest limits are published on every tool page. If a tool cannot do something well, it says so here rather than letting you find out after the download.

AVI to MP4 at a glance

InputAVI (DivX, Xvid, MJPEG and other ffmpeg-readable codecs)
OutputMP4, H.264 + AAC
MethodRe-encode
BatchYes
Engineffmpeg.wasm
First-use downloadAbout 32 MB
Works offlineAfter the first use

If something goes wrong

ffmpeg says it could not process the file

The AVI may be truncated, which is common with captures that were cut off, or use a rare codec this build lacks. Try playing it in VLC; if VLC also complains, the file itself is damaged.

The picture has horizontal comb lines on movement

That is interlacing from analogue TV or camcorder sources. This tool does not deinterlace, so the lines carry over into the MP4.

AVI to MP4 questions

How do I convert AVI to MP4 without losing quality?

Set the quality slider to 18 to 20 and the height cap to Keep original. It is still a re-encode, so not bit-for-bit lossless, but the result is visually indistinguishable for typical old AVI footage.

Will the MP4 be smaller than the AVI?

Usually, and often by a lot. DivX and Xvid are older, less efficient codecs, and MJPEG or uncompressed captures are huge, so H.264 typically produces a much smaller file at similar quality.

Can I convert AVI to MP4 on a Mac?

Yes. macOS players often refuse AVI, but this page runs in Safari, Chrome or Firefox on a Mac and produces an MP4 that QuickTime and Photos open.

Are my AVI files sent anywhere?

No. Decoding and encoding both happen in your browser tab. The only download is the ffmpeg engine itself, about 32 MB, the first time you use a video tool.

Why does it take a while?

ffmpeg here runs on a single CPU thread in WebAssembly, slower than a desktop app. Short standard-definition AVIs finish quickly; long HD captures take minutes.

One of 153 file tools and planned additions. Built and tested by Arin Prajapati, last checked against the code on . canonical: https://damnfiles.com/avi-to-mp4
Analytics preferences

Help us understand which tools and file types people use. File contents always stay on your device.

Filename sharing is optional and off by default. Names can contain personal information. Changes apply to future events; disabling sharing does not delete earlier records.

Read our privacy policy