How to Embed a Tweet on a Website
Quick answer
On X in a desktop browser, open the post, click the three-dot menu, and choose Embed post. X generates a snippet with a blockquote and a small script tag. Copy it and paste it into your page's HTML, and the post renders as a live interactive embed with the author, text, and media.
Step by step
- 1
Open the post on desktop web
The embed option lives on x.com in a browser. The mobile apps only offer share links, so grab the post URL there and open it on desktop if needed.
- 2
Click the three-dot menu and choose Embed post
X opens its publish tool with a preview and the generated code. Some layouts route this through the share icon instead.
- 3
Copy the embed code
The snippet is a blockquote containing the post text plus a script tag that loads X's widgets library and turns it into the styled card.
- 4
Paste it into your page's HTML
In WordPress use a Custom HTML block, in most CMSs use the code or embed element. Pasting into a plain rich-text field will show raw code instead of the card.
- 5
Preview the page
The embed loads client-side, so check the published or preview URL. If it shows unstyled text, the script tag was stripped by your editor.
Worth knowing
- If the original post is deleted or the account goes protected, the embed degrades to plain quoted text or an unavailable notice.
- Some CMSs and WordPress auto-embed a post if you paste just the URL on its own line, skipping the code step entirely.
- The widget script sets cookies, so sites with strict consent banners may need to gate it behind consent.
Doing this for a brand, not just an account?
Embedding real posts turns customer praise and campaign moments into verifiable social proof on your site, which lands better than a pasted screenshot.
Common questions
Can I embed someone else's post without permission?
Yes, embedding public posts is a supported feature and the embed credits the author with a link back. Protected accounts cannot be embedded, which acts as the opt-out.
What happens to the embed if the tweet gets deleted?
The interactive card stops rendering and visitors see the fallback blockquote text or an unavailable message. For anything load-bearing, pair the embed with a screenshot or paraphrase in the article.
Why does my embed show as plain text instead of a card?
The widgets.js script is not loading. Common causes: the CMS stripped the script tag, a cookie-consent or ad blocker blocked it, or the code was pasted into a rich-text field instead of an HTML block.
Can I embed a whole thread?
Each embed shows one post, with the post it replies to attached above it by default. To present a full thread, embed the key posts individually or link out to the thread on X.