article

All articles

How to host videos in Webflow: Bunny Stream instead of YouTube or Vimeo

Webflow can't really host video, and neither YouTube nor Vimeo is ideal. Here's how to set up Bunny Stream on a Webflow site: embed, CMS, background video and what it actually costs.

In my experience the best way to host videos on a Webflow site is Bunny Stream from Bunny.net: European video hosting with HLS streaming, automatic encoding into multiple resolutions and a player without third-party branding. Webflow itself only handles background video up to 30 MB and YouTube or Vimeo links; it has no player of its own. YouTube adds its logo, recommended videos and Google scripts, and Vimeo costs a monthly plan. Bunny Stream is pay-as-you-go (storage from $0.01 per GB, delivery from $0.005 per GB, $1 monthly minimum) and takes an afternoon to connect: create a library, upload a video and paste the iframe into a Code Embed, storing only the video ID in the CMS. The same library also handles background video via MP4.

Video is one of the places where Webflow falls short. You can drop in a YouTube video in a minute, but it brings someone else's logo, recommended videos and a slower page. Your own files can only go in as background video. That's why I host client videos on Bunny Stream, and in this guide I'll walk you through the whole setup, from upload to CMS.

What Webflow can do with video, and where it stops

  • The Video element embeds a YouTube or Vimeo link. The player, branding and visitor tracking stay on their side.
  • The Background Video element accepts your own file up to 30 MB. Webflow re-encodes it to a lower quality, with no controls and no sound, so it only works for short loops.
  • The Video Link CMS field again stores only a YouTube or Vimeo link.

So Webflow doesn't host full video with your own player. If you upload an MP4 as a file and play it through custom HTML, it downloads in a single quality regardless of the connection. On mobile you'll notice straight away.

YouTube, Vimeo or Bunny Stream

Four questions settle it: whose branding the visitor sees, what you pay, how fast the site stays, and who collects data about your visitors.

  • YouTube is free, but comes with the YouTube logo, recommended videos and Google scripts on every page with an embed. The rel=0 parameter doesn't switch recommendations off, it only limits them to your own channel.
  • Vimeo has a cleaner, ad-free player, but you pay a monthly plan no matter how often your videos play.
  • Wistia is strong on marketing analytics, but its pricing targets marketing teams, not a typical business website.
  • Bunny Stream gives you an unbranded player, adaptive streaming and pay-as-you-go pricing. It has no audience of its own, so it won't bring you reach.

What is Bunny Stream

Bunny Stream is the video hosting service of Bunny.net, a European company. It encodes every upload into several resolutions up to 4K and plays it over HLS, picking the quality that fits the connection, so playback starts fast even on mobile. Everything it does and how to use it outside Webflow is covered in a separate article, Bunny Stream: what it is and what it costs.

For Webflow, three things matter: an embeddable player without third-party branding, direct MP4 links for background video, and protection against other sites embedding your videos.

How to connect Bunny Stream to Webflow

  1. Create an account on Bunny.net. The first 14 days are a free trial with no credit card.
  2. Create a Stream library (Stream → Add Video Library). For European audiences, put storage in Europe, Frankfurt for example. Every extra region adds to the storage cost, and a typical website needs just one.
  3. Upload your video by drag and drop, via the API or from a URL. Bunny encodes it into all resolutions within minutes.
  4. Copy the embed code from the video detail.
  5. Paste it into Webflow using a Code Embed element.

I recommend the responsive version of the embed with these parameters:

<div style="position:relative;padding-top:56.25%;">
  <iframe src="https://iframe.mediadelivery.net/embed/LIBRARY_ID/VIDEO_ID?autoplay=false&preload=false&responsive=true"
    loading="lazy"
    style="border:0;position:absolute;top:0;left:0;width:100%;height:100%;"
    allow="accelerometer;gyroscope;autoplay;encrypted-media;picture-in-picture;"
    allowfullscreen></iframe>
</div>

The padding-top:56.25% value keeps the 16:9 aspect ratio; for vertical video use 177.78%.

The preload=false parameter makes sure the video only starts downloading once someone presses play. For page speed, it's the most important setting.

Videos in the CMS: store only the video ID

Don't store the whole iframe in a CMS collection. Add a Plain Text field, say “Bunny video ID”, and put the embed code above into a Code Embed on the collection template. Replace VIDEO_ID with that field using Add Field. When you later change player parameters, you edit one place instead of every item.

Keep the field optional and hide the Code Embed with Conditional Visibility when it's empty, so no blank frame is left on the page.

Background video with Bunny Stream

Don't use the iframe for a hero video or a loop. Turn on MP4 Fallback in the library settings and Bunny will create direct MP4 files for every video. Then a plain HTML tag in a Code Embed is all you need:

<video autoplay muted loop playsinline preload="metadata"
  poster="https://vz-XXXX.b-cdn.net/VIDEO_ID/thumbnail.jpg">
  <source src="https://vz-XXXX.b-cdn.net/VIDEO_ID/play_720p.mp4" type="video/mp4">
