Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

To embed a video from X (formerly Twitter) on your website, open its public post on X.com, select the three-dot menu, choose Embed post, copy the code from publish.x.com, and paste it into an HTML or embed block on your site. This embeds the whole post—not a standalone video file.

If you mean adding a new video to an X post, that is a separate task: attach the video in the post composer and publish it.

Before you start

  • The post must be public. X does not offer embed code for protected posts. Public posts can be viewed by anyone; protected posts are limited to approved followers. See X’s guidance on public and protected posts.
  • Use the individual post page. Open the post itself, rather than relying on a feed preview.
  • Your website must allow embeds. The generated code uses X’s rendering service. A site editor that removes scripts may not display it.
  • An embed is not a copy. It displays the X post, including its author, text, media, and link back to X. It does not transfer the video to your server or grant permission to reuse it elsewhere.

How to embed an X video on a website

  1. On a desktop browser, go to X.com and find the post containing the video.
  2. Open the post’s detail page or permalink.
  3. Select the three-dot menu in the post’s upper-right corner.
  4. Choose Embed post. X opens its publishing tool at publish.x.com.
  5. Review the preview. If available, select Set customization options to adjust the appearance or hide the conversation.
  6. Select Copy Code.
  7. Paste the code where you want the post to appear in your website’s HTML or embed component, then save or publish the page.
  8. Check the published page in a private or incognito window, and test it on desktop and mobile.

This is X’s documented workflow: open the post menu, choose Embed post, customize if wanted, copy the code, and add it to a website or blog. It supports posts containing videos uploaded to X. See X’s instructions for embedding a post.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Where to paste the code

Use a field designed for HTML or third-party embeds. Pasting the code into an ordinary text or paragraph field may show the code as text, or the editor may remove it.

#1 Best Overall
Sale
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • Crisp HD 720p/30 fps video calls with diagonal 55° field of view and auto light correction. Compatible with popular platforms including Skype and Zoom.
  • The built-in noise-reducing mic makes sure your voice comes across clearly up to 1.5 meters away, even if you’re in busy surroundings.
  • C270’s RightLight 2 feature adjusts to lighting conditions, producing brighter, contrasted images to help you look good in all your conference calls.
  • The adjustable universal clip lets you attach the camera securely to your screen or laptop, or fold the clip and set the webcam on a shelf. You’re always ready for your next video call.
  • WordPress: Add a Custom HTML block and paste the code there.
  • Website builder: Use its Embed, HTML, or Code component.
  • Other CMS: Switch to source or HTML mode, or use the CMS’s supported social-post embed feature.
  • Markdown-only platform: A raw script embed may be stripped or displayed literally. Use an official embed block or an oEmbed workflow if the platform supports one.
  • Email newsletter: Most email clients do not run third-party scripts reliably. Use a thumbnail linked to the original post instead.

These are practical implementation considerations, not a compatibility guarantee from X. If a platform blocks scripts, the official embed may not render there.

Embedding from a phone

X’s official instructions describe using X.com, not a universal workflow in every iOS or Android app. If the app’s share menu does not offer Embed post, open the post in a mobile browser. If the option is still missing, use the browser’s Request Desktop Site or equivalent setting and follow the desktop steps. The exact labels and controls may vary by browser.

Hide the conversation around a reply

If you embed a reply, the preview may include the post it replies to. On publish.x.com, look for Hide Conversation in the customization options. This can hide the original post in the conversation, but it does not turn the embed into a bare video player: the embedded post’s own text, author information, media, and X link may still appear. See X’s embed-post instructions for available options.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sale
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • Auto-Light Balance: RightLight boosts brightness by up to 50%, reducing shadows so you look your best—compared to previous-generation Logitech webcams (1)
  • Privacy with a Slide: The integrated webcam cover makes it easy to get total, reliable privacy when you're not on a video call
  • Built-In Mic: The built-in microphone lets others hear you clearly during video calls
  • Easy Plug-And-Play: The Brio 101 works with most video calling platforms, including Microsoft Teams, Zoom and Google Meet—no hassle; it just works

Why the video or embed may not appear

