X/Twitter Embed Code Generator
Paste any public X/Twitter post or video URL and get the official embed code for your website, blog, or HTML page - instantly, for free.
How to embed an X/Twitter post or video on your website
Copy the X/Twitter post URL
Open any public post on X or Twitter, including a video post. Copy the URL from your browser address bar or use the 'Copy Link' option in the post's share menu.
Paste and generate
Paste the URL into the field above and click 'Get Embed Code'. The post is fetched instantly using Twitter's official oEmbed API.
Copy and paste into your site
Copy the HTML snippet and drop it anywhere in your website's code - WordPress, Webflow, raw HTML, or any CMS that accepts HTML blocks.
Embed X/Twitter posts on any platform
Step-by-step instructions for the most popular tools
WordPress
In your post editor, switch a block to 'Custom HTML', paste the embed code, and publish. The X/Twitter post or video renders automatically.
Substack
Click '+' in the editor, choose 'Embed', and paste the X/Twitter URL directly. Substack handles the rendering without the HTML snippet.
Webflow
Add an 'Embed' element to your canvas, paste the full embed code (blockquote + script tag), and publish.
Squarespace
Add a 'Code Block' to your page, paste the embed code inside it, and save. Works in both Classic and Fluid Engine editors.
Raw HTML
Paste the blockquote HTML where you want the X/Twitter post or video to appear. Add the script tag once before </body>. Done.
Google Sites
Insert > Embed > By code. Paste the embed code. Note: Google Sites may strip scripts, so use Twitter's published URL embed if the script is removed.