Command guide
How to extract audio as MP3 with yt-dlp
This is one of the most common yt-dlp use cases. The core command is simple, but people usually get tripped up by two things: ffmpeg is missing, or they expect MP3 conversion to create better audio than the source actually contains.
Quick answer
yt-dlp -x --audio-format mp3 "URL"That tells yt-dlp to extract audio and convert it to MP3. If it fails, ffmpeg is the first thing to check.
Why ffmpeg matters
yt-dlp can fetch media on its own, but extraction and conversion rely on ffmpeg. If ffmpeg is missing, the command may download media and still fail on the conversion step.
ffmpeg -versionQuality reality check
Converting to MP3 does not magically improve the source. If the original audio is limited, your MP3 will still be limited. The point of this command is compatibility and convenience, not creating higher quality than the source has.
Most common failures
- • ffmpeg not installed
- • ffmpeg installed, but not on PATH
- • confusion between extraction and quality improvement
- • output file goes somewhere unexpected because no output template was set
Practical recommendation
If you do this often, pair the MP3 command with an output template so your files land in predictable places instead of piling up in your current directory.
Next step
Repeating this workflow often?
ytdlp.org is for getting yt-dlp working. When your process becomes repeatable, Importly is the better fit for turning scattered commands into something more organized and reusable.