Black Friday: 50% off every paid plan with code BF50. Ends 5 December.

See prices

Free tool

AVI to MP4, old videos that play again.

Turn AVI files from old cameras, phones and downloads, with Xvid, DivX, Motion JPEG or H.264 inside, into MP4 videos that play on a Mac, an iPhone, in a browser and on every site. Drop one or a whole folder: each converts as it arrives. It runs in your browser with a small FFmpeg made for this page, so the video is never uploaded. No sign-up, no watermark.

Need a custom tool, app or website? Contact us 

This runs in your browser. Your videos are never uploaded.

How it works

Three steps, nothing to install.

01 / Drop

Choose the AVI

Its first picture shows, with the size, length and what is inside.

02 / Convert

Pick size and quality

Every frame is read and saved again as H.264, the sound as AAC.

03 / Save

Play and download

Check the MP4 right here, then download it.

Guide

How to convert AVI to MP4, old clips included.

An AVI to MP4 converter reads an old AVI video and saves it again as an MP4 with H.264 picture and AAC sound, the pair that Macs, iPhones, browsers and video sites all play. This one reads the AVI with a small build of FFmpeg that runs inside the page, then uses your browser's own encoder to write the MP4. Nothing is sent to a server, and there is no length limit.

How to convert AVI to MP4

  1. Drop one or more .avi files on the box, or click to choose. You can drop several at once, a whole folder of them if you like. The first time, the page loads its reader, about 3 MB.
  2. The first picture shows big, with a line under it: picture size, length, frame rate, the video and sound codecs, and the file size.
  3. Each file is converted to MP4 straight away with the settings you used last time. The bar shows how far it has got and about how long is left, and Stop ends it.
  4. Change Quality (High, Good or Small) or Size and it is made again. Same as the video keeps every pixel; the other choices make big videos smaller. The green line says the bitrate and about how big the MP4 will be.
  5. Play the MP4 on the page, then click Download the MP4. With several files, each row has its own download, and Download all as ZIP saves them together.

Reading the info line

The codec names come straight from FFmpeg, so they can look odd. Here is what the common ones mean:

Shown asWhat it isWhere it often comes from
MPEG4MPEG-4 Part 2, the format behind Xvid and DivXFilms and TV saved in the 2000s
MSMPEG4V3DivX 3 and Microsoft's early MPEG-4Very old downloads
MJPEGMotion JPEG: every frame is a full JPEG photoDigital cameras and webcams
DVVIDEODVTape camcorders copied to a computer
H264H.264 inside an AVI wrapperSome newer cameras and screen recorders
MP3, AC3, PCM_S16LE, ADPCM_MSThe soundAll of the above

If the line ends in "no sound", the AVI has no sound track, and the MP4 will not have one either.

Picking size and quality

The size choices cap the longest side of the picture. At most 1080p keeps the longest side at 1920 pixels or less, 720p at 1280 and 480p at 854. A video that is already smaller is never stretched up, so a 640 x 480 AVI stays 640 x 480 whatever you pick.

Quality sets how much data each second of picture gets, worked out from the picture size and frame rate. As an example, take a 640 x 480 Xvid film at 25 frames a second. On Good the picture gets about 0.54 Mbps, and the sound is AAC at 160 kbps, so the two together are about 0.7 Mbps. Ten minutes of that is about 0.7 times 600 seconds, or 420 megabits, which is roughly 52 MB. On High the picture gets about 1.7 times as much data, and on Small a little over half.

  • High for home videos and anything you want to keep as the new master copy.
  • Good for most films and clips. It is set for you.
  • Small for videos you only need to send or post.

Motion JPEG files from cameras are large because every frame is a separate photo. H.264 stores only what changes between frames, so these AVIs usually shrink a lot as MP4s.

