How can I embed a video from Dropbox on my Webflow site and ensure it works in Firefox and Safari?

TL;DR
  • Replace the Dropbox link's ?dl=0 with ?raw=1 to create a direct video URL.  
  • Use Webflow’s Embed element with an HTML5 <video> tag pointing to the direct link, ensuring the file is MP4 encoded with H.264.  
  • Include attributes like controls, autoplay, muted, and playsinline for compatibility, then test on Firefox and Safari.

To embed a video from Dropbox on Webflow and ensure compatibility with Firefox and Safari, you need to customize the Dropbox link and use a native Webflow video embed approach.

1. Convert the Dropbox Link to a Direct Video URL

  • Dropbox links by default do not serve videos in a playable format.
  • Change the shared link from this:
  • https://www.dropbox.com/s/yourfileid/filename.mp4?dl=0
  • To this direct download format:
  • https://www.dropbox.com/s/yourfileid/filename.mp4?raw=1
  • Replace ?dl=0 with ?raw=1 to make the file directly accessible as a video source.

2. Use Webflow’s Embed Element to Add Custom Video Code

  • In the Webflow Designer, drag the Embed component from the Add panel.
  • Insert a standard HTML5 video element like:

  `<video controls playsinline autoplay muted loop width="100%" height="auto">

    <source src="https://www.dropbox.com/s/yourfileid/filename.mp4?raw=1" type="video/mp4">

    Your browser does not support the video tag.

  </video>`

  • Make sure the .mp4 file is encoded using the H.264 codec, which is broadly supported on Firefox and Safari.

3. Optimize for Cross-Browser Playback

  • controls: Adds native play/pause controls.
  • playsinline and muted: Required for autoplay to work on iOS Safari.
  • autoplay and loop: Optional, based on behavior you want.
  • type="video/mp4": Helps browsers identify the format more reliably.

4. Test on Firefox and Safari

  • After publishing, open your site in Safari and Firefox to confirm:
  • The video loads and plays correctly.
  • Controls display and function.
  • If it doesn't work, double-check:
  • The link ends with ?raw=1.
  • The video codec is H.264 and AAC audio.

Summary

To embed a Dropbox video in Webflow that works in Firefox and Safari, convert the link to use ?raw=1, place it in a native video HTML element via Webflow’s Embed widget, and ensure it's properly encoded as MP4 (H.264). Always test in both browsers after publishing.

Rate this answer

Other Webflow Questions