Guide · Video
MP4, MOV and WebM: which video format to use and how to convert
By NREX Group · Published · Sources last checked: · 9 min read
Drafted with AI assistance and checked against the sources listed at the end.

MP4, MOV and WebM are containers: files that hold a picture stream, a sound stream and the timing that keeps them together. Which one to use depends less on the word after the dot than on what is inside and what has to open it. Two files with different extensions can hold the same picture, and two files with the same extension can be laid out differently.
This guide separates the wrapper from the codec, shows what four test files looked like byte by byte, and then runs one 4-second clip through the site’s converters in three browser engines. The numbers come from generated clips and saved scripts, not camera footage, so read each table as a pattern. If your goal is a GIF, the companion guide on making a GIF from a video goes into frame rate and palette; this one covers the format questions around it.
Wrapper and codec are different things
The container says how the streams are stored. The codec says how the picture or sound inside is compressed. MDN’s container guide makes the same split: support for a container says nothing about any particular codec.[1] H.264 is normally found in MP4, VP8 in WebM, and VP9 in either, according to MDN’s codec guide.[2] A video that will not play often has a codec the browser lacks, not a wrapper it dislikes.
We looked at the opening bytes of four generated files, with no playback:
| File | Bytes | Names itself | Layout |
|---|---|---|---|
| MOV (avconvert) | 634,520 | brand “qt” | ftyp, moov, wide, mdat |
| MP4 (avconvert) | 634,269 | brand “mp42” | ftyp, moov, mdat |
| MP4 (browser recorder) | 633,699 | brand “isom” | ftyp, moov, then 2 × moof+mdat, mfra |
| WebM (browser recorder) | 595,961 | EBML header, DocType “webm” | VP8 video, Opus audio |
The first two files were made from the same source with the same encoder preset, so we expect the same H.264 and AAC streams inside; we did not compare them byte for byte. They differ by 251 bytes, 0.04%, which is the cost of a different wrapper. That is why MP4 and MOV files often open the same way: the MP4 format descends from the QuickTime one, as MDN and the Library of Congress both describe.[1, 4] The third row shows that “MP4” also varies within itself. The recorder’s file was written in fragments as the video played; the desktop encoder’s file has one index block, moov, before the media data. WebM is a subset of Matroska and says so in its header.[3]
Checking a file’s real wrapper
The extension is a label on the outside. To see what a file says about itself, open its first bytes in a hex viewer. An MP4 or a MOV starts with a four-byte size, then the letters ftyp (66 74 79 70), then the brand. Our MOV began 00 00 00 14 66 74 79 70 71 74 20 20: a 20-byte box naming the brand “qt” followed by two spaces. Our MP4 began 00 00 00 1C 66 74 79 70 6D 70 34 32, a 28-byte box naming “mp42”.[4] A WebM begins with 1A 45 DF A3, the start of an EBML header, and its DocType reads “webm”.[3]
Those bytes name the wrapper only. The codecs sit further in, as names such as avc1 and mp4a in an MP4 or V_VP8 and A_OPUS in a WebM, which is how we listed the streams in each file above. When a converter or an editor refuses a file, those two facts, the brand and the codecs, are what to compare.
Choosing a format
| Format | Usually holds | Plays in browsers (MDN) | Reach for it when |
|---|---|---|---|
| MP4 | H.264, AAC (AV1 and Opus also occur) | All browsers | the file goes to phones, TVs, editors or a wide audience |
| WebM | VP8, VP9 or AV1, Opus or Vorbis | All browsers | the video is for a web page and the audience uses current browsers |
| MOV | H.264 or others, AAC | Older Safari, per MDN | you are handing a file to an Apple-based editing workflow |
MDN marks QuickTime as supported only by older Safari and by browsers that had the QuickTime plug-in.[1] Our test MOV still opened in all three engines: Chromium answered an empty string when asked whether it could play video/quicktime and then played the file, and Firefox and WebKit answered “maybe”. The empty answer is not a refusal, which is why the converters try the real file. A file with a different codec can behave differently.
What the converters write
MOV to MP4, MP4 Converter and Video Converter do not rewrap the streams. They play the file, draw each frame on a canvas and record the canvas with the browser’s recorder, so the output container is whatever the browser can record. We ran the tools’ recording loops on the generated WebM and on the MOV:
| Engine | Input and button | File written | Bytes | Length | Sound |
|---|---|---|---|---|---|
| Chromium 153 | WebM, MP4 button | MP4 (H.264 + AAC) | 603,987 | 4.03 s | AAC |
| Chromium 153 | WebM, WebM button | WebM (VP9 + Opus) | 585,148 | 4.05 s | Opus |
| Chromium 153 | MOV, MOV to MP4 | MP4 (H.264 + AAC) | 608,350 | 4.26 s | AAC |
| Firefox 155.0 | WebM, MP4 button | WebM (VP8) | 511,012 | 3.98 s | none |
| Firefox 155.0 | WebM, WebM button | WebM (VP8) | 491,752 | 3.99 s | none |
| Firefox 155.0 | MOV, MOV to MP4 | WebM (VP8) | 531,254 | 4.18 s | none |
| WebKit 26.6 | WebM, MP4 button | MP4 (H.264) | 547,109 | 4.32 s | none |
| WebKit 26.6 | WebM, WebM button | WebM (VP9) | 783,762 | 4.23 s | none |
| WebKit 26.6 | MOV, MOV to MP4 | MP4 (H.264) | 544,943 | 4.40 s | none |
Three things stand out. Firefox wrote WebM for every button, because its recorder reported no MP4 support. Sound survived only in Chromium, as the tool pages say. The result line of each tool names the file type that was written, and MP4 Converter adds an amber notice when a browser can only record WebM; we did not look at these notices in the runs. And the sizes did not follow the input: the WebM button gave the smallest file in Chromium and the largest in WebKit. Lengths ran 0.01 to 0.36 seconds longer than the source as each engine read it, because the recording runs alongside the playback; the trim, crop and caption guide measures the same drift.
To a GIF and back to video
WebM to GIF seeks to each sampled time, draws the frame and stores every frame whole, with a frame delay written in hundredths of a second.[7] The same 4-second WebM, at 320 pixels wide:
| Engine | 10 fps, 40 frames | 5 fps, 20 frames | Capture time at 10 fps | GIF to video |
|---|---|---|---|---|
| Chromium 153 | 265,421 B | 134,241 B | 2.2 s | MP4, 195,083 B |
| Firefox 155.0 | 276,073 B | 137,755 B | 2.5 s | WebM, 212,943 B |
| WebKit 26.6 | 244,614 B | 133,248 B | 13.1 s | MP4, 134,354 B |
The GIFs have a quarter of the pixels of the source and about a third of its frames, and still came to 41 to 46% of the source’s bytes at 10 fps. Turning a GIF back into video, with GIF to MP4, gave files 23 to 45% smaller than the GIF it started from. A few things to keep in mind. The GIF-to-video step plays in real time, so a 4-second loop costs 4 seconds. WebKit took 13.1 seconds to capture 40 frames from a recorded WebM, against 2.2 and 2.5 seconds elsewhere, so a long recording can be slow there. The GIF guide has the frame-rate and palette arithmetic.
Pulling the sound out
Video to MP3 hands the file to the browser’s audio decoder, then writes a constant 128 kbps MP3, which is 16,000 bytes per second. The decoded sound is resampled to the audio context’s rate, 48,000 Hz in our runs.[6] Run on the three sources:
| Source | Chromium 153 | Firefox 155.0 | WebKit 26.6 |
|---|---|---|---|
| WebM (VP8 + Opus) | 3.54 s, 57,216 B | 3.54 s, 57,216 B | 3.54 s, 57,216 B |
| MOV (H.264 + AAC) | 3.945 s, 63,744 B | 3.989 s, 64,512 B | 3.945 s, 63,744 B, after the .m4a re-pack |
| MP4 (H.264 + AAC) | 3.945 s, 63,744 B | 3.989 s, 64,512 B | 3.945 s, 63,744 B |
The sizes come out about 1% above the 16,000-bytes-per-second figure. The audio in our recorded WebM was shorter than its picture, 3.54 seconds against 3.97, so the MP3 is shorter than the video. And WebKit’s decoder failed on the MOV but decoded the MP4 made from the same source, which is one concrete case where the wrapper, not the codec, decided the outcome. When that first decode fails, Video to MP3 re-packs the MOV’s sound track as an .m4a, without decoding or changing the sound, and decodes the copy; in our test that gave the same 63,744-byte MP3 as Chromium. It is one file in one engine, and the re-pack covers only a MOV of this kind (AAC sound, one index and one data block).
Choosing, in short
- Widest reach: MP4 with H.264 and AAC. Check the result card, because the browser decides what is written.
- For a web page only: either MP4 or WebM can work; compare the two sizes on your own clip.
- A MOV that will not open or convert: try the same file in another browser, or re-export the video as MP4 (H.264) from the device that made it.
- A short loop: a video is usually smaller than a GIF of the same loop; keep the GIF for places that accept only images.
- Only the sound: extract it once and keep the original video.
Questions
Can I just rename a .mov file to .mp4?
A rename changes the extension and nothing inside the file. In our MOV the opening bytes still named the QuickTime brand, “qt”, where the MP4 named “mp42”. Because MP4 grew out of the QuickTime layout, some players open a renamed file anyway, but we did not test renamed files, so we cannot say which ones do.[1, 4]
I chose MP4 and got a WebM file. Why?
The tool asks the browser to record MP4 first and falls back to WebM when the browser cannot. In our test Firefox 155.0 reported no MP4 recording at all, so every conversion there wrote VP8 WebM, while Chromium 153 and the WebKit build wrote MP4. The result card names the type that was written.
Does converting to MP4 improve quality?
No. The picture is decoded, drawn on a canvas and encoded again with the browser’s settings, so the new file is a second generation. Most video codecs are lossy, which means each pass can only keep or lose detail.[2]
Will the converted file be smaller?
Not necessarily. In our test a 595,961-byte WebM became 603,987 bytes as MP4 in Chromium, 547,109 in WebKit and 511,012 in Firefox. The browser picks the bitrate, with a default of 2.5 or 10 Mbps depending on the browser, so the size depends on the engine and the clip.[5]
WebM or MP4 for a web page?
MDN lists both as playing in all browsers, with the codec still to be checked. In one clip, the WebKit build wrote 783,762 bytes as VP9 WebM against 547,109 as H.264 MP4, so a WebM can be the larger file.[1]
Why does my phone video not open, though the extension is right?
The extension names the container, and the browser also has to decode the codec inside. Our test MOV held H.264 and opened in all three engines. We did not test HEVC, the codec many phones record by default, so check that the browser can play the file before you pick a tool.[1, 2]
Sources
Every link below was opened and checked on November 15, 2026. The file layouts, sizes, lengths and decode results were measured for this guide with the site’s own code.
- MDN, Media container formats (file types). MP4 and WebM as the most common web containers, the MP4 lineage from the ISO base media format and QuickTime, QuickTime (MOV) listed for older Safari only, and support given for the container, not for any codec. Accessed November 15, 2026.
- MDN, Web video codec guide. Which containers each video codec is used in (H.264 in MP4 and 3GP, VP8 in WebM, VP9 in MP4 and WebM, HEVC in MP4) and that most video codecs are lossy. Accessed November 15, 2026.
- The WebM Project, WebM container guidelines. WebM as a subset of the Matroska container, with DocType “webm” and video codec IDs such as V_VP8. Accessed November 15, 2026.
- Library of Congress, MPEG-4 File Format, Version 2 (format description). The file type brand, such as mp42, in the file type box; the lineage from the QuickTime format; and “boxes” as the name for the building blocks. Accessed November 15, 2026.
- MDN, MediaRecorder() constructor. The default video bitrate of 2.5 Mbps or 10 Mbps depending on the browser, when none is set. Accessed November 15, 2026.
- MDN, BaseAudioContext.decodeAudioData(). The decoded audio is resampled to the AudioContext’s sampling rate. Accessed November 15, 2026.
- W3C, Graphics Interchange Format, Version 89a. The delay time of a GIF frame in hundredths of a second. Accessed November 15, 2026.