AVI to MP4 converter
Choose an AVI and download an MP4, free and without an account. When MP4 takes every stream, the converter copies them, so an Xvid AVI still holds Xvid video, which our test browser didn't show; our Motion JPEG AVI with PCM sound, which MP4 can't hold, was re-encoded to H.264 and came out 5 times smaller.
- Input
- AVI files
- Utdata
- MP4, streams copied when they all fit
- Limit
- Up to 500 MB
- Price
- Free, no account
How to convert AVI to MP4
- 01
Choose your AVI
Drop it on the box. The limit is 500 MB.
- 02
Check what changes
The table under your file shows what the MP4 keeps and what it drops.
- 03
Download the MP4
The link lasts one day.
Does converting AVI to MP4 lose quality?
Not when every stream fits in an MP4: then the converter copies them frame for frame. A PCM sound track doesn't fit, and then the whole file is re-encoded.
We converted a real Xvid AVI: all 737 frames decode to the same checksums, and 13.5 MB became 13.5 MB. A Motion JPEG AVI with AAC sound was copied too, 240 of 240 frames identical. The same Motion JPEG with PCM sound was re-encoded to H.264 and AAC: 12.5 MB became 2.6 MB, with an SSIM of 0.974, where 1 means identical.
A copy keeps the codecs, and the last column shows what our test browser, Chromium, the open-source base of Chrome, did with each MP4. It showed no picture for Xvid or Motion JPEG.
Xvid, no sound
arraydemo-xvid.avi, as published
KopiertXvid (MPEG-4 Part 2)
Plays in Chromium: No
Xvid + MP3
Made with FFmpeg
KopiertXvid + MP3
Plays in Chromium: Sound only
Motion JPEG + AAC
Made with FFmpeg
KopiertMotion JPEG + AAC
Plays in Chromium: Sound only
Motion JPEG + PCM
Made with FFmpeg
Re-encodedH.264 + AAC: the PCM sound can't be copied
Plays in Chromium: Yes
How big will the MP4 be?
A copy keeps the size. Both of our re-encodes to H.264 came out smaller: the converter's, of the Motion JPEG AVI with PCM sound, and FFmpeg's, of the Xvid AVI with the first command below.
Where is the MP4 going?
Use AVI to MOV.
Apple names .avi among files that may need another app, and its iPhone specs name HEVC, H.264 and AV1. AVI to MOV always re-encodes to H.264.
Source: Apple: if a media file doesn't open
Use AVI to MOV insteadUse AVI to MOV.
Final Cut Pro imports AVI, but its codec list has H.264 and Motion JPEG, not Xvid.
Source: Apple: media formats supported in Final Cut Pro
Use AVI to MOV insteadYou may not need to convert.
Microsoft lists .avi among the file types Windows Media Player opens.
You don't need an MP4.
YouTube lists AVI among the formats it accepts.
Source: YouTube: supported file formats
Convert on your computer
- FFmpeg, to H.264 for any player
Re-encodes Xvid and Motion JPEG too, so the MP4 holds H.264 and AAC.
ffmpeg -i in.avi -map 0:v:0 -map 0:a? -c:v libx264 -crf 20 -preset medium -pix_fmt yuv420p -c:a aac -b:a 160k -movflags +faststart out.mp4- FFmpeg, as this converter runs it
Copies every stream. FFmpeg stops on PCM sound, and then the converter re-encodes.
ffmpeg -i in.avi -map 0:v:0? -map 0:a? -codec copy -movflags +faststart out.mp4
If the conversion doesn't work
- The MP4 plays sound but no picture
- The AVI held Xvid or Motion JPEG video, which the converter copies as it is, and the player can't decode it. Re-encode it with the first command above, or use AVI to MOV.
- "Choose a file under 500 MB."
- Use the FFmpeg commands above: on your computer they have no size limit.
Related file conversions
Turn an idea into a video
Give Storybook a topic or an article link. It makes an illustrated video with narration and music.