Video embed code generator

Paste your Dembed video link (or the URL of an MP4 or WebM file), choose size, ratio and options, and copy embed code ready to paste into your site, blog or CMS. You’ll see the result instantly.

Size

Aspect ratio

Autoplay

Browsers only allow it muted.

Lazy loading

Recommended: the video isn’t loaded until the visitor scrolls to it.

Maximum compatibility

Uses the padding-top wrapper for older themes and editors.

Your embed code

Paste a link to generate the code.

Preview

This is where you’ll see how the video looks on your site.

How to use the embed code

  1. 1Paste the video link and adjust the options.
  2. 2Click “Copy” to grab the code.
  3. 3Paste it into your site: in a WordPress “Custom HTML” block, Blogger’s HTML view or your site builder’s “Embed” or “HTML” block.

What does each part of the code mean?

src is the player’s address, title describes the video, allow grants permissions (fullscreen, autoplay), loading="lazy" defers loading and aspect-ratio keeps the proportions on any screen. We explain it in detail in the guide to embedding a video in HTML.

Read the HTML embed guide

Frequently asked questions

A snippet of HTML (usually an iframe) that shows a video hosted on another service on your site, without uploading the file to your server.

You might also like

Host your videos for free and earn from every view

Create your account in under a minute, upload your first video and start earning from day one.