Skip to content

Convert AVI to MP4 in your browser

Modernize old AVI videos into compact H.264 MP4 files without installing software.

One-click sharing presets: Discord / Gmail / WhatsApp / Outlook and Yahoo Mail / Telegram / Slack / iMessage / X (Twitter)

Video compression workspace

Drop a video or browse

MP4, MOV, AVI, WebM, MKV & more

Files stay on your device
Settings
CRFLower = higher quality
26
23–26 recommended · 0 = lossless · 51 = smallest
Speed presetFaster = larger file
Resize1.000 = original size
Audio bitrateAAC codec
Compression
Progress0%

Buy Me a Coffee

To convert AVI to MP4, select the AVI file and click Compress. Localsquash decodes common AVI codecs such as Xvid, DivX, and MJPEG locally and exports an H.264/AAC MP4, with no upload or watermark.

How to convert AVI to MP4

  1. Select your AVI file.
  2. Optionally trim, crop, or lower the resolution.
  3. Keep CRF 23–26 for a balance of size and quality, or lower it for more detail.
  4. Click Compress to export an H.264 MP4 and download it.

Why convert AVI to MP4?

Playback

Modern browsers and phones do not play AVI. MP4 plays natively almost everywhere.

Size

Older codecs are inefficient; H.264 usually produces a smaller file at similar quality.

Interlaced sources

Camcorder and DV AVI files may be interlaced. Localsquash does not deinterlace, so motion may show combing.

Technical specifications

Localsquash video processing specifications
EngineFFmpeg compiled to WebAssembly (ffmpeg.wasm core 0.12.10, single-threaded), running in your browser tab
InputsMP4, MOV, WebM, MKV, AVI (decodable by the bundled FFmpeg build)
Video outputH.264 (libx264, yuv420p) in MP4 with faststart
Audio outputAAC; can be removed in target-size mode
Quality controlCRF 0–51 with x264 presets from ultrafast to veryslow
Size controlTwo-pass target size in MB (1,000,000 bytes) or MiB (1,048,576 bytes); inputs below 2,000 MB
Not supportedHDR tone mapping, subtitle tracks, batch queues
MemoryLimited by the browser and device; phones fail sooner on large files
NetworkAbout 32 MB of engine files downloaded from cdn.jsdelivr.net when you select a file; your media is never sent

How to verify nothing is uploaded

  1. Open your browser’s developer tools and select the Network tab.
  2. Select a file and wait until the engine status shows Ready.
  3. Optionally switch the device offline, then start compression. It still completes because encoding runs locally.
  4. Review the requests: page assets, analytics, and ffmpeg-core files appear, but no request contains your media.

AVI to MP4 FAQ

Which AVI codecs are supported?

Codecs included in the FFmpeg WebAssembly build, which covers common ones such as MPEG-4 Part 2 (Xvid/DivX), MJPEG, and DV. If a file fails to load, the codec is not included in the browser build.

Which codecs does the MP4 use?

H.264 (libx264, yuv420p) video and AAC audio with the moov atom moved to the start (faststart), which plays in browsers, phones, TVs, and editors. Choose Trim only to cut without re-encoding; that keeps the original container instead of MP4.

Is my AVI file uploaded?

No. The AVI file is decoded and re-encoded by FFmpeg WebAssembly inside your browser tab. Nothing is sent to a server, and there is no account or watermark.