Home › Audio & Video › AVI to MP4

AVI to MP4

Turn old AVI videos from cameras, phones and downloads into modern MP4 files that play on every phone, browser, TV and editing app. The conversion runs on your own computer with the ffmpeg engine, so your videos are never uploaded, and you can convert several files in one go.

Last updated:

Conversion settings

Files

  • No files yet. Add one or more AVI videos above; you'll see their codec, size and length here before converting.

Advertisement
Advertisement

How to use the AVI to MP4

  1. Add your AVI files by dropping them on the box or clicking Choose AVI files. Each file shows its codec, size and length.
  2. Pick the settings: Balanced quality and Fast speed suit most videos. Choose a smaller size to get smaller files.
  3. Press Convert to MP4. The first time, the converter (about 31 MB) is downloaded and then cached by your browser.
  4. Wait for the progress bar to finish. Keep the tab open; you can cancel at any time.
  5. Press Download MP4 next to each file, or Download all (ZIP) for several files.

What's inside an AVI file?

AVI (Audio Video Interleave) is a container that Microsoft introduced in 1992. The container only holds the streams; the picture and sound inside can use many different codecs. That is why one AVI plays fine and another shows only sound or an error. When you add a file, this tool reads the AVI header and tells you which codecs it uses before anything is converted.

Video codec in the AVITypical sourceWhat happens
Xvid / DivX (MPEG-4 Part 2)Downloads and rips from the 2000sRe-encoded to H.264
Motion JPEG (MJPG)Digital cameras, webcams, dashcamsRe-encoded to H.264, file often becomes 5-10× smaller
DVMiniDV camcorder capturesRe-encoded to H.264, much smaller
H.264Newer cameras, screen recordersCopied without re-encoding (Auto mode)
Uncompressed, Huffyuv, Lagarith, Ut VideoCapture cards, editing exportsRe-encoded to H.264, dramatically smaller

Choosing quality and speed

The quality setting is the x264 CRF value. CRF 23 is the encoder's default and a good balance; use 18-21 for archiving family videos and 27-30 when small size matters more than detail. The speed setting is the x264 preset: Fastest (ultrafast) finishes soonest but makes larger files, Slow (medium) makes the smallest files at the same quality but takes several times longer. Because the converter runs in a single browser thread, downscaling to 720p is the most effective way to speed up long HD videos.

The exact conversion

For re-encoded files the tool runs the equivalent of ffmpeg -i input.avi -c:v libx264 -preset veryfast -crf 23 -pix_fmt yuv420p -c:a aac -b:a 128k -ac 2 -movflags +faststart output.mp4, with your chosen values. The yuv420p pixel format and the fast-start flag make the MP4 play in every browser and start streaming immediately. Odd frame sizes are rounded to even numbers and non-square pixels (common in DV) are converted to square pixels so the picture keeps its shape.

Frequently asked questions

Is it safe to convert AVI to MP4 here?

Yes. The converter is the open-source ffmpeg engine compiled to WebAssembly and it runs inside your browser tab. Your videos are read from your disk and converted on your own computer; they are never uploaded to a server.

Will I lose quality converting AVI to MP4?

If the AVI already contains H.264 video, it is copied into the MP4 container with no quality loss at all. Other AVI codecs such as Xvid, DivX or MJPEG must be re-encoded to H.264. At Balanced (CRF 23) or High (CRF 21) quality the difference is very hard to see, and the MP4 is usually smaller than the AVI.

Why convert AVI to MP4?

AVI is an old container from the 1990s and most AVI files use codecs like Xvid, DivX or MJPEG that phones, web browsers, smart TVs and social networks do not play. MP4 with H.264 video and AAC audio is supported almost everywhere, so converting makes the video easy to watch, share and edit.

How long does the conversion take?

Copying H.264 takes seconds. Re-encoding runs on your CPU in a single thread, so a 480p video converts roughly in real time or faster, while 1080p can take a few times the video length. Choosing Fastest speed or a smaller size makes it quicker.

Is there a file size limit?

