How can I add an MP4 file to my Webflow site?

TL;DR
  • Upload your MP4 to YouTube/Vimeo and embed using Webflow’s Video element, or host the MP4 externally and embed it with a custom video tag in an Embed element.  
  • Style the video using a wrapped Div Block in Webflow’s Designer for layout and responsiveness.

To add an MP4 file to your Webflow site, you must host the video externally or convert it to a supported format. Webflow does not support direct MP4 file uploads for playback.

1. Understand Webflow Video Limitations

  • Webflow does not support direct MP4 uploads for playback on your site.
  • The Video element in Webflow only accepts YouTube and Vimeo links.
  • You can upload MP4 files to the Assets panel, but you can’t embed them directly for native playback.

2. Use the Native Video Element (with YouTube or Vimeo)

  • Convert your MP4 file by uploading it to YouTube or Vimeo.
  • Copy the video link.
  • In Webflow, drag in a Video element from the Add panel.
  • Paste the YouTube or Vimeo URL into the Video element settings.

3. Use a Hosted MP4 (for Custom Embeds)

If you want to use an actual MP4 file:

  • Host your MP4 file externally, such as:
  • AWS S3
  • Dropbox (with correct link formatting)
  • Google Cloud Storage
  • Any reliable file hosting service with direct MP4 URLs
  • Once hosted and you have a direct URL (ending in .mp4), use an Embed element in Webflow.
  • Paste the following in the Embed Code:
  • <video autoplay muted loop playsinline width="100%" loading="lazy"><source src="https://your-link.com/video.mp4" type="video/mp4"></video>
  • Adjust attributes (e.g., autoplayloop) as needed.

4. Style the Video

  • Wrap the Embed element in a Div Block for better control.
  • Use Webflow’s Designer to position and style the container, such as for background video or inline use.

Summary

To add an MP4 file to Webflow, host the video externally and use an Embed element with a video tag, or convert it to a YouTube/Vimeo link and use the Video element. Webflow doesn't support direct MP4 playback natively.

Rate this answer

Other Webflow Questions