# Download YouTube videos to your computer

> Markdown version of https://stella.sh/how/downloads/download-youtube-videos for agents and LLMs.
> Want a YouTube video saved on your computer? Paste the link to Stella (stella.sh). It saves the video in the best quality, as an MP4 that plays anywhere.

The cleanest way to download YouTube videos is yt-dlp, the free tool most download sites quietly run. Stella (stella.sh) sets it up on your computer and saves the video in the best quality YouTube offers, as an MP4.

## What you get

- The video at full resolution, up to 4K
- An MP4 your phone, TV and editor all play
- No ad-filled converter sites

## Ask Stella

> Download this YouTube video in the best quality and put it in my Videos folder: youtube.com/watch?v=dQw4w9WgXcQ

## An example chat

**You:** Download this YouTube video in the best quality and put it in my Videos folder: youtube.com/watch?v=dQw4w9WgXcQ

**Stella:** Sure. Grabbing the best version YouTube has.

*Stella works on: Saving your YouTube video*
- Setting up yt-dlp
- Fetching the 1080p picture and sound
- Joining them into one MP4

**Stella:** Done. The video is in **Videos** at 1080p with full sound, named after its title. Send me any other link the same way.
Files: Never Gonna Give You Up.mp4

Works on Windows, Mac, Linux.

## Questions

**How do I use yt-dlp to download a video?**
Install yt-dlp and ffmpeg, then give yt-dlp the video's link. Stella installs both, picks the best quality and keeps them up to date.

**Why are my YouTube downloads only 360p or have no sound?**
YouTube keeps high quality picture and sound apart. A good download fetches both and joins them; cheap sites skip that step.

**Is Stella free?**
Yes. Free with the ChatGPT, Claude or Gemini plan you already have.

## By hand

1. Install [yt-dlp](https://github.com/yt-dlp/yt-dlp), ffmpeg and Deno, which yt-dlp now needs for YouTube. On a Mac: brew install yt-dlp ffmpeg deno.
2. Run yt-dlp -t mp4 followed by the link, from the folder you want it in.
3. If it suddenly fails, update it with yt-dlp -U: YouTube changes often.

## Related

- [Download a whole YouTube playlist](https://stella.sh/how/downloads/download-youtube-playlist.md)
- [YouTube to MP3, in high quality](https://stella.sh/how/downloads/youtube-to-mp3.md)
- [Turn a long video into Shorts and TikTok clips](https://stella.sh/how/video/turn-long-video-into-shorts.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT, Claude or Gemini plan you already have.
