OfflaneAI

MP4 to WebM —
lighter video for the web

Drop an MP4, choose the quality and resolution, download a WebM for your site or for Discord; pick a lower quality to fit a size limit. Everything is encoded on your device.

  • 📉 More detail than H.264 at low bitrates
  • 🌐 Perfect for HTML5 <video>
  • 🔒 No upload
  • 💸 Free

Loading the tool… (JavaScript required)

When should I use WebM instead of MP4?

On your own website or in apps that prefer it (Discord, Telegram stickers, Chrome extensions). Browsers play it natively. Keep MP4 for sharing with people — iPhone and many messengers still need it.

Which codec is used?

VP9 when your browser has a VP9 encoder, otherwise AV1 and then VP8. Audio is Opus, the best codec for speech and music at low bitrates.

Can I make it smaller?

Yes — choose “Medium” or “Small” quality and a lower resolution such as 1280 px. For Discord's free upload limit, a short 720p clip at “Small” usually fits.

Which formats can I convert?

Input: MP4, MOV, M4V, WebM, MKV and 3GP with H.264, HEVC, VP8, VP9 or AV1 video. Output: MP4 (H.264), WebM (VP9), MOV and MKV. Every conversion re-encodes the video and the sound; “Same as original” quality keeps the resolution, the frame rate and about the source bitrate.

Why is it fast and free with no limits?

The work happens on your computer or phone with the WebCodecs API, which uses the same hardware encoder your camera app uses. There is no server, so there is no queue, no upload time and no reason to charge per file.

Does it reduce quality?

A little, always: the picture is re-encoded, never copied. “Same as original” and “High” stay at about the bitrate of the source, so the difference is hard to see. “Medium” and “Small” trade some sharpness for much smaller files. The sound is re-encoded at 160 kbps (AAC, or Opus in WebM).

What changes when an MP4 becomes WebM

An MP4 normally holds H.264 video and AAC audio. WebM holds VP9 video and Opus audio, both open and royalty-free. Nothing can be copied across, so the picture and the sound are decoded and encoded again.

On this page “Output format” is already set to WebM. The tool encodes VP9; if the browser has no VP9 encoder it tries AV1 and then VP8. The sound becomes Opus at 160 kbps and 48 kHz.

Where WebM is the right choice

  • Your own website. Browsers play WebM in a video element without plug-ins.
  • Wikipedia and Wikimedia Commons. They accept WebM uploads and do not accept MP4.
  • Discord. WebM plays inline in chats; a free account can attach files up to 20 MB.
  • Web apps and extensions that ask for an open format.

Keep the MP4 for everything else. Messengers, TVs, office software and older iPhones are built around MP4, and a person who receives a WebM may not be able to open it.

How to get a smaller file

The quality levels set the same bitrate for every output format. WebM is therefore not smaller by itself:

QualitySize of the WebMPicture
Same as original (about the source bitrate)About the size of the MP4, up to 10% moreMatches the source
Medium — web, social media3.5 Mbit/s at 1080p, about 1.6 Mbit/s at 720pCleaner than an MP4 at the same bitrate
Small — email, WhatsApp, TelegramHalf of MediumStill usable where H.264 would show blocks

The advantage of VP9 is that it holds detail better at low bitrates. To profit from it, choose Medium or Small. For a page background or a product loop, Medium at 720p with “Remove sound” ticked is a good start.

Pitfalls

  • Encoding takes longer than MP4. Most devices have a hardware encoder for H.264 but not for VP9, so the processor does the work. Lower the resolution if a long video takes too long.
  • Offer a fallback on a website. Put the WebM first and the MP4 second as two source entries inside the video element. Browsers that cannot play WebM take the MP4.
  • No transparency. The converter writes ordinary opaque WebM, even from a source with an alpha channel.
  • Do not convert back and forth. Every conversion is a new encode. Keep the original MP4 and make the WebM from it.

The video converter guide lists every setting and the other formats. To see the expected size before encoding an MP4, use the video compressor.