Free Tool by SearchVector
Twitter Embed Generator
Loading the tool…
Paste a post link from X (Twitter) and get embed code with your choice of theme, alignment, width, conversation and media settings.
Embed posts that fit your page
X embeds use a blockquote that the platform’s widgets.js script turns into a full post. This generator builds that snippet from a post URL and adds the documented display options: theme, alignment, width, hiding the parent post and hiding media cards.
You can also add fallback text, which shows if the script is blocked or slow.
x.com and twitter.com links.
Theme, align, width, conversation and cards.
Readable even if the script is blocked.
On by default for privacy.
About the twitter embed generator
Any post URL
Included
x.com and twitter.com links.
Display options
Included
Theme, align, width, conversation and cards.
Fallback text
Included
Readable even if the script is blocked.
Do Not Track
Included
On by default for privacy.
How it works
Use the twitter embed generator in three steps
Paste the post link, set display options, copy the code.
01
Paste the post link
From x.com or twitter.com.
02
Set display options
Theme, alignment and more.
03
Copy the code
Paste into an HTML block.
Embed code for blogs and sites
Standard markup that works in any CMS.
Clean HTML
Blockquote plus one script tag.
Documented options
The data attributes X supports.
Privacy
data-dnt on by default.
Fallback preview
See what shows before the script loads.
Twitter Embed Generator FAQs
Common questions about the twitter embed generator.