Video2026-05-31·4 min read·By Sky Lu

How to Convert AVI to MP4 for Free

Convert AVI to MP4 free in your browser. No sign-up or install. Get a smaller, widely-supported file that plays on any phone, browser, or device.

AVI files are often the reason a video plays fine on an old Windows laptop but refuses to upload to a website, open on a phone, or attach to a message. After reading this, you’ll know how to convert AVI to MP4 for free, which settings to choose, how to avoid quality loss, and what to do if the sound goes missing or the file becomes too large.

Why AVI to MP4 conversion usually fixes playback and upload problems

AVI is a container format, not a single video format. That means an AVI file can hold many different video and audio codecs: DivX, Xvid, MJPEG, DV, PCM audio, MP3 audio, and others. This is why two AVI files can behave completely differently. One may open everywhere, while another may fail in your browser or upload tool.

MP4 is also a container, but the common MP4 combination is much more widely accepted: H.264 video with AAC audio. If your goal is sharing, uploading, emailing, or playing on phones, that combination is usually the safest choice.

A practical target for most conversions is:

  • Container: MP4
  • Video codec: H.264
  • Audio codec: AAC
  • Frame rate: Same as source
  • Resolution: Same as source unless you need a smaller file
  • Bitrate: Adjust based on quality and file size needs
  • The most common mistake is thinking “MP4” alone guarantees compatibility. It does not. An MP4 file encoded with an unusual video codec may still fail in some apps. For broad compatibility, choose H.264 + AAC inside MP4.

    Method 1: Convert AVI to MP4 free with VLC

    VLC is a good first choice if you want a free converter without many technical controls. It works on Windows, macOS, and Linux, and it handles many older AVI files that basic apps struggle with.

    Steps in VLC

  • Open VLC.
  • Go to Media > Convert / Save on Windows or File > Convert / Stream on macOS.
  • Click Add and choose your AVI file.
  • Click Convert / Save.
  • Under Profile, choose Video - H.264 + MP3 (MP4) or a similar MP4 profile.
  • If available, edit the profile and set:
  • - Encapsulation: MP4/MOV - Video codec: H.264 - Audio codec: AAC if available, otherwise MP3 is usually acceptable
  • Choose a destination file name ending in `.mp4`.
  • Click Start.
  • If VLC produces an MP4 with no audio, go back into the profile settings and check the audio tab. Make sure Audio is enabled. For best compatibility, choose AAC, sample rate 44100 Hz or 48000 Hz, and bitrate 128 kbps for speech or 160–192 kbps for music-heavy clips.

    VLC is convenient, but it is not always the best tool for controlling file size. It may also fail silently with damaged AVI files. If the output file is zero bytes, has only audio, or looks distorted, use HandBrake or FFmpeg instead.

    Method 2: Convert AVI to MP4 free with HandBrake

    HandBrake is better than VLC when you want predictable quality and smaller MP4 files. It is especially useful for large AVI files from cameras, screen recordings, old editing exports, or archives.

    Recommended HandBrake settings

  • Open HandBrake.
  • Drag your AVI file into the window.
  • Set Format to MP4.
  • In the Summary tab, enable Web Optimized if you plan to upload the video or host it online. This helps the video start playing before the entire file downloads.
  • Go to the Dimensions tab:
  • - Keep the original resolution if quality matters. - Use 1280×720 for a smaller shareable version. - Avoid upscaling. If your AVI is 640×480, do not export it as 1920×1080; it only makes the file larger and softer.
  • Go to the Video tab:
  • - Video Encoder: H.264 - Framerate: Same as source - Select Constant Framerate if the video will be edited later or used in presentation software. - Quality: RF 20–22 for a good balance. Use RF 18 for higher quality, RF 23–24 for smaller files.
  • Go to the Audio tab:
  • - Codec: AAC - Bitrate: 128 kbps for voice, 160 or 192 kbps for music - Mixdown: Stereo unless the source has surround sound you need to preserve
  • Choose a save location and click Start Encode.
  • For most AVI files, HandBrake’s Fast 1080p30 preset is a reasonable starting point. If your source is 720p or smaller, use Fast 720p30 or keep the source dimensions. If the original AVI is interlaced, such as footage from an old camcorder, open the Filters tab and set Deinterlace to Decomb. This helps remove horizontal comb lines during motion.

    A common HandBrake mistake is changing too many settings at once. If you are unsure, only set MP4, H.264, AAC, Same as source frame rate, and RF 20–22. Test 30 seconds first before converting a long file.

    Method 3: Convert AVI to MP4 free with FFmpeg

    FFmpeg is the best option if you are comfortable with command-line tools or need to batch convert many AVI files. It is also useful for unusual AVI files that fail in visual converter apps.

    Basic high-quality conversion command

    ```bash ffmpeg -i input.avi -c:v libx264 -crf 22 -preset medium -c:a aac -b:a 160k output.mp4 ```

    This creates an MP4 with H.264 video and AAC audio. The important parts are:

  • `-c:v libx264` chooses H.264 video.
  • `-crf 22` controls quality. Lower means better quality and larger file. Try 18–20 for high quality, 22–24 for smaller files.
  • `-preset medium` balances speed and compression. Use `fast` if you need speed; use `slow` if you want a smaller file and can wait.
  • `-c:a aac -b:a 160k` converts audio to AAC at 160 kbps.
  • Keep the original resolution and frame rate

    By default, FFmpeg keeps the source resolution and frame rate unless you tell it otherwise. That is usually what you want. If you need a smaller 720p version, use:

    ```bash ffmpeg -i input.avi -vf "scale=-2:720" -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 128k output-720p.mp4 ```

    The `-2` tells FFmpeg to calculate the width automatically while keeping it divisible by 2, which prevents encoding errors.

    Batch convert multiple AVI files

    On Windows PowerShell:

    ```powershell Get-ChildItem *.avi | ForEach-Object { ffmpeg -i $_.FullName -c:v libx264 -crf 22 -preset medium -c:a aac -b:a 160k "$($_.BaseName).mp4" } ```

    On macOS or Linux:

    ```bash for f in *.avi; do ffmpeg -i "$f" -c:v libx264 -crf 22 -preset medium -c:a aac -b:a 160k "${f%.avi}.mp4" done ```

    FFmpeg is also the easiest way to fix audio delay. If the converted MP4 has audio that starts half a second late, try:

    ```bash ffmpeg -i input.avi -itsoffset 0.5 -i input.avi -map 0:v -map 1:a -c:v libx264 -crf 22 -c:a aac -b:a 160k output-fixed.mp4 ```

    Use a positive offset if the audio is too early, and a negative value if the audio is too late. Test with small values like `0.2`, `0.5`, or `-0.3`.

    Choosing the right settings for your use case

    The best AVI to MP4 settings depend on where the video will go. A file for archiving should not use the same settings as a file for email.

    For email or messaging, aim for a smaller file:

  • Resolution: 720p or lower
  • Video: H.264
  • Quality: HandBrake RF 23–25, or FFmpeg CRF 23–25
  • Audio: AAC 96–128 kbps
  • Trim unnecessary footage before conversion if possible
  • For YouTube, websites, or social uploads, keep more detail:

  • Resolution: Same as source, unless the source is larger than needed
  • Video: H.264
  • Quality: RF/CRF 18–22
  • Audio: AAC 160–192 kbps
  • Enable Web Optimized in HandBrake if available
  • For editing later, prioritize consistency:

  • Frame rate: Constant frame rate
  • Resolution: Same as source
  • Quality: RF/CRF 18–20
  • Audio: AAC 192 kbps or higher
  • Avoid heavy compression if the file will be edited, color-corrected, and exported again
  • For old camcorder AVI files, check for interlacing. If moving objects have jagged horizontal lines, use HandBrake’s Decomb filter or FFmpeg’s `yadif` filter:

    ```bash ffmpeg -i input.avi -vf yadif -c:v libx264 -crf 21 -preset medium -c:a aac -b:a 160k output.mp4 ```

    If your converted MP4 is still too large after using the right settings, compress the finished file rather than repeatedly re-exporting from random apps. You can use Compress Video to reduce the MP4 size for sharing after you have converted it.

    Common AVI to MP4 problems and fixes

    The MP4 has no sound

    This usually happens because the AVI contains an audio codec the converter did not handle correctly, or the audio track was disabled during conversion. In HandBrake, open the Audio tab and make sure a track is listed. Set the codec to AAC. In FFmpeg, force audio conversion with:

    ```bash ffmpeg -i input.avi -c:v libx264 -crf 22 -c:a aac -b:a 160k output.mp4 ```

    If FFmpeg says there is no audio stream, the AVI may not actually contain audio, or it may be damaged.

    The video looks stretched

    Older AVI files sometimes use non-square pixels or incorrect aspect ratio flags. If a 4:3 video appears wide, force the aspect ratio.

    For a standard 4:3 file:

    ```bash ffmpeg -i input.avi -aspect 4:3 -c:v libx264 -crf 22 -c:a aac -b:a 160k output.mp4 ```

    For widescreen:

    ```bash ffmpeg -i input.avi -aspect 16:9 -c:v libx264 -crf 22 -c:a aac -b:a 160k output.mp4 ```

    In HandBrake, check the Dimensions tab and preview the result before encoding the full video.

    The converted MP4 is bigger than the AVI

    That can happen if the AVI was already heavily compressed or low resolution, and your MP4 settings are too generous. Use a higher RF/CRF value, such as 23 or 24, and reduce audio bitrate to 128 kbps if the audio is mostly speech.

    Do not increase the resolution. Exporting a 640×480 AVI as 1920×1080 creates a larger file without adding real detail.

    The video is choppy after conversion

    Use Same as source for frame rate. If the file will be used in PowerPoint, video editors, or older playback devices, choose Constant Framerate in HandBrake. Variable frame rate can sometimes cause sync and playback issues in editing software.

    If FFmpeg creates a choppy file from an odd AVI, try:

    ```bash ffmpeg -i input.avi -vsync cfr -c:v libx264 -crf 22 -preset medium -c:a aac -b:a 160k output.mp4 ```

    The converter freezes or fails

    First, test whether the AVI plays from start to finish in VLC. If it stops at the same point every time, the file may be damaged. With FFmpeg, you can try ignoring some errors:

    ```bash ffmpeg -err_detect ignore_err -i input.avi -c:v libx264 -crf 22 -c:a aac -b:a 160k output.mp4 ```

    If the file is very old or comes from a camera, copy it to your local drive before converting. Converting directly from a USB stick, network folder, or external drive can cause failures if the connection drops or slows down.

    Quick decision guide

    Use VLC if you need a simple one-off conversion and do not care much about advanced settings.

    Use HandBrake if you want a good-looking MP4 with reasonable file size and clear controls.

    Use FFmpeg if you need batch conversion, repair options, automation, or better handling of unusual AVI files.

    For a safe default, use MP4 with H.264 video, AAC audio, same resolution, same frame rate, and RF/CRF 20–22. Lower the resolution to 720p and use RF/CRF 23–24 if the file needs to be easier to share.

    Once your AVI is converted, play the MP4 from beginning to end before deleting the original. Check the first minute, a middle section, and the final minute for audio sync, missing sound, stretched video, or glitches. If the MP4 is larger than you need, try the BestAIFinds Compress Video tool to make the finished file easier to send or upload.

    SL

    Sky Lu

    Solo developer behind BestAIFinds — 240+ free, no-signup file tools, most running entirely in your browser. More about me →