Skip to content
yt-dlp

yt-dlp Command Generator

Pick the options you want and get the exact yt-dlp command, correctly quoted for your shell. No flags to memorise, nothing to install here, no upload.

Optional. Leave it empty and the command ends with URL for you to fill in.

Your command

yt-dlp URL
Basics

Audio-only extracts the soundtrack and drops the video stream.

Video and quality

Caps the height. yt-dlp still picks the best stream at or below it.

The file type separate video and audio streams are merged into.

Advanced options (3)

Overrides the quality dropdown. For people who already know the format syntax.

Repackages the streams without re-encoding. Fast and lossless.

Re-encodes the video. Slow and lossy — only when remuxing will not do.

Audio

The file the audio is converted to.

VBR gives the best size-to-quality ratio; fixed bitrates are more predictable.

Subtitles

Embedding puts them inside the video; saving writes a separate .srt next to it.

Comma separated. Use all for every available language.

Playlists and channels

What to do when the URL belongs to both a video and a playlist.

Ranges and lists both work, for example 1-10,15 or -5::2 for every second item from the end.

Advanced options (1)

Records what has been downloaded so re-running skips it. The way to keep a channel in sync.

Sections and chapters
Advanced options (2)

A time range like *00:01:30-00:03:00, or a chapter name. The leading asterisk means it is a timestamp.

Metadata and artwork
Advanced options (3)
SponsorBlock

Cuts community-marked segments out of the file using SponsorBlock data.

Advanced options (1)

Keeps the segments but marks them, so you can skip them yourself.

Files and folders

Field names go in %(...)s. Slashes create folders.

Advanced options (4)

Where files are written. Combine with the template above for subfolders.

Maximum file name length in characters.

Filters
Advanced options (5)

YYYYMMDD, or a relative date like now-1month.

YYYYMMDD, or a relative date.

Skips anything smaller. Accepts 5M, 500K and similar.

Skips anything larger.

Number of files to download before stopping.

Network

For example 2M or 500K. Useful when you need the rest of your bandwidth.

Advanced options (5)

Speeds up fragmented streams. Four is a sensible starting point.

How many times to retry a failed piece. infinite is allowed.

HTTP, HTTPS or SOCKS proxy URL.

Makes requests look like a real browser. The usual fix for sudden 403 errors.

Login and cookies

Reads your logged-in session directly. Needed for private, age-restricted or members-only content.

Advanced options (1)

A Netscape-format cookies.txt exported from your browser.

Live streams
Advanced options (2)

Polls until a scheduled stream begins. MIN-MAX seconds between checks.

Workarounds
Advanced options (3)

Deprecated in favour of --add-headers. Kept because plenty of older guides still use it.

Deprecated in favour of --add-headers.

Site-specific switches, for example youtube:player_client=web.

Output and debugging
Advanced options (2)
Reset

Why use a command generator?

yt-dlp has several hundred options and the useful ones rarely work alone: asking for 1080p means combining a format selector with a merge container, and embedding subtitles quietly requires ffmpeg. This page encodes those combinations so you get a command that runs the first time.

Every option here maps to a real flag, shown next to it, and the reference page documents all of them against a stated yt-dlp version. Nothing is hidden behind a paid tier.

How to build a yt-dlp command

  1. Paste the address of the video, playlist or channel you want into the URL box.
  2. Pick quality, container, audio format, subtitles and anything else you need. The command updates as you go.
  3. Switch to your shell, copy the command and run it in a terminal where yt-dlp is installed.

Frequently asked questions

What is a yt-dlp command generator?
It is a form that writes the command for you. You choose what you want in plain language and it produces the exact yt-dlp line, with the flags in the right order and quoted correctly for your shell.
Do I need to install anything to use this page?
Not to use the page — it only writes text. To run the command you need yt-dlp installed, and ffmpeg for anything that merges, converts or embeds. The install guide covers both.
Which yt-dlp options can I generate?
Everything most people need: format and quality, audio extraction, subtitles, playlists, sections, SponsorBlock, metadata, file naming, filters, network settings, cookies, live streams and the common workarounds. The reference page lists them all.
Do the commands work with youtube-dl too?
Mostly. yt-dlp keeps youtube-dl's option names, so simple commands are interchangeable. Newer options such as --download-sections, --sponsorblock-remove and --impersonate exist only in yt-dlp.
Is any of this behind a paywall?
No. Every option, preset and page is free. Nothing is uploaded, no account exists, and no part of the generator is reserved for a paid tier.