Video embed generator

Choose M3U8 (HLS) or MP4, paste a direct HTTPS URL, then copy the embed page link or iframe snippet for any webpage.

Generate your embed

Parameter principles:

video_url: Use encodeURIComponent(videoUrl) before passing it to video_url, especially when the link already contains ?query=…

autoplay: When you want the embedded player to autoplay by default, the autoplay parameter will be set to true.

Embed page URL

https://m3u8player.app/en/embed/player/?video_url=https%253A%252F%252Ftest-streams.mux.dev%252Fx36xhzz%252Fx36xhzz.m3u8&autoplay=true&type=m3u8

iframe HTML

Paste this snippet into your site’s HTML where you want the player to appear. Adjust width and height to fit your layout.

<iframe src="https://m3u8player.app/en/embed/player/?video_url=https%253A%252F%252Ftest-streams.mux.dev%252Fx36xhzz%252Fx36xhzz.m3u8&amp;autoplay=true&amp;type=m3u8" width="800" height="450" style="border:0;max-width:100%" title="Embedded M3U8 (HLS) player" loading="lazy" allowfullscreen allow="fullscreen; autoplay"></iframe>

How to generate video embeds for your website

Build a hosted iframe from your URL in a few steps—no backend required.

1

Pick format and paste your URL

Select M3U8 (HLS) or MP4, then enter the full HTTPS link. HLS needs a .m3u8 playlist; MP4 needs a direct file URL.

2

Choose autoplay (optional)

Toggle autoplay for the embed page. Many browsers block sound until the viewer interacts; muted autoplay is more likely to work.

3

Copy the embed URL or iframe

Copy either the hosted embed page URL or the complete iframe HTML, then paste it into your CMS, blog, or static page.

4

Publish and test

Save your page and open it on desktop and mobile. Use “Open preview” anytime to verify playback before going live.

Why use this video embed generator

One tool for HLS and MP4 embeds—clear parameters, one-click copy, same trusted player.

M3U8 and MP4

Switch formats without leaving the page; query strings include type=m3u8 or type=mp4 for the embed route.

URL + iframe in one place

Get both a shareable embed page link and a ready-to-paste iframe snippet with correct encoding.

Autoplay-aware

Optional autoplay flag matches our embed player’s query parameters so you can align with browser autoplay rules.

Responsive-friendly

iframe uses max-width friendly defaults; tweak width and height attributes to match your theme.

Free in the browser

Generate embeds directly in your browser—no account wall for this tool.

Works with your existing player stack

Embeds use the same m3u8player.app embed route your audience already uses for playback.

Video embed generator FAQ

Answers about iframe embedding, autoplay, supported formats, and what this tool stores.

It builds a link to our hosted embed player with your video URL and format in the query string, and produces the matching iframe HTML. You paste either into your own website.

M3U8 (HLS) playlist URLs and direct MP4 URLs (progressive). Pick the matching format so the embed player initializes correctly.

Not always. Browsers enforce autoplay policies—often allowing muted video but blocking audio until the user interacts. Test with “Open preview” on the browsers you care about.

Generation happens in your browser. We do not require an account for this tool and do not log your pasted URL on our side for this form—media is requested when viewers load your embed.

You must have the right to embed and distribute that content. Some hosts block cross-origin playback; if preview fails, check CORS, HTTPS, and that the URL is reachable.

The home page shows a quick M3U8 example. This page is a full generator with format selection, your URL, autoplay toggle, and both copy targets.