[ tool ]
Embed code generator
Paste a URL from YouTube, Vimeo, Twitter or Instagram. The tool detects the platform and hands back ready embed code.
[ input ]
Width and height apply to YouTube and Vimeo. Twitter and Instagram are responsive.
[ output ]
Paste a supported URL to see embed code. We recognise youtube.com, youtu.be, vimeo.com, twitter.com, x.com and instagram.com.
[ how this works ]
URL pattern matching, nothing fancy
The tool runs your URL through four regex patterns and pulls the video or post ID out. YouTube and Vimeo get an iframe with the official embed URL. Twitter and Instagram get the platform widget snippet, which their own script renders.
Nothing leaves the browser. Width and height are applied to the iframe attributes for YouTube and Vimeo. The social embeds ignore size because their widgets size themselves.