YouTube to MP3 Converter 🎵
A lightweight web application to convert YouTube videos to MP3 audio files using Flask, yt-dlp, and FFmpeg.
- Input a YouTube video URL
- Converts and downloads the audio as an MP3 file
- Simple and responsive HTML front-end (no React)
- Uses
yt-dlpandffmpegfor fast, high-quality conversions
- Python 3.7+
yt-dlpffmpeg- Flask
- Clone the repo
git clone https://github.com/yourusername/yt2mp3-flask.git
cd yt2mp3-flask-
Install dependencies
pip install flask yt-dlp
-
Ensure ffmpeg is installed and added to your PATH
- Go to url : https://www.gyan.dev/ffmpeg/builds/
- Download : ffmpeg-release-essentials.zip from 'release builds' section
- extract the folder
- add the "bin" path to 'path' of environment variables
- run
ffmpeg -versionandffprobe -version - your good to proceed is no error is found
4.Run the Flask server
python server.py5.Access the app Visit: http://127.0.0.1:3000/ in your browser