</video>

You'll find the vz-….b-cdn.net address in the library as the CDN hostname. The muted and playsinline attributes are required, otherwise mobile browsers block autoplay. For longer videos you can use HLS (playlist.m3u8); Safari plays it natively and other browsers need the hls.js library. Most sites are fine with a short 720p loop.

Player settings and video protection

In the library's player settings you choose a brand colour, controls, language, captions and chapters. You upload a custom thumbnail for each video. The result is a player that looks like part of your site, not an embedded YouTube.

In the library's security settings, add your allowed domains: your website's domain and *.webflow.io for staging. Your videos then can't be embedded on other sites. For paid content, add token authentication with signed URLs.

Impact on page speed

A YouTube embed downloads hundreds of kilobytes of JavaScript on page load, even if nobody plays the video. A Bunny iframe with loading="lazy" and preload=false loads only when the visitor scrolls near it, and the video itself only after a click. On projects where I've switched to Bunny, LCP and total page weight improved the most, especially on mobile. More on Core Web Vitals in SEO in Webflow.

What it costs

Bunny Stream is pay-as-you-go: storage from $0.01 per GB per month, delivery from $0.005 per GB, free encoding and player, and a $1 monthly minimum. A business Webflow site with a dozen videos usually pays exactly that minimum, while Vimeo and Wistia charge monthly plans in the tens of dollars. Current prices are in the Bunny Stream pricing, and a worked example is in the Bunny Stream article.

Moving from Vimeo or YouTube

Bunny can fetch a video straight from a URL, in the dashboard or via the API, so you can move videos from Vimeo using their download links without saving them locally. In Webflow you then swap the embed code, or just the video ID in the CMS.

With YouTube, think about whether you want to give up the reach. You can keep the video there and embed a Bunny copy on your site.

When not to use Bunny Stream

If you want people to find you through YouTube search, Bunny won't replace it. Then it makes sense to do both: the video on YouTube for the audience, and a Bunny player on your site for speed and a clean look. When you do embed YouTube, use the youtube-nocookie.com domain, which doesn't set cookies until someone plays the video.

The same approach works outside Webflow too, in Framer, WordPress, Shopify or sites built with Lovable and Bolt. Platform-by-platform steps are in the Bunny Stream article.

For a homepage showreel, product videos, client testimonials in the CMS or courses, Bunny Stream is the best option I've tried so far.

What is the best way to host videos in Webflow?

Webflow itself only hosts short background videos up to 30 MB. For full videos I recommend Bunny Stream: upload the video to Bunny, paste the iframe into a Code Embed element and you get an unbranded player with adaptive streaming. YouTube and Vimeo work too, but with trade-offs in branding, speed or price.

What are the video limits in Webflow?

Webflow only accepts your own video in the Background Video element, up to 30 MB. It re-encodes it to a lower quality, with no sound and no controls. A regular video with a player has to be hosted elsewhere, such as Bunny Stream, YouTube or Vimeo.

How much does hosting Webflow videos on Bunny cost?

Storage starts at $0.01 per GB per month and delivery at $0.005 per GB; encoding and the player are free. The minimum charge is $1 per month, and the first 14 days are a free trial without a card. A typical business site with a dozen videos usually pays just the minimum.

How do I add a Bunny video to the Webflow CMS?

Add a text field for the video ID to the collection and put a Code Embed with the Bunny iframe on the collection template. Replace the video ID in the URL with that field using Add Field. Don't store the whole iframe in the CMS, so you can change player parameters in one place.

Can I use Bunny for a background video in Webflow?

Yes. Turn on MP4 Fallback in the library and put an HTML video tag with autoplay, muted, loop and playsinline into a Code Embed, pointing to the play_720p.mp4 file. This gets around the 30 MB limit and the lower quality of Webflow's native Background Video.

How do I hide recommended videos on a YouTube embed in Webflow?

You can't fully. The rel=0 parameter only limits recommendations to videos from your own channel. If you want no third-party content or branding, use a Bunny Stream player instead of YouTube.

Will Bunny video slow down my site?

Not if you embed it with loading="lazy" and the preload=false parameter. The player then loads only when the visitor scrolls near it, and the video downloads only after a click. Compared to a YouTube embed, you also skip hundreds of kilobytes of JavaScript.

Will Bunny videos work on webflow.io staging?

Yes, as long as you add *.webflow.io next to your own domain in the allowed domains of your Bunny library's security settings. Without it, videos won't play on staging if domain restriction is on.

Planning a new website or redesign in Webflow?

Write to me briefly,

STATUS:OPEN FOR PROJECTS·  REPLY WITHIN 2 DAYS·  NO COMMITMENT

Jan Vodvarka

Webflow developer & designer

Webflow premium partner badgeWebflow Premium Partner

Project inquiry

FORM.INQUIRY

Tell me about your project

Describe the project. Within two days I'll get back to you with a scope, timeline and plan.

What do you need
What do you need

I'll only use your details to reply.

Reply within 2 days ·designer@janvodvarka.cz