How to Convert MP3 File to Website Link

Using basic HTML, you can create a link a single MP3 file or a complete playlist on your web server. For a single MP3 file, the link can point directly to the location of the MP3 file. To link a playlist of MP3 files, you will first create an M3U document that contains the location of each file in the playlist. The HTML link will point to the M3U file.

Things You'll Need

  • Text editing program
  • Web server
Show More

Instructions

  1. Link to MP3 File

    • 1

      Open a text editor such as Windows Notepad.

    • 2

      Create the HTML document as you normally would.

    • 3

      Type the line "<a href="audio/Example.mp3">Play Audio</a> where you want the link to the MP3 file to appear.

    • 4

      Save and close the document.

    • 5

      Place the MP3 file in a directory called "audio" on your web server.

    • 6

      Place the HTML document on your web server.

    Link to M3U File

    • 7

      Open a text editor.

    • 8

      Create an M3U document which contains the direct link to each MP3 file (one per line) in your playlist. An example line in this file would look like:
      http://www.yoursite.com/audio/Example.mp3

    • 9

      Save the file as "music.m3u."

    • 10

      Open another blank text file.

    • 11

      Create the HTML document as you normally would.

    • 12

      Type the line "<a href="audio/music.m3u" type="audio/x-mpegurl">Playlist</a> where you want the link to the playlist to appear.

    • 13

      Save and close the HTML document.

    • 14

      Place the MP3 files and the M3U document in a directory called "audio" on your web server.

    • 15

      Place the HTML document on your web server.

Related Searches:

References

Comments

You May Also Like

Related Ads

Featured