WebM vs MP4: what's the difference
WebM and MP4 are two container formats for video that come up most often when working with YouTube. Both store video and audio in a single file, but they're built a little differently and solve slightly different problems.
MP4 — the universal standard
MP4 is the most compatible video format: it opens on practically any device and app, from an old smartphone to a TV with no internet access. MP4 most often uses the H.264 codec inside — not the most efficient at compression among modern codecs, but it's guaranteed to play back almost everywhere (see the article on the history of YouTube video formats).
WebM — an open format from Google
WebM is an open, free format originally designed specifically for the web. Inside, it typically uses more modern codecs — VP9 or AV1 — which compress video more efficiently than H.264, giving a smaller file at comparable picture quality. YouTube often stores video in WebM, especially for higher resolutions.
What this means when downloading
If the device you're saving the video to is modern (a smartphone or computer from the last few years), WebM will play back without issue and give you a smaller file. But if you need to open the video on older hardware, a TV without support for newer codecs, or a specific third-party player, MP4 is the safer bet: its compatibility is broader, even if the file ends up a bit heavier at the same quality.
Frequently asked questions
Which is better, WebM or MP4?
Unlike MP4's near-universal compatibility, WebM uses newer codecs (VP9 or AV1) that give a smaller file at the same quality but need a more modern device to play back — neither is strictly "better," they trade off compatibility against file size.
Does ytdownr.com give me a WebM or an MP4 file?
Always MP4 — the site converts the video on download regardless of which container YouTube originally stored it in, so there's no need to choose between WebM and MP4 yourself.