Cette page n’est pas encore traduite en français : elle s’affiche en anglais.

Video Embed Code Generator — YouTube, Vimeo, Loom and More

Paste a video link from YouTube, Vimeo, Loom, Wistia, Dailymotion, Twitch, Streamable, Google Drive or Facebook — or a direct MP4/WebM file — and get clean, responsive embed code that keeps its 16:9 (or 9:16) shape on every screen. Turn on privacy-enhanced mode (youtube-nocookie.com), set a start and end time, autoplay muted, loop or hide controls — or choose the lite “click to load” version that shows only a thumbnail until clicked, so your page stays fast.

Mis à jour le

Preview

Embed code

In Webflow add an Embed element (or Site settings → Custom code) and paste the code; in WordPress use a Custom HTML block.

Vos données ne quittent jamais votre ordinateur. Tout le traitement se fait localement dans votre navigateur.

Comment utiliser : Video Embed Code Generator

  1. Paste a video link — YouTube (watch, youtu.be, Shorts), Vimeo, Loom, Wistia, Dailymotion, Twitch, Streamable, Google Drive, Facebook or a direct .mp4 file. The platform, ID and start time are read from it.
  2. Choose a responsive iframe, or the lite version that loads the player only when clicked (much faster pages).
  3. Set the start and end time, autoplay (always muted — browsers block autoplay with sound), loop, controls and captions.
  4. Copy the code into an Embed element (Webflow), a Custom HTML block (WordPress) or your page. Options a platform’s player doesn’t support are hidden.

Supported platforms

YouTube (privacy-enhanced mode, start/end, captions, lite mode), Vimeo (including unlisted links with a hash, do-not-track), Loom, Wistia, Dailymotion, Twitch (videos, clips and live channels — Twitch requires the domains you embed on), Streamable, Google Drive (files shared with “Anyone with the link”), Facebook videos and your own MP4/WebM files with the HTML5 <video> element.

Responsive without wrapper hacks

The code uses the CSS aspect-ratio property, so the video fills its container’s width and keeps its shape — no padding-bottom trick needed. Vertical Shorts use 9:16 and are limited in width so they don’t become huge on desktop.

Why the lite version is faster

A regular YouTube embed loads around 1 MB of scripts before anyone presses play, which hurts Largest Contentful Paint and Total Blocking Time. The lite version shows only the video’s thumbnail and a play button; the real player loads on click and starts immediately. Use it whenever a page has more than one video or the video isn’t the first thing people see.

OptionParameter
Privacy-enhanced modeyoutube-nocookie.com domain
Start / endstart, end (seconds)
Autoplayautoplay=1&mute=1
Looploop=1&playlist=ID
Captionscc_load_policy=1
Related videosrel=0 (same channel only)

Aussi recherché comme : youtube embed code generator, vimeo embed code, responsive video embed, loom embed, embed video html, wistia embed code, twitch embed, lite youtube embed.

Outils complémentaires : Video Embed Code Generator

  • Google Maps Embed Generator — Show your office, store or event on a Google Map without signing up for an API key.
  • Cookie Consent Banner Generator — Add a cookie consent banner to any site — Webflow, WordPress, Shopify or plain HTML — without a paid plugin.
  • Page Speed Test — Run Google Lighthouse on any URL for mobile or desktop.
  • Générateur d’images OG — Créez en quelques secondes une image d'aperçu de lien soignée pour Facebook, LinkedIn, X, Slack et WhatsApp : choisissez un modèle, saisissez votre titre, ajoutez un logo, puis téléchargez le fichier PNG et les balises méta correspondantes.

Questions fréquentes

Which video sites are supported?
YouTube, Vimeo, Loom, Wistia, Dailymotion, Twitch, Streamable, Google Drive and Facebook, plus direct MP4, WebM and MOV links, which get an HTML5 video tag.
How do I make a video embed responsive?
Give the iframe width: 100%, height: auto and aspect-ratio: 16 / 9 in CSS — the code here does that, so the video scales with its container on every screen.
Why doesn’t autoplay work with sound?
Browsers only allow autoplay when the video is muted. Ticking Autoplay adds mute=1; viewers can unmute with the player controls.
How do I start a YouTube embed at a specific time?
Enter the time in Start at (like 1:30) or paste a link with &t=90 — the embed gets start=90. End at stops the video at that point.
What does privacy-enhanced mode do?
It loads the player from youtube-nocookie.com, which doesn’t store YouTube cookies until the visitor plays the video — helpful for GDPR and cookie banners.
Puis-je installer Video Embed Code Generator en tant qu’application web et l’utiliser hors ligne ?
Oui. Video Embed Code Generator est une application web installable (PWA) : elle s’installe depuis votre navigateur, sans passer par une boutique d’applications. Cliquez sur « Installer l’application » en haut de cette page dans Chrome ou Edge (Windows, macOS, Linux, ChromeOS) ; sur Android, utilisez « Partager » → « Ajouter à l’écran d’accueil » sur iPhone et iPad ; ou « Fichier » → « Ajouter au Dock » dans Safari 17+ sur Mac. L’application s’ouvre alors dans sa propre fenêtre avec sa propre icône, et comme elle s’exécute entièrement dans votre navigateur, elle continue de fonctionner hors ligne. Firefox sur ordinateur de bureau ne permet pas d’installer d’applications web. Comment fonctionne l’installation.

Outils similaires