Add an MP3 Audio File to a SharePoint Online Page
Question details
Add an MP3 stored in OneDrive or SharePoint to a SharePoint Online page so visitors can play it there.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- A page editor wants to provide an audio player on a modern SharePoint page.
- Observed behavior
- Visitors should be able to play the MP3 directly from the page without navigating to the file.
Upload the MP3 to OneDrive or a SharePoint document library and make sure the intended page visitors have permission to access it. You also need permission to edit the SharePoint page and, if required, approval to embed content from the file's domain.
Embed the MP3 with an iframe
Try this approach when you have a direct MP3 URL and the file source permits iframe embedding.
In OneDrive or the SharePoint document library, locate the MP3 and copy a URL that opens the audio file directly. A sharing link that opens a preview page may not behave like a direct MP3 URL.
Open the SharePoint page, select Edit, and use the plus button where you want the player. Choose the Embed web part.
In the Embed web part, enter an iframe such as <iframe src="YOUR_DIRECT_MP3_URL" width="100%" height="100"></iframe>, replacing YOUR_DIRECT_MP3_URL with the file URL.
Select Republish or Publish, then open the page as an intended viewer and test playback. The player appearance depends on the browser and how the file is served.
Embed a hosted HTML audio player
Use a hosted player page when you want an HTML audio control and your organization permits hosting and embedding it.
Work with Office files alongside your SharePoint content
WPS Office is a free, lightweight alternative for creating and editing office files. Its familiar interface and Microsoft Office format compatibility make it easy to move existing documents into your workflow. SharePoint audio embedding remains a SharePoint task.

Frequently Asked Questions
Can I paste an HTML audio tag directly into the SharePoint Embed web part?
The standard Embed web part expects a supported URL or iframe embed code, not a standalone audio tag. Host the audio element on an approved page and embed that page, or ask an administrator about an approved custom web part.
Why does the embedded MP3 download instead of play?
The file source may be configured to force downloads rather than serve the MP3 for browser playback. Test the direct file URL in a browser and ask the file or hosting administrator to check how it is served.
Why can I play the audio but other page visitors cannot?
Visitors need permission to access the MP3 and, if applicable, the hosted player page. Check the file's sharing settings in OneDrive or the SharePoint document library and test with an intended viewer's account.
What should I do if SharePoint blocks the iframe?
Ask a SharePoint administrator to review the site's HTML Field Security or embedding settings for the source domain. The source server must also allow its content to be framed; changing SharePoint settings alone cannot override a server restriction.




