ytdlp.org
On this page

Command guide

Best yt-dlp commands for video, audio, playlists, and subtitles

Most people do not need a giant wall of flags. They need a short list of commands that solve common yt-dlp tasks reliably. The point of this page is practical coverage, not trying to turn the docs into a brain dump.

How to use this page

Start with the command closest to your actual task. If it works, stop there. If you need more control, follow the linked deeper guide instead of stacking random flags from different tutorials.

Download the best available quality

yt-dlp "URL"

Default yt-dlp behavior is already strong. Start simple before forcing formats you may not need.

Download audio only and convert to MP3

yt-dlp -x --audio-format mp3 "URL"

Requires ffmpeg. If conversion fails, check ffmpeg before touching anything else.

Download a playlist

yt-dlp "PLAYLIST_URL"

Fine for a first pass. Add output templates if you want cleaner filenames and folders.

List available formats

yt-dlp -F "URL"

Do this before choosing a specific format. Guessing format IDs is one of the easiest ways to waste time.

Download subtitles only

yt-dlp --write-subs --sub-langs "en.*" --skip-download "URL"

Useful when you need caption files without downloading the actual media.

Use a custom output filename

yt-dlp -o "%(title)s.%(ext)s" "URL"

This matters a lot once you start downloading more than one file at a time. See the output template guide for folders, numbering, and date formatting.

Cap the resolution (e.g. 1080p)

yt-dlp -S "res:1080" "URL"

-S sorts formats by preference and picks the best that fits. This grabs the highest quality up to 1080p instead of pulling a 4K file you did not want.

Download only part of a video

yt-dlp --download-sections "*00:01:00-00:02:00" "URL"

Grabs just the 1:00-2:00 clip. Needs ffmpeg. Use *HH:MM:SS-HH:MM:SS, or *START-inf to go to the end.

Resume an interrupted download

yt-dlp -c "URL"

-c (--continue) picks up a partial file where it stopped instead of starting over. yt-dlp resumes by default, but -c makes it explicit in scripts.

Limit download speed

yt-dlp -r 2M "URL"

Caps the rate at 2 MB/s. Useful on a shared connection, and it makes your traffic look less like a scraper hammering the server.

Embed thumbnail and metadata

yt-dlp --embed-thumbnail --embed-metadata "URL"

Writes the cover art and title/uploader/date into the file itself, so it looks right in a media library instead of a bare filename.

Use your browser's cookies

yt-dlp --cookies-from-browser chrome "URL"

Pulls cookies straight from your logged-in browser for members-only or age-gated videos. Swap chrome for firefox, edge, brave, etc.

Update yt-dlp

yt-dlp -U

Sites change constantly and old builds break first. If a download suddenly fails, update before debugging anything else.

The biggest command mistake

People often combine a bunch of flags before confirming the simple version works. That usually makes debugging harder, not smarter. Get the base command working first, then add the minimum extra flag you actually need.

For builders

Using yt-dlp inside an app or script?

Paste a link to see what a managed media-import API returns — no install, no signup.

Building this into an app? See the API your backend calls instead