What you see Likely reason What to try
“Embed post” is missing The post may be protected, deleted, unavailable, or restricted; you may be viewing a feed preview or an app interface that does not show the web embed workflow. Open the post permalink on X.com in a desktop browser. Confirm that it is public. Try another public video post to see whether the issue is specific to that post.
Code appears as text The code was pasted into a visual text field, escaped by the editor, or removed because the platform blocks scripts. Use a Custom HTML or Embed block, or source mode. Preview the published page, not just the editor.
Post appears, but video does not The post may have been deleted, the account may have become protected or suspended, the media may be restricted, or X’s script may be blocked. Open the original post directly; test while logged out and in another browser or device. Check whether a content blocker or consent tool is preventing X from loading. Keep a link to the original post as a fallback.
Blank or slow embed A network rule, browser extension, consent manager, script-delay setting, or site security policy may prevent X resources from loading. X may also be temporarily unavailable. Check browser-console errors and your site’s script or Content Security Policy settings. Test without script-optimization settings if practical, and provide a linked-thumbnail fallback.
No autoplay or sound Playback depends on X’s embed behavior and browser, device, and user settings. Autoplay on X itself does not guarantee autoplay with sound in a third-party embed. Design for click-to-play. Test on desktop and mobile, and do not make sound or autoplay necessary to understand the page.

X says that if a post is deleted, the account is suspended, or the account becomes protected, an existing embed may retain post text while its media no longer loads through X’s JavaScript. Playback can also be unavailable to some viewers because of restrictions. An embed depends on the original post and X’s service, so check important embeds periodically and retain a useful fallback link. See X’s embed documentation.

Can you embed only the video?

The standard Embed post tool embeds the X post, not a clean, standalone .mp4 player. That is useful when you want to preserve the author’s attribution, post text, and link to the source. If you need a standalone player, use the original video host’s official embed tool or host an authorized copy yourself. Do not assume that extracting a media URL from a browser will produce a stable or permitted embed; such URLs may expire or stop working.

Downloading, recording, and re-uploading someone else’s video can raise copyright, consent, attribution, and terms-of-use issues. An X embed does not itself grant broader rights to republish the video outside that post.

Rank #3
Xweiryn Webcam for PC, HD 1080P USB Plug-and-Play Computer Web Camera, High Definition Webcam for Desktop Laptop, Ideal for Online Class, Video Conference, Live Streaming & Gaming
  • 1080P HD Webcam: This HD webcam delivers crisp 1080p video quality, ideal for PCs, desktops, and laptops. Perfect for video calls, online classes, meetings, live streaming, gaming, and everyday recording. It provides clear, sharp images and smooth video at up to 30 frames per second. This live streaming webcam works with platforms such as Zoom, Teams, FaceTime, Google Meet, and YouTube.
  • USB Plug and Play Webcam: Designed for PCs, this webcam is easy to use. No drivers or software are required; simply connect the webcam to your computer and start using it immediately. Operation is smooth and convenient. XWEIRYN webcams are compatible with multiple operating systems, including Mac/Windows XP/7/8/10/11/PC/Laptops.
  • Widely Compatible Webcam: This versatile webcam is compatible with most operating systems and major video platforms. As a reliable computer webcam, it supports video conferencing, remote learning, live streaming, and gaming, meeting your various needs for daily work and entertainment.
  • Smooth and Stable Performance: This webcam uses a stable transmission chip to ensure smooth, lag-free video streaming, synchronized audio and video, and no dropped frames. Even after prolonged use, this durable webcam maintains stable performance. It performs excellently even in low-light environments. It automatically adjusts to adapt to low-light conditions, reducing noise and restoring vibrant colors, ensuring clear and sharp images even without additional studio lighting.
  • Compact and Adjustable Design: This lightweight and portable webcam saves space and comes with an adjustable clip. Our USB webcam uses a reliable USB 2.0/3.0 connection and comes with an upgraded 1.5-meter (5-foot) braided cable. It is compatible with Desktop most monitors and Laptop. Its portable design makes it easy to place and carry, ideal for home, office, or travel use.

Choose the right kind of embed

Your goal Better choice
Show the original account and the post’s context Embed the X post.
Provide a clean player for a YouTube, Vimeo, or other externally hosted video Use that video service’s official embed. An X post linking to it may show a link or preview, but the X embed is still an embed of the post, not a guarantee of the external player.
Use a newsletter or a platform that blocks scripts Show a thumbnail linked to the original X post.
Control playback or keep the page working independently of X If you have the necessary rights, use an authorized copy hosted on a service you control or choose.
Avoid loading a third-party embed immediately Use a consent-controlled or click-to-load option if your site supports it, or use a linked thumbnail.

