# How to Download a YouTube Playlist as MP3 in File Manager

If you want to **download an entire YouTube playlist as MP3 files** and save them in your **File Manager**, follow this step-by-step guide using `yt-dlp` and `FFmpeg`.

---

## **🔧 Requirements**

* Windows OS
    
* **Python** (for installing `yt-dlp`)
    
* **yt-dlp** (YouTube video downloader)
    
* **FFmpeg** (for converting audio to MP3)
    

---

## **📌 Step 1: Install Dependencies**

### **1️⃣ Install Python (if not installed)**

Check if Python is installed by running:

```bash
python --version
```

If not installed, download and install it from [Python.org](https://www.python.org/downloads/).

### **2️⃣ Install yt-dlp**

Open **Command Prompt (cmd)** and run:

```bash
pip install yt-dlp
```

Verify installation:

```bash
yt-dlp --version
```

### **3️⃣ Install FFmpeg (Required for MP3 Conversion)**

1. Go to [Gyan.dev FFmpeg Builds](https://www.gyan.dev/ffmpeg/builds/).
    
2. Download the **"ffmpeg-git-full.7z"** file.
    
3. Extract it and rename the folder to `ffmpeg`.
    
4. Move the `ffmpeg` folder to `C:\` so the full path is: `C:\ffmpeg\bin\`
    
5. Add `C:\ffmpeg\bin\` to the **system PATH**:
    
    * Search "Environment Variables" → Edit system environment variables → Edit **Path** → Add `C:\ffmpeg\bin\`
        
6. Verify by running:
    
    ```bash
    ffmpeg -version
    ```
    

---

## **🎵 Step 2: Download YouTube Playlist as MP3**

Now, use this command to **download and convert an entire YouTube playlist** to MP3:

```bash
yt-dlp -f bestaudio --extract-audio --audio-format mp3 --audio-quality 320K --embed-metadata --embed-thumbnail -o "%(playlist_title)s/%(title)s.%(ext)s" "PASTE_YOUR_PLAYLIST_URL_HERE"
```

### **🔹 Explanation of the Command:**

✅ `-f bestaudio` → Downloads the best audio quality  
✅ `--extract-audio` → Extracts audio from the video  
✅ `--audio-format mp3` → Converts it to **MP3**  
✅ `--audio-quality 320K` → Sets **320Kbps** quality  
✅ `--embed-metadata` → Adds song metadata  
✅ `--embed-thumbnail` → Adds album art  
✅ `-o "%(playlist_title)s/%(title)s.%(ext)s"` → Saves files inside a folder with the playlist name

---

## **📂 Step 3: Locate Your Downloaded Files**

* By default, the **MP3 files** will be stored in your **current directory** under a folder with the **playlist name**.
    
* To **save them in a specific folder**, navigate to that folder before running the command. Example:
    
    ```bash
    cd C:\Users\YourUsername\Music
    ```
    

---

## **❌ How to Stop the Download?**

Press:

```bash
CTRL + C
```

to cancel the ongoing download.

---

## **🎉 Conclusion**

Now, you have successfully: ✅ Installed **yt-dlp** & **FFmpeg**  
✅ Downloaded a **YouTube playlist as MP3**  
✅ Saved files inside **File Manager**  
✅ Embedded **metadata & thumbnails**

Enjoy your **offline music collection**! 🎶🚀 Let me know if you have any questions! 😊
