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
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.
How to generate video embeds for your website
Build a hosted iframe from your URL in a few steps—no backend required.
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.
Choose autoplay (optional)
Toggle autoplay for the embed page. Many browsers block sound until the viewer interacts; muted autoplay is more likely to work.
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.
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.
Play in the full online player
Open the main M3U8 player for HLS, or use the MP4 player page for progressive files.
Open M3U8 playerNeed MP4 playback only?
Use the dedicated MP4 online player to paste a file URL and watch in the browser.
Open MP4 playerNeed to save HLS segments?
Use our M3U8 downloader when you need offline segments—not for pirated content.
Go to M3U8 downloaderVideo 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.