Is it important to convert mp4 video to another formats like webm or is mp4 enough?

I tried to convert to webm in online services, but it makes the size of the video file much bigger. The size before was 7 MB and after it was converted it became 12MB.

<video controls>

I want small page sizes, good performance, good quality, and browser compatibility.


1 Answer 1




The audio and video tracks within the container hold data in the appropriate format for the codec used to encode that media. Different formats are used for audio tracks versus video tracks. Each audio track is encoded using an audio codec, while video tracks are encoded using (as you probably have guessed) a video codec.

Since MDN uses mp4 in demo, I don't see any contraindications. For better compression you may use Cloudinary or Sirv or any dedicated video CDN.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.