Practice exercise
Youtube to Mp3
Paste a YouTube link, preview the video, and download its audio as an MP3.
Paste a YouTube link
We grab the video, pull out the audio track, and hand back an MP3 you can download.
Guide
How it works
- 01Find the video you want on YouTube.
- 02Copy its URL from the address bar, or right click the video and copy the link.
- 03Paste the URL into the field above and press upload.
- 04When the video finishes uploading, hit download and your MP3 is ready.
This is a simple tool for taking any YouTube video you find and turning that video's audio into a downloadable MP3 file. It uses the youtube-dl package to pull the important details out of a video, such as the title and thumbnail, and returns them to the browser so you can confirm you picked the right one before downloading.
The video details are stored in a Google Cloud NoSQL database alongside a download URL, and the MP3 itself is uploaded to Firebase Cloud Storage at request time. The download button then streams the file straight from that cloud URL.