Fix Microsoft Sway Cannot Convert YouTube Embed Code
Question details
The user is unable to embed YouTube videos in Microsoft Sway due to a conversion error and needs to know the correct method to embed external media and OneDrive files.

- Product
- Microsoft Sway
- Device & OS
- not provided
- Scenario
- Embedding external multimedia content like YouTube videos and OneDrive files into a Microsoft Sway presentation.
- Observed behavior
- Sway rejects new and previously working YouTube embed codes with a conversion error. Additionally, the standard method of linking OneDrive files fails to embed them properly.
Ensure you have a stable internet connection and access to both your Microsoft Sway account and the original source files on YouTube or OneDrive.
Fix YouTube Embed Code Conversion Error
Update and correctly paste the complete YouTube iframe code to bypass Sway's conversion restrictions.
Microsoft Sway frequently updates its security and formatting rules for external content. Older embed formats or plain video URLs might be rejected with a conversion error, requiring the use of standard iframe codes.
Navigate to the YouTube video you want to embed. Click the 'Share' button located below the video, then select 'Embed' to reveal the HTML iframe code.
Click 'Copy' in the bottom right corner of the YouTube embed window to copy the entire iframe code snippet to your clipboard.
Open your Microsoft Sway presentation. Click the '+' (Insert Content) icon on your Storyline, select the 'Media' tab, and choose 'Embed'.
Click inside the newly created Embed card and paste the copied YouTube iframe code directly into the field.

Generate Embed Codes for OneDrive Files
Use OneDrive's native sharing menu to generate compatible embed codes for your Sway presentation.
Create Seamless Presentations with WPS Office
If Microsoft Sway's embed restrictions and conversion errors disrupt your workflow, consider switching to WPS Office. WPS Presentation provides a reliable, lightweight, and highly compatible alternative to Microsoft's presentation tools, allowing you to insert local and online media without rigid code restrictions.
- 1. Launch WPS Presentation: Open WPS Office on your device and create a new presentation or open an existing PowerPoint file.
- 2. Insert Media: Navigate to the 'Insert' tab on the top ribbon and click on the 'Video' button.
- 3. Add your video: Select 'Online Video' to paste a video URL, or 'Local Video' to add a file directly from your computer without worrying about complex embed codes.

Frequently Asked Questions
Why does Sway reject my YouTube embed code with a conversion error?
Sway often rejects plain URLs or outdated embed formats. It strictly requires a complete HTML iframe code. Additionally, temporary Microsoft service outages can restrict external content embedding, causing even valid codes to fail.
Can I just paste a OneDrive file URL directly into Sway?
No, pasting a standard OneDrive sharing link into Sway usually will not display the file properly. You must open the file in OneDrive, use the Share menu to generate a specific '</> Embed' code, and paste that code into a Sway Embed card.
How do I add an Embed card in Microsoft Sway?
To add an Embed card, click the '+' icon at the bottom of any existing card in your Sway Storyline, navigate to the 'Media' tab, and select 'Embed'.
What other video platforms are supported by Microsoft Sway?
In addition to YouTube, Microsoft Sway supports embedding media from platforms like Vimeo, Microsoft Stream, and SoundCloud, as long as you copy and paste the official iframe embed code provided directly by those platforms.




