How to add a video to your Webflow CMS collection without using the YouTube element

Webflow provides a native Video element, which is useful for embedding videos from platforms like YouTube or Vimeo. However, if you want to self-host your videos, Webflow does not offer a built-in solution.
Hosting and embedding videos directly on your site can be beneficial for:
With recent GDPR regulations, embedding YouTube videos on a website has become problematic. YouTube uses cookies to track user behavior, and if a visitor does not accept cookies in the cookie manager, the YouTube video will not display.
This means that self-hosted videos are no longer just an alternative—they are becoming the standard for website compliance and user experience. Unless your goal is to increase views, likes, and engagement on YouTube, self-hosting videos is now the recommended approach for websites where the video’s purpose is purely informative or aesthetic.
Different browsers support different video formats. To ensure maximum compatibility, it is best to use both:
By providing both formats, your video will play regardless of which browser a visitor is using.
One of the biggest reasons to self-host videos instead of embedding them from YouTube is GDPR compliance. Here’s why:
Unless your video’s goal is to increase engagement on YouTube (likes, comments, and views), self-hosting videos is the best choice for company websites, blogs, portfolios, and landing pages.
How to Convert Your Videos Quickly
You can use online converters to transform your files into WebM and MP4 formats in just a few clicks:
If you have an MP4 video and need a WebM version, you can easily convert it using the links above. Just upload your file, choose the desired format, and download the optimized video ready for Webflow.
Since Webflow does not allow direct uploads of MP4 and WebM files into the CMS, the best alternative is to use an external hosting service like Cloudinary. This tool provides a free plan, allowing you to store and retrieve your videos easily while ensuring fast loading speeds.
Once you have your Cloudinary video links, update the HTML code accordingly:
<video class="video" width="100%" height="100%" autoplay loop muted playsinline>
<source src="https://your-site.com/video.mp4" type='video/mp4; codecs="hvc1"'>
<source src="https://your-site.com/video.webm" type='video/webm'>
</video>
📌 Replace https://res.cloudinary.com/your-account/video.mp4 and https://res.cloudinary.com/your-account/video.webm with the actual URLs from your Cloudinary account.
By using Cloudinary, your videos will be hosted externally, ensuring fast delivery without relying on Webflow’s limitations. Now, you’re ready to proceed with embedding the video in Webflow!
{{blog_article_cta01}}
Once you have added the HTML video code to your Webflow page:
If you want to style the video element using Webflow’s Designer, you can add CSS in the Custom Code → Head section:
<style>
.video {
border-radius: 12px; /* Adds rounded corners */
box-shadow: 0px 5px 15px rgba(0,0,0,0.3); /* Adds a shadow */
object-fit: cover; /* Ensures the video fills the container */
}
</style>
📌 You can adjust the CSS to match your website’s design.
By embedding videos using the HTML <video> element, instead of Webflow’s native Video block, you gain greater control over video behavior, styling, performance, and legal compliance.
If you'd like to add a player to the video, with the ability to play, pause, view the video's progress, etc., we've done another article 'How to add a custom video player to your Webflow website'. Don't hesitate to take a look at it if you want to customize your videos, as this method works perfectly with the code we've made in this article.
Key takeaways:
✔ Use MP4 and WebM formats for maximum browser compatibility.
✔ Self-host videos to avoid GDPR issues and third-party tracking cookies.
✔ Optimize file size to improve page speed and SEO.
✔ Customize video appearance using CSS in Webflow.