Sometimes you want just the audio from a YouTube video—maybe a podcast, a live concert, or a lecture—to listen offline. This guide shows you how to convert YouTube to MP3 quickly and safely using free tools. With minimal effort, you can set up this local converter in just 5 minutes!

Tools Used

  • yt-dlp is a command-line tool that lets you download videos or audio from YouTube and other websites. It’s a more actively maintained fork of youtube-dl.
  • FFmpeg is a multimedia framework used by yt-dlp to convert audio and video formats — in this case, to extract MP3 audio.

What You’ll Get:

Convert YouTube to MP3 script demo

Click image to play a demo of the script in action.

Setup Guide

Follow these steps to get your local YouTube-to-MP3 converter working:

  1. Create a folder C:\tools — this will be your central place for all the needed tools.

  2. Download yt-dlp

  3. Download FFmpeg

  4. Get the Batch Script

    • Download: convert-mp3.bat

    • Or manually create it:
      Open Notepad and paste:

      @echo off
      set /p URL="Enter YouTube URL: "
      yt-dlp -x --audio-format mp3 -o "%UserProfile%\Downloads\%%(title)s.%%(ext)s" %URL%
      pause
      
    • Save it as convert-mp3.bat in C:\tools

  5. Create a Desktop Shortcut

    • Right-click on convert-mp3.bat
    • Select Send to → Desktop (create shortcut)
  6. Convert a YouTube Video

    • Double-click the desktop icon
    • Paste the YouTube link
    • Hit Enter and let the tool download MP3 from YouTube and save it to your Downloads folder! 🎉 This is the moment we’ve been working so hard for!

This guide is provided for educational purposes only. Downloading or converting YouTube videos may violate YouTube’s Terms of Service and copyright law if you don’t own the content or have permission from the rights holder. Always ensure you have the right to download and use the audio (e.g., your own uploads, public-domain or Creative Commons–licensed materials) and comply with all applicable laws and platform policies.


Conclusion

This is the best way to convert YouTube videos to MP3 locally — no sketchy websites, no browser extensions, just safe and fast YouTube MP3 conversion from your desktop. Just remember to use it responsibly and legally.