logo
search
Others

How to Embed an MP3 File in Microsoft Sway

Aamir Naveed AkramAamir Naveed Akram Sep 25, 2026 868 views

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.

How to Embed an MP3 File in Microsoft Sway
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.
Before you start

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.

Solution 1Recommended

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.

1
Upload the MP3 file

Log in to your Microsoft work or school account and upload your MP3 file to OneDrive for Business or SharePoint Online.

2
Generate the embed code

Open the uploaded MP3 file in your web browser. Click on 'Share', select 'Embed code', and copy the generated iframe code to your clipboard.

3
Add an Embed Card in Sway

Open your Microsoft Sway presentation. Click the '+' icon to 'Add a card', navigate to the 'Media' tab, and select 'Embed'.

4
Paste the embed code

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.

Troubleshooting Embed Issues: If the embedding fails, check your organization's sharing permissions on the MP3 file to ensure it allows viewing. Make sure you are signed in with the correct work or school account.
Free Microsoft Office alternative

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. 1. Open WPS Presentation: Launch WPS Office and open an existing presentation or create a new blank slide.
  2. 2. Insert Audio: Go to the 'Insert' tab on the top ribbon menu, click on 'Audio', and select 'Insert Audio'.
  3. 3. Select your MP3: Browse your local computer files, select the desired MP3 file, and click 'Open' to embed it directly into your presentation.
Insert local MP3 audio files directly into your presentation without generating embed codes.Highly compatible with Microsoft PowerPoint (.ppt, .pptx) formats.Free and lightweight Microsoft Office alternative with a familiar user interface.Seamless migration for all your document, spreadsheet, and presentation needs.
QA img-9

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.