A sleek web-based YouTube converter built with Node.js, Express, yt-dlp, and a clean HTML/CSS frontend.
Supports MP3 and MP4 download – even for age-restricted content.
🔗 https://converter.bbastian.xyz
- ✅ Download YouTube videos as MP4 or MP3
- 🔒 Handles age-restricted videos using cookies
- 🧠 Smart conversion using
yt-dlp
andffmpeg
- 🖥️ Clean and responsive UI
- 🌍 Self-hosted – full control, no ads, no trackers
- Node.js (v18+)
- ffmpeg (
sudo apt install ffmpeg
) yt-dlp
viayoutube-dl-exec
- Chrome/Firefox extension: Get cookies.txt
git clone https://github.com/bastian-js/youtube-converter.git
cd youtube-converter
npm install
chmod +x setup.sh
./setup.sh
Start the server:
node server.js
- Create a YouTube account (18+)
- Log in on youtube.com
- Open the video to make sure it's accessible
- Use Get cookies.txt to export cookies
- Save it as
cookies.txt
in the project folder
This project is licensed under a custom non-commercial license.
You are allowed to:
- ✅ Use, modify, and host it privately or publicly
- ❌ Not allowed to use it commercially or claim it as your own
Full license details: LICENSE
Made with ❤️ by bastian-js