The browser gives the converter about 2 GB of memory for the input and output together, so files up to roughly 1 GB convert reliably and the hard limit is about 1.9 GB. For bigger files, use a desktop program such as HandBrake or ffmpeg.

What does CRF mean?

CRF (Constant Rate Factor) is the H.264 quality setting. Lower numbers mean better quality and bigger files: 18 is visually almost lossless, 23 is the standard default, and 28 or more gives small files with visible softening. Each step of about 6 roughly halves or doubles the file size.

Can I convert other formats too?

The converter also reads most other video files, such as WMV, FLV, MKV or MPG, and turns them into MP4 with the same settings. For converting between many formats use the Video Converter.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Video ConverterConvert videos to MP4 or WebM with your choice of resolution, frame rate and bitrate.MOV to MP4Convert MOV to MP4 instantly with no quality loss, or re-encode to H.264. No upload.WebM to MP4Convert WebM videos to MP4 (H.264) with your choice of resolution and quality. No upload.Video CompressorCompress videos in your browser: pick a quality and resolution to shrink the file size.MP4 to GIFConvert an MP4, MOV or WebM clip to a sharp GIF: trim, set fps and width, optimized palette.Video to MP3Extract the audio from a video as MP3.MKV to MP4Convert MKV to MP4 in seconds by copying H.264/AAC streams, or re-encode with ffmpeg.Webcam Video RecorderRecord video from your webcam and mic, then download it.Subtitle EditorEdit, shift and convert SRT and VTT subtitles.Video TrimmerCut the start and end off a video on a visual timeline and save the clip as WebM.Video to Frames ExtractorExtract still frames from a video every few seconds or every Nth frame, as JPG or ZIP.Video Speed ChangerSpeed up a video or make slow motion from 0.25× to 4×, with audio, and save it as WebM.Mute VideoRemove the sound from a video and save a silent copy as WebM, right in your browser.Rotate VideoRotate a video 90° or 180°, or mirror it, with sound, and save the fixed copy as WebM.SRT Time CalculatorShift subtitle timing, convert SRT frame rates, sync by two points and fix broken SRT files.Video Resolution CheckerCheck a video's resolution, length, frame rate, bitrate and codecs without uploading it.Video File Size CalculatorEstimate video file size from resolution, fps, bitrate and length, or the bitrate for a size limit.Vocal RemoverRemove vocals from a song to make a karaoke instrumental, or pull out an acapella, in your browser.Video CropperCrop a video to 1:1, 9:16, 16:9 or any area by dragging a box, with sound. Saves MP4 or WebM.Video MergerJoin several video clips into one MP4 or WebM in any order, with trimming and fades.WebM to MP3Extract the audio from WebM video or audio files and save it as MP3. Free, no upload.Add Audio to VideoAdd music or a voice-over to a video: replace or mix the sound, set offset, volume and fades.Video ReverserPlay a video backwards: reverse a clip with or without reversed sound, or make a boomerang loop.Silence RemoverFind and cut long pauses and dead air in recordings, podcasts and voice memos automatically.Add Subtitles to VideoBurn SRT or VTT subtitles into a video with your own font, color, outline and position.Add Watermark to VideoPut a text or logo watermark on any video, set position, size and opacity, then save it.Video Thumbnail GeneratorGrab thumbnails from a video at any time or make a contact sheet grid. JPG, PNG or ZIP.Slideshow MakerTurn photos into a video slideshow with transitions, captions and music. Saves MP4 or WebM.Add Text to VideoPut titles and captions on a video with your font, colour, position, timing and fade. No upload.Audio Visualizer Video MakerMake an audiogram: cover image plus animated bars or waveform synced to your audio, as MP4/WebM.Flip VideoMirror a video horizontally or vertically, fix selfie videos and save MP4 or WebM with sound.Frame by Frame Video PlayerStep through a video one frame at a time with frame number, timecode, slow motion and PNG export.Landscape to Vertical VideoTurn a 16:9 video into 9:16 for Shorts, Reels and TikTok with a blurred background fill.Video LooperLoop a video N times or to a set length, or make a boomerang, and save it as MP4 or WebM.MP4 to WAVExtract the audio from MP4 videos as WAV: 16/24/32-bit, any sample rate, mono or stereo, batch.Online Video PlayerPlay local videos with 0.25-4x speed, A-B loop, zoom, SRT/VTT subtitles and keyboard shortcuts.Side by Side Video MakerPut two videos side by side, stacked or picture-in-picture with sync offset and save as MP4.Video FiltersApply B&W, sepia, vintage and cinematic color filters to a video and save it as MP4 or WebM.MP4 to WebMConvert MP4 video to WebM (VP9 or VP8 with Opus audio) with a quality slider. Runs locally, no upload.Online Video EditorEdit videos in your browser: trim, split, arrange clips, add text, music and transitions, export MP4.Remove Background Noise from VideoClean hiss, hum and room noise from a video's sound and keep the picture untouched.SRT to VTTConvert SRT subtitles to WebVTT for HTML5 video, with cue settings, preview and batch ZIP.Video Background RemoverRemove the background behind a person in a video with AI; make it transparent or swap in a color, image or blur.VTT to SRTConvert WebVTT subtitles to SRT: strips styles and notes, renumbers cues, batch ZIP.WMV to MP4Convert Windows Media WMV videos to H.264 MP4 in your browser, with quality and size control.360 Video ViewerWatch local 360° and VR videos or photos: drag, tilt or zoom to look around, 3D and fullscreen.Animated Captions for VideoBurn word-by-word animated captions (highlight, pop, karaoke) onto video from Whisper or SRT.Auto Reframe VideoTurn horizontal video into vertical 9:16 that automatically follows faces and subjects.Beat Sync Video EditorAuto-cut your clips and photos to the beat of a song and export a music-synced MP4 montage.Boomerang Video MakerMake a forward-backward looping boomerang clip from a video or webcam burst as MP4 or GIF.Brighten VideoFix dark videos: exposure, gamma, shadows lift, auto-levels and low-light denoise, save MP4.Lyric Video MakerMake a lyric video: add a song and background, tap to sync lines or import LRC, export 16:9 or 9:16.M3U8 PlayerPlay HLS .m3u8 streams in your browser, switch quality and inspect bitrate, segments and codecs.Picture in Picture Video MakerOverlay a small video on top of another, drag and resize it, round or circle it, and save MP4.Playlist Duration CalculatorAdd up track or video lengths to get the total playlist or album length and average track.Screen to GIF RecorderRecord your screen, a window or a tab and turn it straight into an optimized GIF.Slow Motion Video MakerMake smooth slow motion (0.1x-0.75x) with frame interpolation or blending on any part of a video.Square Video MakerFit any video into a 1:1 square without cropping, with blurred, color or image fill.Stop Motion MakerMake stop-motion animation with your webcam: onion skin, reorder frames, add music, save MP4 or GIF.Streaming Data Usage CalculatorEstimate GB used by video, music and video calls per day and month, and check it against a data cap.Subtitle ExtractorExtract embedded subtitle tracks from MKV and MP4 videos and save them as SRT, VTT or ASS.Teleprompter Video RecorderRecord yourself on webcam while your script scrolls on screen near the camera.Text to Video MakerTurn lines of text into an animated video with backgrounds, transitions and music; export MP4.Time-Lapse Video MakerTurn a long video into a time-lapse (2x to 200x) by keeping every Nth frame.Timecode CalculatorAdd, subtract and convert SMPTE timecode, frames and seconds at 23.976 to 60 fps, incl. drop-frame.Fix Audio Sync in VideoFix out-of-sync audio: shift the sound earlier or later in ms, preview, save without re-encoding.Video Collage MakerCombine 2 to 9 videos into one split-screen grid with trims, mute and gap colour, then save MP4.Video Fade In and OutAdd a fade from or to black or white at the start and end of a video, with matching audio fade.
See all 94 Video Converters & Editors →