← All guides

Containers and codecs: MP4, WebM, MOV

Why a file extension does not tell you whether a video will play.

A video file has two layers. The container is the box: it holds the video track, the audio track, subtitles and timing information. The codec is how the picture and sound inside the box are compressed. The file extension names the container only.

ContainerTypical video codecsTypical audioPlays in browsers
MP4 (.mp4)H.264, H.265, AV1AACH.264 everywhere; H.265 and AV1 depend on the device
WebM (.webm)VP8, VP9, AV1Opus, VorbisChrome, Firefox, Edge; recent Safari
QuickTime (.mov)H.264, H.265, ProResAAC, PCMOnly when the codec inside is one the browser knows

Why "it will not open" happens

Two MP4 files can behave completely differently. A phone recording in H.265 may play on the phone and fail in an older browser, while an H.264 file of the same name plays anywhere. When this site says your browser cannot play a file, the usual reason is the codec, not the container.

What to pick

The trim tool here records to WebM because that is what browsers can encode without extra software.