Video format guide
How to Convert AVI to MP4: Browser, Mac, iPhone and Windows
AVI is an older container that many Macs, phones and editors struggle with, while MP4 is the format most of them are built around. This guide shows how to convert AVI to MP4 in a browser, on Mac, iPhone and Windows, how to check what is inside your file, and when VLC or FFmpeg is the better tool.
Quick answer
To convert AVI to MP4, open a converter, add the .avi file, choose MP4 as the output and save the result. On AI Video GT, the free Video Converter takes AVI in your browser with no account, and your file never leaves your device. If the MP4 won't play, VLC or FFmpeg can re-encode it to H.264 video with AAC audio.
Updated
Written with AI assistance from AI Video GT's own product data, checked against current prices and features, and reviewed for helpfulness before publishing. How we make these guides
How it works
- 1
Check what is inside your AVI
Open the file in VLC and press Ctrl+J (Cmd+J on Mac) for Codec Information, or use the free MediaInfo app. Note the video codec (H.264, DivX, Xvid, MJPEG) and the audio codec (AAC, MP3, AC3, PCM). It takes a minute and tells you what to try if the first result fails.
- 2
Open the Video Converter
Go to the free Video Converter on AI Video GT in any modern browser, on desktop or phone. No account is needed, and your file stays on your device.
- 3
Add your AVI and choose MP4
Select or drop the .avi file, then pick MP4 as the output format on the converter page. Start the conversion and save the file when it finishes.
- 4
Test the MP4 properly
Play the start, the middle and the last minute. Listen for sound, watch lips and claps for sync, and check the picture is the right way up. If it is sideways, use Rotate Video.
- 5
Fall back to VLC or FFmpeg if it fails
If the MP4 has no sound, a black screen or drifting sync, re-encode on desktop to H.264 video and AAC audio with VLC or FFmpeg. The commands are below. Very large files and big batches are also better handled there.
How can I tell which codec my AVI uses?
Open the AVI in VLC, press Ctrl+J (Cmd+J on Mac) and read the Codec tab, or drop the file into the free MediaInfo app. You want two lines: the video codec and the audio codec.
This matters because AVI and MP4 are both containers, like boxes that hold a video stream and an audio stream. Some streams fit into an MP4 box as they are; others must be re-encoded first.
The check tells you what to expect. AI Video GT does not list a codec or quality setting for its converter, so use the result of your first conversion as the test.
- H.264 (AVC) video: MP4-friendly. On desktop, FFmpeg can often copy it into MP4 with no re-encode.
- DivX, Xvid, MPEG-4 Part 2 or MJPEG video: older codecs, usually need a re-encode to play well in MP4.
- AAC or MP3 audio: generally fine in MP4.
- PCM or AC3 audio: can end up silent in some players; re-encoding the audio to AAC is the usual fix.
How to convert AVI to MP4 on Mac, iPhone and Windows?
The browser steps above are the same on every device, so start there. The notes below cover what differs by platform.
On a Mac, QuickTime Player often cannot open AVI files, which is why people search for this. Open the Video Converter in Safari or Chrome and follow steps 2 to 4. If you prefer VLC, choose File, then Convert / Stream, pick the profile Video - H.264 + MP3 (MP4), set a destination ending in .mp4 and save.
On an iPhone, open the converter in Safari, tap to choose a file and pick your AVI from the Files app (the AVI must be saved in Files or iCloud Drive first). Convert, then save the MP4 back to Files. For long or large AVIs, a computer is the safer choice.
On Windows, use the browser converter or VLC: Media, Convert / Save, add the file, pick Video - H.264 + MP3 (MP4), choose a .mp4 destination and press Start. In VLC you can edit the profile and set the audio codec to AAC for wider compatibility.
When is the browser converter not the best choice?
Use a desktop tool when you need control or scale. No file size or length limit is published for the browser converter, and it exposes no codec or bitrate controls we can point you to, so treat it as a quick one-file tool.
VLC and FFmpeg are stronger for multi-gigabyte recordings, dozens of files, or when you want to choose the codec and quality yourself. They are desktop alternatives, not features of AI Video GT.
This FFmpeg command re-encodes to the most compatible MP4: ffmpeg -i input.avi -c:v libx264 -crf 20 -preset medium -c:a aac -b:a 160k -movflags +faststart output.mp4. Lower CRF means higher quality and a bigger file; 18 to 23 is the useful range.
If your check showed H.264 video, try a lossless copy first: ffmpeg -i input.avi -c copy output.mp4. If it errors or plays silently, use the re-encode command instead.
- Browser converter: one or a few files, any device, nothing to install
- VLC: one-off desktop jobs with a visual menu
- FFmpeg: batches, exact quality control, lossless stream copy
Will converting AVI to MP4 lose quality?
A stream copy loses nothing, while a re-encode loses a little, usually too little to notice at a sensible quality setting. Which one happens depends on the tool and the file.
We do not state which method the browser converter uses, so judge by eye: play the original and the MP4 side by side on a scene with motion or fine detail. If the MP4 looks clearly worse, re-encode on desktop with a lower CRF such as 18.
Converting cannot add detail. A 480p camcorder AVI stays 480p as an MP4. Avoid converting the same file back and forth, because each re-encode costs a little more quality.
What is the difference between AVI and MP4?
AVI is an older container from the early 1990s that can hold many kinds of codecs; MP4 is the container most modern devices and editors expect, usually with H.264 video and AAC audio.
- Compatibility: MP4 is built into most phones, Macs and editors; AVI often needs extra codecs or a different player.
- Codecs: AVI can contain almost anything (DivX, Xvid, MJPEG, H.264), which is why two AVI files can behave very differently.
- Streaming layout: MP4 can be written so playback starts before the whole file loads (FFmpeg flag -movflags +faststart).
- File size: MP4 with H.264 is often smaller than an older-codec AVI, but not always.
| Problem | Likely cause | Fix |
|---|---|---|
| MP4 plays with no sound | Audio is PCM, MP3 or AC3 and the player rejects it in MP4 | Desktop: re-encode the audio to AAC in VLC or with FFmpeg -c:a aac |
| Black screen on iPhone or Mac | Video is still an old codec such as DivX, Xvid or MJPEG | Desktop: re-encode the video to H.264 (FFmpeg -c:v libx264) |
| Audio drifts out of sync | Uneven frame rate from an old camcorder, webcam or capture tool | Desktop: do a full re-encode instead of -c copy |
| MP4 is bigger than the AVI | The source was heavily compressed and the new file keeps more data | Run the MP4 through Compress Video, or on desktop raise FFmpeg CRF to 23 |
| Video is sideways | Rotation was stored differently in the original | Fix it with Rotate Video after converting |
| Conversion stalls or fails on a huge file | Browser tools are a poor fit for very large files | Use VLC or FFmpeg on a computer |
From the community
Questions
Is the AVI to MP4 converter on AI Video GT free?
Yes. The Video Converter is one of AI Video GT's free browser video tools: no account and no watermark. Only AI video and image generation uses paid credits, so you can convert AVI files without subscribing to anything.
Does converting AVI to MP4 online upload my video?
Not on AI Video GT. The free browser video tools process files on your device, and your file never leaves it. That suits private recordings or client footage. With any other online converter, read its privacy policy before uploading sensitive video.
Can I convert AVI to MP4 on an iPhone or Android phone?
Yes, the Video Converter runs in a modern mobile browser, so there is nothing to install. Open it, choose the AVI from your files, convert and save the MP4. For very long or high-resolution AVI files, a computer is the safer choice, and VLC or FFmpeg handle them best.
How do I convert AVI to MP4 without losing quality?
Copy the streams instead of re-encoding them, for example with FFmpeg using -c copy. That only works when the AVI already holds MP4-friendly codecs like H.264. Older DivX or Xvid files need a re-encode; H.264 at a CRF of 18 to 20 keeps the loss hard to notice.
Should I use VLC or a browser converter for AVI to MP4?
Use a browser converter for one or a few files, especially on a phone or a computer where you cannot install software. Use VLC or FFmpeg for batches, huge files, or when you need to choose the codec, audio format and quality yourself.
Why is my MP4 bigger than the original AVI?
When an AVI was heavily compressed, the MP4 can come out larger because the converter keeps more data than the source had. Run the MP4 through the free Compress Video tool to shrink it, or on desktop set a higher FFmpeg CRF value such as 23.
How do I combine several AVI clips into one MP4?
Convert each AVI to MP4 first, then open the free Merge Videos tool, add the clips in order and export one file. This works well for old camcorder tapes split into many pieces. You can trim blank starts and endings with Trim Video before merging.
Related
Make it now
Every video and image model in one plan. Costs are shown before you generate, and failed generations are refunded.
