Usage
How to Use yt-dlp: A Practical Guide
Learn how to use yt-dlp: download videos, pick formats and quality, extract MP3 audio, grab playlists and channels, set output filenames, and use a config file.
Updated 2026-06-13
yt-dlp is the most capable downloader available, but you only need a handful of patterns for 95% of tasks. This guide walks through them in order.
Download a video
yt-dlp "<URL>"yt-dlp picks the best video+audio and merges them. See yt-dlp download video.
See what formats are available
yt-dlp -F "<URL>"This lists every format with an ID, resolution, codec and size. Pick one with -f:
yt-dlp -f 137+140 "<URL>" # 1080p video + m4a audioControl quality
Use format sorting instead of memorizing IDs — see yt-dlp download best quality:
yt-dlp -S "res:1080,fps,vcodec:av01" "<URL>"Extract audio (MP3)
yt-dlp -x --audio-format mp3 "<URL>"Full guide: yt-dlp download as MP3 and audio only.
Playlists and channels
yt-dlp "<playlist URL>"
yt-dlp -I 1:10 "<playlist URL>" # only items 1–10See download a playlist and download a channel.
Name and place your files
yt-dlp -o "%(uploader)s/%(title)s [%(id)s].%(ext)s" "<URL>"The fields in %(...)s are output template variables. See download location.
Stop retyping options: use a config file
Put your defaults in a config file and yt-dlp applies them every run.