Download YouTube Videos with Yt-dlp

5 min read
Jan 13, 2026
Tutorial

Complete guide to download YouTube videos using Yt-dlp, a powerful command-line tool that supports YouTube, TikTok, Twitter/X, Instagram Reels, and many other platforms. No more fake downloaders or viruses!

Why Yt-dlp?

When searching for ways to download YouTube videos online, you'll find many application choices, but they often don't meet expectations. I recommend using a tool called Yt-dlp, which is based on command line interface.

Avoid Fake Downloaders!

Most "Free YouTube Downloader" or "Converter" apps that appear on the first page of search engines can trick you and even install viruses on your computer. Yt-dlp is a reliable, open-source tool that won't appear on those first search pages but is the best recommendation.

Installation

Direct Downloads:

  • Windows: Download the EXE file
  • macOS: Download the macOS version
  • Linux: May require Python dependencies

Installation for macOS:

Terminal
# Method 1: Direct installation
$ curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_macos -o /usr/local/bin/yt-dlp
$ chmod a+rx /usr/local/bin/yt-dlp

# Method 2: Using Homebrew
$ brew install yt-dlp

For alternative installation methods, check the Yt-dlp GitHub page.

Basic Usage

After installation, open Terminal (macOS/Linux) or Command Prompt (Windows). First, verify installation:

Terminal
$ yt-dlp --help
# This will show all available options and arguments

Download a Video:

Terminal
$ yt-dlp https://youtu.be/iw0XzaTo5sw
# Yt-dlp will read video information and start downloading
# The video will be saved in your current directory

Supported Content

Yt-dlp doesn't just support regular YouTube videos. You can also download: YouTube Shorts, entire playlists, TikTok videos, Twitter/X posts, and Instagram Reels!

Advanced Usage

Specify Download Location:

Terminal
$ yt-dlp -P ./videos https://www.youtube.com/watch?v=iw0XzaTo5sw
# Downloads video to "videos" folder in current directory

Choose Video Format:

First, list available formats:

Terminal
$ yt-dlp -F https://youtu.be/iw0XzaTo5sw
# Lists all available formats with their codes
# Format example: 137 mp4 1920x1080 (video only)
# 140 m4a audio only (audio only)

Download Specific Format:

Terminal
# Download format with code 271 (example: 1080p webm)
$ yt-dlp -f 271 https://youtu.be/iw0XzaTo5sw

# Merge audio and video for high-resolution downloads
# Note: Requires FFmpeg installed
$ yt-dlp -f 137+140 https://youtu.be/iw0XzaTo5sw

Other Platforms

Yt-dlp supports many platforms beyond YouTube:

Terminal
# Download Twitter/X video
$ yt-dlp https://twitter.com/historyinmemes/status/1761077711177691369

# Download TikTok video
$ yt-dlp https://www.tiktok.com/@username/video/123456789

# Download Instagram Reels
$ yt-dlp https://www.instagram.com/reel/Cxample123/

# List all supported websites
$ yt-dlp --list-extractors

Quick Reference

# Basic download
yt-dlp [URL]

# List formats
yt-dlp -F [URL]

# Download specific format
yt-dlp -f [format_code] [URL]

# Download to specific folder
yt-dlp -P ./folder [URL]

# Download audio only
yt-dlp -x [URL]

# Download playlist
yt-dlp [playlist_URL]

# Set download quality
yt-dlp -f "best[height<=720]" [URL]

# Download with subtitles
yt-dlp --write-subs [URL]

Conclusion

Yt-dlp is the most powerful and reliable tool for downloading videos from YouTube and other platforms. It's command-line based, which might seem intimidating at first, but it offers unparalleled control and avoids the risks of fake downloader applications.

Remember: Always respect copyright laws and platform terms of service. Only download content you have permission to download or that falls under fair use.

Need Help?

Check the official documentation at GitHub or use yt-dlp --help for all available options. The community is very active and helpful!

0

Comments 0

Add a Comment