When an AVI will not convert

  • "This file could not be read as an AVI video." The video inside uses a codec the reader does not have, or the file is not really an AVI. Some files named .avi are another format with the wrong ending.
  • "The file stopped being readable part way." The AVI is cut short or damaged, often from a download or copy that did not finish. Try a fresh copy of the file.
  • The MP4 has no sound but the AVI does. Either the browser cannot encode AAC, which the summary says, or the sound in the AVI uses a codec the reader cannot decode.
  • The browser says it cannot encode H.264. Use a current Chrome, Edge or Safari. Firefox can read the AVI but may not write the MP4.

Tips for old videos

  • Keep the original AVI until you have watched the MP4 the whole way through.
  • The MP4 gets two-channel stereo sound. 5.1 surround sound is folded down into stereo, with the centre channel, where speech usually sits, mixed into both sides. Play a minute of the MP4 before you delete the AVI.
  • Large files convert in pieces and are never read whole into memory, so a long film works. It just takes time, so plug in a laptop first.

For other old formats, try WMV to MP4. If the new MP4 is still too big to share, run it through the video compressor.

Questions

Good to know.

Is my video uploaded?

No. It is read and converted in this tab, so it never leaves your computer. No account, no watermark, no length limit.

Why will an AVI not play on my Mac or phone?

AVI is an old container from Windows, and the video inside is often Xvid, DivX or Motion JPEG, which QuickTime, iPhones and browsers do not play. MP4 with H.264 plays almost everywhere.

Which AVI files work?

AVI files with Xvid, DivX (including DivX 3), H.264, Motion JPEG (many old digital cameras), MPEG-1 and 2, WMV 7 and 8, DV, Cinepak or Microsoft Video 1 pictures, and MP3, AC-3, AAC, PCM, ADPCM or WMA sound. A file with another codec says so when you drop it.

How does it read AVI in a browser?

With a small build of FFmpeg, the open video library, compiled to WebAssembly by libav.js. It has only the AVI reader and the decoders above, about 3 MB, and is licensed LGPL 2.1. The browser's own encoder then writes the H.264 MP4.

Does converting lower the quality?

Every frame is encoded again, so there is a small loss, as with any conversion. High keeps the most detail; Good is hard to tell apart from the original for most videos.

How long does it take?

Roughly as long as the video plays for a standard-definition file on a recent computer, longer for HD. The page shows the time left. Keep the tab open until it is done.

Which browsers work?

Current Chrome, Edge and Safari, which can encode H.264. Firefox can read the AVI but may not be able to write the MP4.

Can I convert AVI to MP4 without losing quality?

Not entirely, since the picture is encoded again as H.264. Pick Same as the video and High to keep the loss as small as it can be; for most clips it is hard to see.

Can I convert several AVI files at once?

Yes. Drop them all on the box, or use Add more videos. They are converted one after another with the same settings, each row has its own download, and Download all as ZIP saves them together.

Why is my MP4 smaller than the AVI?

H.264 packs video more tightly than the older codecs most AVI files use, and Motion JPEG files in particular store every frame as a whole photo. A smaller file does not mean frames were lost; play it through to check.

Will the MP4 play on an iPhone and in QuickTime?

Yes. The MP4 uses H.264 video and AAC sound, which QuickTime Player, iPhones, iPads and current browsers all play.

Will the sound stay in step with the picture?

Yes. The picture and the sound are both placed by the times stored in the file, measured from the first picture, so sound that starts a little later or earlier than the picture in the old file still lines up in the MP4.

Can it convert a very big file?

Yes. The file is read in pieces, never whole, and the MP4 is written in pieces too. When it is expected to be about 280 MB or more, Chrome and other browsers that allow it keep it in a private space on your disk, so even a long recording does not have to fit in memory. The time it takes is the limit, and the page shows how far it is.

Listed on

Listed on JustMacAppsMotionShine on Mac App IndexMotionShine on ScrollLaunchMotionShine featured on StartupBaseFeatured on FazierFeatured on Twelve ToolsMotionShine - Featured on Smol Launch