Quick

iframe Embed Code Generator

Paste a normal YouTube, Vimeo, Spotify or Google Maps link and get a ready-to-paste, accessible and responsive <iframe> embed tag.

Advertisement

About this tool

Paste the link you'd share and the tool works out the embed address. YouTube watch, short (youtu.be), Shorts, live and playlist links all work, and a start time such as &t=1m30s is kept. Vimeo links work, including unlisted videos with a privacy hash. Spotify tracks, albums, playlists, artists, podcasts and episodes get Spotify's own player at the right height. For Google Maps, a place or search link becomes a simple map of that place; short maps.app.goo.gl links hide the location, so open them first and paste the full address, or use Share → Embed a map in Google Maps.

The code includes a title (which screen readers announce), loading="lazy" so off-screen embeds don't slow your page, and, if you leave it ticked, a responsive size that fills its container and keeps its shape on phones. Privacy-enhanced mode uses youtube-nocookie.com and Vimeo's do-not-track option, so visitors aren't tracked until they press play, which helps with cookie consent.