How to add mp3 to google drive

Audio hosting websites like SoundCloud or Anchor.fm make it easy for you to embed audio files in your web pages and blogs. Just upload your file - like an MP3 song or an audio podcast - to any of these sites and they’ll provide the HTML embed code that you can copy-paste in your web template. Simple!

If you have been storing your MP3 files inside Google Drive, you can embed the files directly from Drive without having to upload them to another website. The Drive MP3 player can be embedded on any website that supports IFRAME and the list includes Blogger, WordPress, Medium or even the new Google Sites.

Also see: Embed YouTube as Audio Player

Step 1: Upload the MP3 to Google Drive

Open drive.google.com and upload the MP3 to your Google Drive. After the file is uploaded, right-click to share and set the sharing permission to “Anyone on the Internet can find and view”.

How to add mp3 to google drive

Step 2: Generate the Player Embed Code

The Google Drive URL will have the following structure:

https://drive.google.com/file/d/1234xyz/view?usp=sharing

Now all you have to do is replace /view with /preview and wrap the modified URL in an IFRAME tag as shown below:

<iframe
  frameborder="0"
  width="400"
  height="200"
  src="https://drive.google.com/file/d/1234xyz/preview">
</iframe>

Here’s a live example. The embedded MP3 player has volume controls, play/pause buttons, seek bar, no Google branding, it works on mobile and the play also auto-detects and displays the duration of the music file.

The MP3 file is hosted on Google Drive and embedded here inside the IFRAME tag.

How to add mp3 to google drive

If you have music files on your Google Drive, you might want to play them directly without having to download them first. Music Player for Google Drive allows you to do it.

If you have some music files stored in your Google Drive, there’s no reason why you shouldn’t be able to play them everywhere and without having to download them first. Here’s how you can do just that.

Play Music Directly from Google Drive

Log in to your Google Drive, find the music file you want to play, and right-click it. In the menu that comes up, click “Open with” and then the “Connect more apps” option.

How to add mp3 to google drive

Now, search for Music Player for Google Drive and connect it to your account in the window that comes up. Don’t forget to set it to be used by default. That way, you won’t need to go through these steps each time.

How to add mp3 to google drive

Now, right-click the MP3 file you want to play, go to Open with > Music Player for Google Drive and allow access to your account when prompted. Note that it also supports MP4, OGG, WAV, and AAC music files.

How to add mp3 to google drive

Your song will play without a problem, and from now on, it will do so directly. It’s also worth noting that a playlist will automatically be created if you select more than one track. You can always click “Add audio files from Google Drive” to add more songs to the playlist.

How to add mp3 to google drive

How to add mp3 to google drive