Guide

How to use yt-dlp on Windows

How to use yt-dlp on Windows

You use yt-dlp on Windows by installing the tool through winget or pip, opening PowerShell, and running a command with the video URL. yt-dlp fetches the stream and saves an MP4—or MP3 if you add ffmpeg and audio flags. It's the most flexible YouTube downloader on PC, but it has a learning curve. If you only need one file and don't want to touch the command line, paste the link into our YouTube to MP4 converter instead.

How to use yt-dlp on Windows PowerShell to download YouTube videos

What you need before starting

RequirementWhy
Windows 10 or 11PowerShell built in
Internet connectionyt-dlp pulls streams live
yt-dlp binaryThe downloader itself
ffmpeg (for MP3/merged video)Combines audio+video tracks
Video URLPublic YouTube link to test

Install yt-dlp only from GitHub or winget—never random "YouTube downloader" portals that bundle adware.

Step 1: Install yt-dlp on Windows

Option A — winget (easiest for most people):

  1. Open PowerShell from the Start menu.
  2. Run:
winget install yt-dlp
  1. Close PowerShell, reopen it.
  2. Verify: yt-dlp --version

Option B — pip (if you have Python):

pip install yt-dlp

Option C — manual .exe:

  1. Go to GitHub → yt-dlp → Releases.
  2. Download yt-dlp.exe.
  3. Put it in a folder like C:\Tools\yt-dlp\.
  4. Add that folder to your PATH (Settings → System → About → Advanced system settings → Environment Variables).

See is yt-dlp safe for why source matters.

Step 2: Install ffmpeg on Windows

Without ffmpeg, yt-dlp might download video-only or audio-only files separately.

winget install ffmpeg

Or download from ffmpeg.org, extract, and add the bin folder to PATH.

Test: ffmpeg -version

Step 3: Download your first video

Copy a YouTube URL. In PowerShell:

yt-dlp "https://www.youtube.com/watch?v=VIDEO_ID"

Default output lands in your current directory—usually C:\Users\YourName\ if you opened PowerShell fresh. The file name comes from the video title.

Save to Downloads explicitly:

cd $env:USERPROFILE\Downloads
yt-dlp "URL"

More on paths in where does yt-dlp download to.

Step 4: Download MP3 audio only

yt-dlp -x --audio-format mp3 --audio-quality 192K "URL"

-x extracts audio. --audio-quality 192K is a good music default; use 128K for speech.

A 4-minute song at 192 kbps ≈ 5.5 MB on disk.

Useful Windows commands

GoalCommand
Best MP4 qualityyt-dlp -f "bv*+ba/b" "URL"
720p cap (smaller file)yt-dlp -f "bv[height<=720]+ba/b" "URL"
Whole playlistyt-dlp --yes-playlist "PLAYLIST_URL"
Custom filenameyt-dlp -o "%(title)s.%(ext)s" "URL"
Update yt-dlpyt-dlp -U

When downloads fail with HTTP 403, update yt-dlp first.

PowerShell tips for beginners

  • Paste URL in quotes& characters in URLs break unquoted strings.
  • Right-click pastes in older PowerShell; Windows Terminal uses Ctrl+V.
  • Run as normal user — admin isn't required for Downloads folder saves.
  • Windows Defender may scan new .exe downloads from GitHub once—that's normal.

When NOT to use yt-dlp on Windows

  • Work laptop with IT lockdown — pip/winget blocked.
  • One 3-minute clip — opening PowerShell is slower than a browser tab.
  • Phone workflow — yt-dlp is desktop territory.

For quick audio: YouTube to MP3 in Edge or Chrome. Free, no PATH configuration.

Troubleshooting

"yt-dlp is not recognized" — Not on PATH. Reopen terminal after install or use full path to yt-dlp.exe.

Video downloads, no audio — Install ffmpeg. Retry with -f "bv*+ba/b".

"Sign in to confirm you're not a bot" — Update yt-dlp; try --cookies-from-browser chrome while logged into YouTube in Chrome.

File saved somewhere unknown — PowerShell's current folder. Run pwd before downloading or cd to Downloads first.

Legal note

yt-dlp is legal software. Downloading copyrighted YouTube content without permission violates YouTube's Terms. Use it for your videos, Creative Commons uploads, or content you're allowed to archive.

Conclusion

Install yt-dlp with winget, add ffmpeg, open PowerShell, paste a quoted URL. You get full control over quality and playlists. For occasional saves, skip the setup and use a web converter.

Fastest path for one file: YouTube to MP3 converter — no PowerShell required.

Frequently asked questions

Is yt-dlp on Windows safe?

Yes from winget, pip, or GitHub Releases. Avoid third-party installer bundles.

Do I need Python to use yt-dlp on Windows?

No if you use winget or the standalone `.exe`. Python is only required for pip installs.

Can I use Command Prompt instead of PowerShell?

Yes. Same commands work in `cmd.exe`.

Where does the MP4 go on Windows?

Whatever folder PowerShell was in when you ran the command—often your user folder unless you `cd` elsewhere.

What's easier than yt-dlp for one video?

Browser converter: paste URL at YouTube to MP4, click download.

Related guides