How to Embed an MP3 File in Microsoft Sway
Question details
The user needs to find the embed code for an MP3 file stored in a Microsoft work account and correctly insert it into a Microsoft Sway presentation.

- Product
- Microsoft Sway, OneDrive for Business, SharePoint
- Device & OS
- not provided
- Scenario
- Adding interactive audio media to a Microsoft Sway presentation using a cloud-hosted MP3 file.
- Observed behavior
- Looking for the specific workflow to generate an iframe code for an MP3 file from a work or school account and paste it into a Sway media card.
Ensure your MP3 file is already uploaded to your OneDrive for Business or SharePoint Online account, as Sway requires a supported cloud-hosted URL to generate the required iframe embed code.
Embed MP3 using OneDrive or SharePoint Embed Code
Use this method to generate an iframe code from your Microsoft cloud storage and paste it directly into a Sway embed card.
Microsoft Sway allows you to embed online content using iframe codes. To embed an audio file like an MP3, it must first be hosted on a service that provides embed codes, such as OneDrive for Business or SharePoint Online.
Log in to your Microsoft work or school account and upload your MP3 file to OneDrive for Business or SharePoint Online.
Open the uploaded MP3 file in your web browser. Click on 'Share', select 'Embed code', and copy the generated iframe code to your clipboard.
Open your Microsoft Sway presentation. Click the '+' icon to 'Add a card', navigate to the 'Media' tab, and select 'Embed'.
Click inside the new Embed card in Sway and paste the iframe code you copied earlier. The audio player will now render in your presentation.
Create Engaging Presentations with WPS Office
While Microsoft Sway requires cloud hosting and embed codes for audio, WPS Presentation offers a powerful, completely free desktop alternative for crafting professional slideshows. You can easily insert local audio files directly into your slides without any internet connection or complex iframe codes.
- 1. Open WPS Presentation: Launch WPS Office and open an existing presentation or create a new blank slide.
- 2. Insert Audio: Go to the 'Insert' tab on the top ribbon menu, click on 'Audio', and select 'Insert Audio'.
- 3. Select your MP3: Browse your local computer files, select the desired MP3 file, and click 'Open' to embed it directly into your presentation.

Frequently Asked Questions
Why is my embed code from OneDrive not working in Sway?
This usually happens due to file permission settings. Ensure the MP3 file in OneDrive or SharePoint is shared with proper viewing permissions that match the audience of your Sway presentation. Private files will not render in the embed card.
Can I upload an MP3 directly from my computer into Microsoft Sway?
Yes, Sway supports uploading audio directly by using the 'Add a card' > 'Media' > 'Audio' option instead of the 'Embed' option. However, if you specifically need to use an embed card (iframe), the audio must be hosted online first.
What should I do if the 'Embed code' option is missing in my OneDrive account?
The 'Embed code' feature might be restricted by your organization's IT administrator. If it is missing, you may need to use a personal OneDrive account or ask your admin to enable embedding features for SharePoint and OneDrive for Business.