Privacy, accessibility, and upkeep

An X embed loads third-party content. X’s X for Websites privacy information says it may receive information when visitors view embedded content, such as the page they visited, IP address, browser type, operating system, and cookie information. If your site uses a consent manager or handles sensitive information, review your own privacy notice, consent configuration, jurisdiction-specific obligations, and organizational requirements. This is not legal advice.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Give the video useful context in nearby page text. Do not rely on the embed alone to convey essential information, and provide captions or a text summary where appropriate. Link to the original post as a fallback. For long-lived guides and important editorial pages, periodically verify that the post and video still load.

If you meant posting a video to X

To put a new video in an X post, use the post composer, select its media or gallery button, choose the video, complete the post, and select Post. This uploads or attaches media to a post; it is different from embedding an existing post on your website. See X’s guides to X videos and posting on X.

Rank #4
Sale
EMEET C960 1080P Webcam with Microphone, 2 Mics, 90° FOV, Computer Camera
  • 1080P Webcam with Cover for Video Calls - EMEET computer webcam provides design and Optimization for professional video streaming. Realistic 1920 x 1080p video, 5-layer anti-glare lens, providing smooth video. C960 computer camera delivers 1920x1080 video with fixed focus (11.8–118.1 inches), so as to provide a clearer image. C960 USB webcam has a cover and can be removed automatically to meet your needs for privacy. For optimal image performance, use the webcam in a well-lit environment.
  • Built-in 2 Omnidirectional Mics - EMEET webcam with microphone for desktop features 2 built-in omnidirectional microphones, picking up your voice to create clear audio for communication. When installing the webcam, select EMEET C960 as the default microphone input device in your computer and video applications and select C960 as the default device in Zoom/Teams and ensure microphone permissions are enabled for proper use. Please note that C960 does not include built-in speakers.
  • Automatic Light Adjustment - Automatic exposure adjustment is applied in EMEET HD webcam 1080p so that the streaming webcam can deliver stable image performance. EMEET C960 camera for computer also features color adjustment and exposure optimization to help you look your best. For optimal video quality, it is recommended to use the webcam in normal or well-lit environments and select suitable video settings in your application. Proper lighting helps achieve a clearer and more balanced image.
  • Plug-and-Play & Upgraded USB Connectivity - New C960 webcam features both USB Type-A & A-to-C adapter connections for wider compatibility. For stable performance, connect the webcam directly to the computer's main USB port and ensure the device is recognized correctly. If a hub or docking station is used, please ensure it provides sufficient power and stable data transmission, as limited ports may affect performance. 90° wide-angle lens captures more participants without frequent adjustments.
  • High Compatibility & Multi Application - C960 webcam for laptop is compatible with Windows 10/11, macOS 10.14+, and Android TV 7.0+. Not supported: Windows Hello, TVs, tablets, or game consoles. It works with Zoom, Teams, Facetime, Google Meet, YouTube and more. Please select C960 webcam as the default camera and microphone device in your application and ensure camera/microphone permissions are enabled, especially on macOS. (Tips: Incompatible with Windows Hello)

As of X’s help page checked on August 16, 2026, non-Premium accounts can upload videos up to 140 seconds and 512 MB. The page lists higher limits for Premium subscribers: videos shorter than four hours at 1080p, up to 16 GB; videos longer than two hours and under four hours are listed at 720p, up to 16 GB. These upload limits can change and matter only if you are creating the source post, not embedding an existing one.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Frequently Asked Questions

Can I embed a video from a protected X account?

No. X does not provide embed code for protected posts. Use a public post instead, if the owner chooses to make it public.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Can I embed an X video without showing the post?

The standard X embed displays the post, not a standalone player. Use a separately hosted, authorized video copy if you need a player without the post context.

Will an embedded X video autoplay?

Do not count on it. Autoplay and sound depend on X’s embed behavior and visitors’ browser and device settings. Design for click-to-play.

Can I embed an X video in an email?

Usually not as a functioning player: email clients commonly block scripts and third-party embeds. Use a linked thumbnail instead.

What happens if the original post is deleted?

The embed may retain some post text, but X says its media will no longer load through the embed’s JavaScript. Keep a fallback link or replace the embed if needed.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.