X and Twitter Embed Generator

Turn a public X post URL into configurable, copy-ready official embed markup without loading third-party content in the preview.

  • X and Twitter links
  • Official widget options
  • Local private generation

Generate an official X post embed

Validate the post link, choose the presentation options and copy a complete blockquote plus X widget script.

X.com and legacy Twitter.com post links are accepted. Tracking parameters and media suffixes are removed.

Embed options

Hide the parent post when the embedded post is part of a reply thread.

Ask the widget to omit cards and media while retaining the post text.

Add X’s do-not-track option to limit personalisation based on the visit.

Embed preview and code

This representative preview does not contact X or execute the widget script.

X

Official post content

Loaded by X on your website

Enter a public post URL to generate its embed markup.

Control the embed without guesswork

The generated attributes map directly to the options understood by X’s embedded-post widget.

Normalised post markup

Accept current x.com links and legacy twitter.com post links, then remove tracking parameters and media suffixes.

Theme and placement

Choose the light or dark widget theme and set its natural, left, centred or right alignment.

Content controls

Hide a reply’s parent conversation or ask the official widget to omit media and cards.

Privacy-aware workflow

Generate everything locally with limited tracking enabled by default and no third-party preview request.

What the generated code does

The copied HTML is only the integration point; availability and rendering remain controlled by X.

The blockquote provides a useful link fallback. X's asynchronous widgets.js script replaces it with the live post when the page loads, subject to the post remaining public and available.

Loading that script contacts X from your visitor's browser. Check your own consent, privacy and content-security requirements before placing the embed on a production site.

Embed generator questions

Answers about supported links, public posts, preview privacy, unavailable posts and widget options.