Skip to content
OmniConvert

MP4 files: what is inside one, and what to convert it to

What an MP4 actually contains, why the same extension holds wildly different codecs, and which conversions are lossless. Convert MP4 in your browser, no upload.

At a glance

Type
Video
Container format
Yes
Extensions
.mp4
MIME type
video/mp4
Common codecs
h264, h265, av1, aac
Also known as
MPEG-4 Part 14

MP4 is a container, not a codec — and almost every confusing thing about the format follows from that one fact. The file is a tree of nested boxes (the spec calls them boxes, older tooling calls them atoms) defined by ISO/IEC 14496-14, itself a profile of the ISO Base Media File Format that Apple contributed from QuickTime. Two boxes matter in practice: `moov`, the index describing every track, and `mdat`, the opaque blob of actual compressed frames.

Read more

Because the container only describes tracks, two files can both be valid MP4 and share nothing else. One might carry H.264 video with AAC audio, the next H.265, the next AV1, and a player that handles the first can fail on the third while reporting the same `.mp4` extension and the same `video/mp4` MIME type. This is why "does MP4 work here" has no general answer, and why converting between MP4 and MOV or MKV is usually instant while converting to WebM is not: the first pair is a repackaging job, the second requires re-encoding every frame.

The `moov` index also explains `-movflags +faststart`, which this site applies to every MP4 it writes. Encoders naturally put `moov` at the end of the file, since track durations are only known once encoding finishes. A player streaming over HTTP then cannot begin until the last byte arrives. Faststart rewrites the file with the index in front, costing one extra pass at export and buying playback that starts immediately.

Naming is a convention rather than a rule. `.m4a` is an MP4 file holding only audio, `.m4v` is Apple's video variant, and `.mp4` is the general case — all three are the same container, and renaming one does not convert it. Renaming is also not a shortcut: extracting audio to M4A re-encodes it here rather than lifting the existing AAC track across, so it is a second lossy generation exactly like MP3 is, just in the same codec family.

Convert MP4 to other formats

Convert other formats to MP4

FAQ

Is MP4 lossy or lossless?

Neither — the container has no opinion. The tracks inside decide. In practice MP4 nearly always holds lossy H.264 or H.265 video and lossy AAC audio, so the file you have is almost certainly lossy, but that is a property of the codecs rather than of MP4 itself.

Why will my MP4 not play on some device?

The extension tells the player nothing about the codecs. A file using H.265 or AV1 video will refuse to open on hardware that only decodes H.264, even though both files are legitimate MP4. Converting to MP4 with H.264 video and AAC audio is the widest-compatibility option and is what this site produces.

Which MP4 conversions are lossless?

MP4 to MOV, MKV and M4V, when the codecs inside are already legal in the target container. Those run as a stream copy: the compressed frames move across untouched and the result is bit-identical video. You will see a "streams copied" note when that happens. Anything that changes a codec — MP4 to WebM, MP4 to MP3 — necessarily re-encodes.

What is the difference between MP4, M4A and M4V?

The same container with different conventional contents: M4A holds audio only, M4V is Apple's video variant, MP4 is the general case. Renaming the extension does not change the bytes, so it does not convert anything — though it can stop a player from guessing right.

How large an MP4 can this site handle?

It depends on what you convert it to, because the ceiling is about what has to be held while working rather than about the input. Extracting audio allows up to 2 GB on desktop, since the output is a fraction of the source; a container swap allows about 667 MB, since the output is the same size as the input; and 512 MB is the limit on phones throughout. Above 64 MB the file is read where it sits instead of being copied into the memory the converter works in, which is what makes multi-gigabyte inputs possible at all. Every upload box states the real figure for that pair.

Does converting MP4 here upload my video?

No. Both the demuxing and the encoding run in a background thread in your browser through a WebAssembly build of ffmpeg. Open your network panel before you start: no request carries the file.

Why is converting MP4 to WebM so much slower than MP4 to MKV?

MKV accepts H.264, so the video track is copied and the job is essentially a file rewrite. WebM accepts neither H.264 nor AAC, so every frame must be decoded and re-encoded into VP8 or VP9 — real compression work, done on your CPU.

Can I take a still image out of an MP4?

Yes, and it is worth knowing what you get: a single decoded frame re-encoded as PNG or JPG. Because the source frame is already lossy, a PNG of it is lossless only relative to that frame, not to the original scene.