How to Convert AVI to MP4 on Mac: HandBrake, VLC, FFmpeg & More
A complete guide to converting AVI to MP4 on Mac — covering HandBrake, VLC, FFmpeg, online converters, batch conversion, and codec differences explained.
AVI files are everywhere. They come from old camcorders, downloaded archives, screen recorders, and legacy software exports. The problem is that in 2026, AVI is essentially a dead format on modern Macs — QuickTime barely tolerates it, iOS ignores it entirely, and most web platforms refuse it outright. Converting AVI to MP4 fixes all of that in one step.
This guide walks you through every practical method to convert AVI to MP4 on macOS: HandBrake (the free workhorse), VLC (already on most Macs), FFmpeg (for command-line power users), and online converters for one-off jobs. We also cover what's actually inside an AVI file, why codec choice matters, and how to handle batch conversion without losing your mind.
Why AVI Files Need to Become MP4
AVI (Audio Video Interleave) was introduced by Microsoft in 1992. It was a fine format for its era — but that era ended roughly two decades ago. Today, AVI carries a handful of real-world problems for Mac users:
- No native macOS support. QuickTime Player 10 dropped direct AVI playback. You need a third-party codec or player.
- Oversized files. AVI containers are often paired with older codecs like DivX, Xvid, or uncompressed video that balloon file sizes well beyond what H.264 or H.265 would produce.
- Poor mobile compatibility. iPhones and iPads do not play AVI. Neither do most modern smart TVs or streaming platforms.
- Editing headaches. Final Cut Pro, iMovie, and DaVinci Resolve all prefer MP4 with H.264 or H.265 — importing AVI often requires an intermediary step anyway.
MP4 (MPEG-4 Part 14) solves every one of these issues. It is the universal container: lightweight, widely supported, and designed to carry modern codecs efficiently. For anyone working with video on a Mac, the AVI to MP4 conversion is less a technical exercise and more a housekeeping necessity.
Understanding the Codecs Inside Your AVI File
Before you convert, it is worth knowing what you are dealing with. AVI is a container — think of it as a box. The actual video compression is done by a codec stored inside that box. The codec determines quality, file size, and compatibility far more than the container does.
Common codecs found inside AVI files:
| Codec | Era | Notes |
|---|---|---|
| DivX | Late 1990s–2000s | Popular for pirated DVD rips; decent quality at small sizes for its time |
| Xvid | 2001–present | Open-source DivX alternative; still used in some archive formats |
| MPEG-2 | 1994–2010s | DVD-standard codec; high quality but large files |
| Uncompressed / PCM | Any era | Raw video; massive file sizes |
| H.264 in AVI | 2005–present | Rare but possible; same codec as MP4, just in a worse container |
When you convert AVI to MP4, you typically re-encode from one of those older codecs into H.264 or H.265 (HEVC). The result is a dramatically smaller file that looks as good or better than the original. A 700 MB Xvid AVI from a DVD rip, for example, commonly re-encodes to a 200–350 MB H.264 MP4 at identical or higher perceived quality.
If you want to understand the H.264 vs H.265 tradeoffs in depth, our guide on HEVC vs H.264 covers bitrate efficiency, hardware support, and when each codec makes sense.
Method 1: Convert AVI to MP4 with HandBrake
HandBrake is the most capable free AVI-to-MP4 converter available on macOS. It handles every codec inside an AVI, offers sensible presets for beginners, and gives expert users complete control over output quality. It is open source, actively maintained, and genuinely excellent.
Download: handbrake.fr
Step-by-step conversion
- Open HandBrake. Drag your AVI file onto the main window, or go to File → Open Source.
- HandBrake scans the file and loads it. In the Summary tab, confirm the Format is set to MP4.
- Open the Presets drawer on the right. For most use cases, Fast 1080p30 under the General category is a reliable starting point.
- Click the Video tab. You will see two important settings:
- Video Encoder: Choose H.264 (x264) for maximum compatibility. Choose H.265 (x265) if you want smaller files and do not need to play the result on older devices.
- Quality (RF slider): Leave this at 22 for H.264. A lower number means better quality and larger file size. Values between 20 and 24 are the practical range for most content.
- In the Audio tab, leave the default AAC track or select AC3 Passthrough if you want to preserve surround sound unchanged.
- Click Browse at the bottom to set your output destination and filename.
- Click Start Encode. HandBrake will convert your AVI to MP4.
Tips for quality preservation
- Set framerate to Same as source — never change this unless you have a specific reason.
- Do not resize the video unless you need to. Downscaling is irreversible.
- For content with lots of motion (sports, action footage), lower the RF value by 1–2 points (RF 20–21) to avoid compression artifacts.
- For archiving content you want to keep for years, H.265 at RF 22–24 produces the best size-to-quality ratio.
Batch converting AVI files with HandBrake
HandBrake's queue feature makes batch conversion straightforward. After configuring settings for the first file, click Add to Queue instead of Start Encode. Switch to the next AVI file, configure it (or use the same settings), and add it to the queue too. Repeat until all files are queued, then click Start Queue. HandBrake processes them all sequentially while you do something else.
For large collections — a folder of 50 AVI files, say — this approach saves hours compared to converting files one by one.
Method 2: Convert AVI to MP4 with VLC
VLC Media Player includes a built-in converter that most users never discover. If you already have VLC installed, you have a capable AVI-to-MP4 tool sitting right on your Mac.
Download: videolan.org/vlc
- Open VLC. Go to File → Convert / Stream (or press Shift + Command + S).
- Click Open media and select your AVI file.
- In the "Choose Profile" section, select Video - H.264 + MP3 (MP4) from the dropdown.
- Click the wrench icon next to the profile if you want to adjust the video codec or quality settings.
- Click Save as File, then choose your output destination.
- Click Go. VLC encodes the file and saves the MP4.
VLC's converter is not as configurable as HandBrake and lacks a visual quality slider (RF). It also does not support batch conversion natively. But for a single AVI file when HandBrake feels like overkill, it works well and requires zero additional software.
Method 3: Convert AVI to MP4 with FFmpeg
FFmpeg is the engine underneath most video conversion tools — including HandBrake. Using it directly via the command line gives you the fastest possible conversions and complete control over every output parameter.
Install via Homebrew:
brew install ffmpeg
Basic AVI to MP4 conversion
ffmpeg -i input.avi -c:v libx264 -crf 22 -c:a aac -b:a 128k output.mp4
This command re-encodes the video using H.264 at CRF 22 and encodes audio to AAC at 128 kbps. It works with any codec inside the source AVI — DivX, Xvid, MPEG-2, or anything else.
Lossless container copy (when the AVI already contains H.264)
If your AVI file already uses H.264 video internally, you can copy the streams without re-encoding. This is instantaneous and produces no quality loss:
ffmpeg -i input.avi -c:v copy -c:a copy output.mp4
This does not work if the AVI contains DivX, Xvid, or other codecs — you will get playback errors in the MP4. Run ffprobe input.avi first to check what codec is inside.
H.265 conversion for maximum compression
ffmpeg -i input.avi -c:v libx265 -crf 24 -c:a aac -b:a 128k output.mp4
H.265 at CRF 24 typically produces files 40–50% smaller than H.264 at comparable quality. The trade-off is longer encoding time and slightly lower compatibility on older devices.
Batch convert all AVI files in a folder
for f in *.avi; do ffmpeg -i "$f" -c:v libx264 -crf 22 -c:a aac "${f%.avi}.mp4"; done
Run this in the folder containing your AVI files. FFmpeg converts each one sequentially and saves the MP4 alongside the original.
Our FFmpeg video compression guide goes deeper into CRF values, bitrate targets, hardware acceleration, and advanced encoding flags if you want to push FFmpeg further.
Method 4: Online AVI to MP4 Converters
Online converters are the easiest entry point — no software to install, no settings to understand. They work for occasional, non-sensitive files but come with real limitations.
Popular options:
- CloudConvert (cloudconvert.com) — clean interface, good quality, generous free tier
- FreeConvert (freeconvert.com) — supports large files, multiple formats
- Convertio (convertio.co) — simple drag-and-drop, limited free file size
When to use online converters:
- You have a single AVI file to convert and do not want to install software.
- The file is under 500 MB and does not contain sensitive content.
- You need a quick result on a machine where you cannot install apps.
When to avoid them:
- Files over 1 GB (most free tiers cap at 100–500 MB).
- Client work, confidential footage, or anything with personal data — your file is uploaded to a third-party server.
- Batch conversion — doing 20 files one at a time through a browser is painful.
- Quality-critical work — you have no control over encoder settings.
For regular Mac users, online converters are a decent emergency option, not a workflow tool.
AVI to MP4 Conversion: Quality Preservation Guide
The most common concern when converting AVI to MP4 is quality loss. Here is the practical reality:
Re-encoding always involves some quality change. When you convert DivX or Xvid to H.264, you are decoding the original compressed video and re-compressing it. If you use a high enough quality setting (CRF 18–22 in HandBrake or FFmpeg), the result is visually indistinguishable from the source. Side-by-side comparison at 100% zoom may reveal minor differences, but in normal playback the MP4 will look identical.
You cannot recover quality that was never there. If your AVI was a low-bitrate encode to begin with — say, a 700 MB XviD rip of a 2-hour film — the source quality is already limited. Re-encoding to MP4 preserves that quality faithfully, but it cannot improve it.
Use the right CRF value. In HandBrake or FFmpeg with H.264:
- CRF 18–20: Near lossless, large files
- CRF 22–23: Good balance, recommended for most content
- CRF 24–28: Smaller files, visible quality reduction on complex scenes
For a deeper look at format comparisons and container choices, see our MKV vs MP4 breakdown.
Best Tools for AVI to MP4 on Mac: Quick Comparison
| Tool | Best For | Batch Support | Quality Control | Free? |
|---|---|---|---|---|
| HandBrake | Most users, all use cases | Yes (queue) | Excellent (RF slider) | Yes |
| VLC | Quick single-file conversions | No | Basic | Yes |
| FFmpeg | Automation, scripting, power users | Yes (scripting) | Complete | Yes |
| Online converters | One-off files, no install | No | None | Mostly |
| Compresto | Mac video compression + batch workflow | Yes | High | Free trial |
Batch AVI to MP4 Conversion on Mac
If you have a folder of AVI files — old home videos, a downloaded series, archived footage — converting them one by one is not realistic. Here are the practical approaches for batch work:
HandBrake Queue is the best GUI option. Load files one at a time, add each to the queue with the same preset, then start the queue. HandBrake works through them in order.
FFmpeg shell loop is faster and more flexible. The one-liner above handles any number of files automatically. You can also write a shell script to recurse through subdirectories:
find /path/to/avi/folder -name "*.avi" -exec sh -c \
'ffmpeg -i "$1" -c:v libx264 -crf 22 -c:a aac "${1%.avi}.mp4"' _ {} \;
Compresto on macOS handles batch compression after conversion, reducing the output MP4 files further without re-encoding at the pixel level. Its Folder Monitoring feature automatically processes new files dropped into a watched folder — useful if you regularly export AVI files from another application and need them optimized for storage or sharing. Try it at compresto.app.
For a broader comparison of what is available on Mac for video format work, see our 6 best free video converter software roundup and best video compressor for Mac guide.
FAQ
Does converting AVI to MP4 reduce quality?
Not significantly, if you use a high-quality setting. Tools like HandBrake and FFmpeg let you control the output quality precisely using the CRF (Constant Rate Factor) setting. At CRF 22 for H.264, the converted MP4 is visually indistinguishable from the AVI source in normal playback. You only see meaningful quality loss if you push the CRF value too high (above 26–28) in search of a smaller file.
Why is my converted MP4 larger than the original AVI?
This happens when the source AVI uses a very low bitrate (heavily compressed DivX or Xvid) and your conversion settings target higher quality than the original. The MP4 encoder is allocating more data than the original file used. Fix it by raising the CRF value (e.g., from 18 to 22–24) or by targeting a specific bitrate with -b:v in FFmpeg rather than using CRF mode.
Can I convert AVI to MP4 without re-encoding?
Only if the AVI file already contains an H.264 video stream internally. In that case, you can use FFmpeg's stream copy mode (-c:v copy -c:a copy) to remux instantly with zero quality loss and no encoding time. Most AVI files contain DivX, Xvid, or MPEG-2 video, which cannot be directly copied into an MP4 container — those require a full re-encode.
What is the difference between DivX/Xvid and H.264/H.265?
DivX and Xvid are MPEG-4 Part 2 codecs from the early 2000s. They were significant innovations at the time, making DVD-quality video fit on a CD. H.264 (MPEG-4 Part 10, released 2003) and H.265/HEVC (released 2013) are more advanced successors that deliver substantially better compression — H.264 encodes the same quality at roughly half the bitrate of Xvid, and H.265 cuts that in half again. Converting from DivX/Xvid to H.264 or H.265 almost always produces a smaller file at equal or better quality.
Is HandBrake or FFmpeg better for converting AVI to MP4?
HandBrake is better for most users because it has a visual interface, sensible presets, and a quality slider that makes it hard to get wrong. FFmpeg is better for power users who need automation, precise bitrate control, or integration with scripts and workflows. Both use the same underlying encoders (x264, x265) and produce equivalent quality at matching settings. If you are converting one or two files, use HandBrake. If you are writing a script to process a folder, use FFmpeg.
Ready to take your converted MP4 files further? Compresto compresses video, images, PDFs, and GIFs on macOS with a simple drag-and-drop interface — no settings required, no quality loss. Try it free at compresto.app.