node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org ยป



A terminal program that downloads YouTube videos as MP3 files using


The easiest way to use yt2mp3 is to install it globally with:

npm install -g yt2mp3

by using this yt2mp3 will be installed in to your bin path.


Pass any video ids or youtube urls as arguments to yt2mp3:

yt2mp3 My2FRPA3Gf8

The videos will be saved to the current working directory using the youtube title as filename.