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
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
- Select your AVI file.
- Optionally trim, crop, or lower the resolution.
- Keep CRF 23–26 for a balance of size and quality, or lower it for more detail.
- 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
| Engine | FFmpeg compiled to WebAssembly (ffmpeg.wasm core 0.12.10, single-threaded), running in your browser tab |
|---|---|
| Inputs | MP4, MOV, WebM, MKV, AVI (decodable by the bundled FFmpeg build) |
| Video output | H.264 (libx264, yuv420p) in MP4 with faststart |
| Audio output | AAC; can be removed in target-size mode |
| Quality control | CRF 0–51 with x264 presets from ultrafast to veryslow |
| Size control | Two-pass target size in MB (1,000,000 bytes) or MiB (1,048,576 bytes); inputs below 2,000 MB |
| Not supported | HDR tone mapping, subtitle tracks, batch queues |
| Memory | Limited by the browser and device; phones fail sooner on large files |
| Network | About 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
- Open your browser’s developer tools and select the Network tab.
- Select a file and wait until the engine status shows Ready.
- Optionally switch the device offline, then start compression. It still completes because encoding runs locally.
- 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.
