Format conversion

Convert AVI to MP4, online.

AVI is an old container format that modern browsers simply can't read. Here's why that is, and how Lightframe converts it to MP4 anyway, without sending it anywhere.

Why your browser can’t just open it

Modern browsers decode video using a built-in feature called WebCodecs, which only speaks a handful of modern codecs. Plenty of AVI files were made with much older ones — DivX, Xvid, or Motion JPEG — that WebCodecs was never built to understand. So unlike an MP4, MOV, MKV or WebM file, an AVI usually can’t be read directly by the page at all; it needs a different approach.

How Lightframe converts it anyway

The converter ships with its own copy of FFmpeg, compiled to WebAssembly so it can run inside the browser — it’s one of this site’s own static files, never fetched from anywhere else and never given your video to send anywhere. If the AVI already contains H.264 video (a common case), it’s simply repackaged into an MP4 container in seconds, with no quality loss at all. If it’s one of the genuinely old codecs, that video is re-encoded to H.264 — the only part of the job that takes real time.

What to expect for speed

This path is noticeably slower than converting a modern format, because it runs in software, on a single CPU thread, rather than using your browser’s hardware-accelerated codecs. A re-encode is split across your CPU’s cores to claw back some of that time, but it’s still the slower of the two paths this site offers — worth knowing before you start on a long file.

What comes out the other end

An MP4 by default — pick a different container (MOV, MKV, WebM) on the converter page if you need one — at your choice of quality tier, ready to open anywhere a browser’s own tools couldn’t have opened the original.