{"id":16872,"date":"2024-12-06T07:00:19","date_gmt":"2024-12-06T07:00:19","guid":{"rendered":"https:\/\/www.sysgeeker.com\/blog\/?p=16872"},"modified":"2026-09-23T07:02:20","modified_gmt":"2026-09-23T07:02:20","slug":"save-youtube-videos","status":"publish","type":"post","link":"https:\/\/www.sysgeeker.com\/blog\/save-youtube-videos.html","title":{"rendered":"How to Save YouTube Videos on Mac using Terminal"},"content":{"rendered":"<p>If you want to save a YouTube video to watch offline on your Mac, Terminal gives you a way to do it without using a browser-based downloader. You&#8217;ll install a command-line tool called <strong>yt-dlp<\/strong>, then paste in the video&#8217;s URL. Download videos only when you have permission to do so and the platform&#8217;s terms allow it.<\/p>\n<h3>Step 1: Install Homebrew (If You Don&#8217;t Have It)<\/h3>\n<p>Homebrew is a package manager for macOS. If it&#8217;s already installed, skip to Step 2. Otherwise, open <strong>Terminal<\/strong> from Applications \u2192 Utilities and run:<\/p>\n<pre><code>\/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)\"<\/code><\/pre>\n<p>Follow the prompts in Terminal. When installation finishes, follow any instructions Homebrew displays for adding <code>brew<\/code> to your shell path.<\/p>\n<h3>Step 2: Install yt-dlp<\/h3>\n<p>Install yt-dlp with Homebrew. Install FFmpeg as well if you want to merge separate video and audio streams or convert audio to MP3:<\/p>\n<pre><code>brew install yt-dlp ffmpeg<\/code><\/pre>\n<p>yt-dlp is a maintained command-line downloader based on youtube-dl. After installation, you can check that it&#8217;s available by running <code>yt-dlp --version<\/code>.<\/p>\n<h3>Step 3: Download a Video<\/h3>\n<ol>\n<li>Find the YouTube video you want to save and copy its URL.<\/li>\n<li>In Terminal, move to the folder where you&#8217;d like the file saved. For example: <code>cd ~\/Downloads<\/code>.<\/li>\n<li>Run yt-dlp with the URL in quotes:<\/li>\n<\/ol>\n<pre><code>yt-dlp \"https:\/\/www.youtube.com\/watch?v=VIDEO_ID\"<\/code><\/pre>\n<p>Replace <code>VIDEO_ID<\/code> with a real video ID, or paste the complete URL between the quotation marks. The file is saved in the folder you selected. The output format can vary according to which video and audio formats are available.<\/p>\n<h3>Step 4: Choose Quality or Extract MP3 Audio<\/h3>\n<p>To see which formats a video offers, run:<\/p>\n<pre><code>yt-dlp -F \"https:\/\/www.youtube.com\/watch?v=VIDEO_ID\"<\/code><\/pre>\n<p>Then use one of the listed format IDs if you need a specific format:<\/p>\n<pre><code>yt-dlp -f FORMAT_ID \"https:\/\/www.youtube.com\/watch?v=VIDEO_ID\"<\/code><\/pre>\n<p>Replace <code>FORMAT_ID<\/code> with an ID from that video&#8217;s list. Format IDs can differ between videos, so don&#8217;t assume one number always means 720p or MP4.<\/p>\n<p>If you only want the audio as an MP3 file, use:<\/p>\n<pre><code>yt-dlp -x --audio-format mp3 \"https:\/\/www.youtube.com\/watch?v=VIDEO_ID\"<\/code><\/pre>\n<p>FFmpeg handles the audio conversion. If you&#8217;re exploring audio-focused options, you can also take a look at <a target=\"_blank\" href=\"https:\/\/www.pdanews.pl\/\">PDANews YouTube to mp3 converter<\/a>.<\/p>\n<h3>Troubleshooting Tips<\/h3>\n<ul>\n<li><strong>\u201cCommand not found\u201d:<\/strong> If <code>brew<\/code> isn&#8217;t recognized, follow the shell setup instructions shown at the end of the Homebrew installation. If <code>yt-dlp<\/code> isn&#8217;t recognized, check that it installed with <code>brew list yt-dlp<\/code>.<\/li>\n<li><strong>A download stops working:<\/strong> Update your Homebrew packages with <code>brew update<\/code> and <code>brew upgrade yt-dlp<\/code>. YouTube may change how videos are delivered, so a tool update may help.<\/li>\n<li><strong>Audio conversion fails:<\/strong> Check that FFmpeg is installed with <code>ffmpeg -version<\/code>. If it isn&#8217;t, run <code>brew install ffmpeg<\/code>.<\/li>\n<li><strong>Video unavailable:<\/strong> A deleted, private, or otherwise inaccessible video may not be downloadable.<\/li>\n<\/ul>\n<h3>Wrapping It Up<\/h3>\n<p>Once yt-dlp and FFmpeg are installed, you can save a video with one Terminal command, inspect its available formats, or extract its audio as MP3. Keep the URL in quotes, especially when it includes additional parameters, and check your Downloads folder when the command finishes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to save a YouTube video to watch offline on your Mac, Terminal gives you a way to do it without using a browser-based downloader. You&#8217;ll install a command-line tool called yt-dlp, then paste in the video&#8217;s URL. Download videos only when you have permission to do so and the platform&#8217;s terms allow [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Save YouTube Videos on Mac using Terminal<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sysgeeker.com\/blog\/save-youtube-videos.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Save YouTube Videos on Mac using Terminal\" \/>\n<meta property=\"og:description\" content=\"If you want to save a YouTube video to watch offline on your Mac, Terminal gives you a way to do it without using a browser-based downloader. You&#8217;ll install a command-line tool called yt-dlp, then paste in the video&#8217;s URL. Download videos only when you have permission to do so and the platform&#8217;s terms allow [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sysgeeker.com\/blog\/save-youtube-videos.html\" \/>\n<meta property=\"og:site_name\" content=\"SYSGEEKER\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-06T07:00:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-09-23T07:02:20+00:00\" \/>\n<meta name=\"author\" content=\"Kaplan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kaplan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.sysgeeker.com\/blog\/#organization\",\"name\":\"SYSGEEKER\",\"url\":\"https:\/\/www.sysgeeker.com\/blog\/\",\"sameAs\":[],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sysgeeker.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.sysgeeker.com\/blog\/wp-content\/uploads\/2024\/03\/logo-1.png\",\"contentUrl\":\"https:\/\/www.sysgeeker.com\/blog\/wp-content\/uploads\/2024\/03\/logo-1.png\",\"width\":27,\"height\":32,\"caption\":\"SYSGEEKER\"},\"image\":{\"@id\":\"https:\/\/www.sysgeeker.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sysgeeker.com\/blog\/#website\",\"url\":\"https:\/\/www.sysgeeker.com\/blog\/\",\"name\":\"SYSGEEKER\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.sysgeeker.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sysgeeker.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sysgeeker.com\/blog\/save-youtube-videos.html\",\"url\":\"https:\/\/www.sysgeeker.com\/blog\/save-youtube-videos.html\",\"name\":\"How to Save YouTube Videos on Mac using Terminal\",\"isPartOf\":{\"@id\":\"https:\/\/www.sysgeeker.com\/blog\/#website\"},\"datePublished\":\"2024-12-06T07:00:19+00:00\",\"dateModified\":\"2026-09-23T07:02:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.sysgeeker.com\/blog\/save-youtube-videos.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sysgeeker.com\/blog\/save-youtube-videos.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sysgeeker.com\/blog\/save-youtube-videos.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sysgeeker.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Save YouTube Videos on Mac using Terminal\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/www.sysgeeker.com\/blog\/save-youtube-videos.html#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.sysgeeker.com\/blog\/save-youtube-videos.html\"},\"author\":{\"name\":\"Kaplan\",\"@id\":\"https:\/\/www.sysgeeker.com\/blog\/#\/schema\/person\/f90073b50eba90f96d770262d49e7212\"},\"headline\":\"How to Save YouTube Videos on Mac using Terminal\",\"datePublished\":\"2024-12-06T07:00:19+00:00\",\"dateModified\":\"2026-09-23T07:02:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.sysgeeker.com\/blog\/save-youtube-videos.html\"},\"wordCount\":446,\"publisher\":{\"@id\":\"https:\/\/www.sysgeeker.com\/blog\/#organization\"},\"articleSection\":[\"How-To\"],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.sysgeeker.com\/blog\/#\/schema\/person\/f90073b50eba90f96d770262d49e7212\",\"name\":\"Kaplan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sysgeeker.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/791ac7193b8b0515d4fa1839ad6e2668?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/791ac7193b8b0515d4fa1839ad6e2668?s=96&d=mm&r=g\",\"caption\":\"Kaplan\"},\"sameAs\":[\"https:\/\/www.sysgeeker.com\/blog\"],\"url\":\"https:\/\/www.sysgeeker.com\/blog\/author\/sysgeeker\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Save YouTube Videos on Mac using Terminal","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sysgeeker.com\/blog\/save-youtube-videos.html","og_locale":"en_US","og_type":"article","og_title":"How to Save YouTube Videos on Mac using Terminal","og_description":"If you want to save a YouTube video to watch offline on your Mac, Terminal gives you a way to do it without using a browser-based downloader. You&#8217;ll install a command-line tool called yt-dlp, then paste in the video&#8217;s URL. Download videos only when you have permission to do so and the platform&#8217;s terms allow [&hellip;]","og_url":"https:\/\/www.sysgeeker.com\/blog\/save-youtube-videos.html","og_site_name":"SYSGEEKER","article_published_time":"2024-12-06T07:00:19+00:00","article_modified_time":"2026-09-23T07:02:20+00:00","author":"Kaplan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kaplan","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/www.sysgeeker.com\/blog\/#organization","name":"SYSGEEKER","url":"https:\/\/www.sysgeeker.com\/blog\/","sameAs":[],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sysgeeker.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sysgeeker.com\/blog\/wp-content\/uploads\/2024\/03\/logo-1.png","contentUrl":"https:\/\/www.sysgeeker.com\/blog\/wp-content\/uploads\/2024\/03\/logo-1.png","width":27,"height":32,"caption":"SYSGEEKER"},"image":{"@id":"https:\/\/www.sysgeeker.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/www.sysgeeker.com\/blog\/#website","url":"https:\/\/www.sysgeeker.com\/blog\/","name":"SYSGEEKER","description":"","publisher":{"@id":"https:\/\/www.sysgeeker.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sysgeeker.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.sysgeeker.com\/blog\/save-youtube-videos.html","url":"https:\/\/www.sysgeeker.com\/blog\/save-youtube-videos.html","name":"How to Save YouTube Videos on Mac using Terminal","isPartOf":{"@id":"https:\/\/www.sysgeeker.com\/blog\/#website"},"datePublished":"2024-12-06T07:00:19+00:00","dateModified":"2026-09-23T07:02:20+00:00","breadcrumb":{"@id":"https:\/\/www.sysgeeker.com\/blog\/save-youtube-videos.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sysgeeker.com\/blog\/save-youtube-videos.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sysgeeker.com\/blog\/save-youtube-videos.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sysgeeker.com\/blog"},{"@type":"ListItem","position":2,"name":"How to Save YouTube Videos on Mac using Terminal"}]},{"@type":"Article","@id":"https:\/\/www.sysgeeker.com\/blog\/save-youtube-videos.html#article","isPartOf":{"@id":"https:\/\/www.sysgeeker.com\/blog\/save-youtube-videos.html"},"author":{"name":"Kaplan","@id":"https:\/\/www.sysgeeker.com\/blog\/#\/schema\/person\/f90073b50eba90f96d770262d49e7212"},"headline":"How to Save YouTube Videos on Mac using Terminal","datePublished":"2024-12-06T07:00:19+00:00","dateModified":"2026-09-23T07:02:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sysgeeker.com\/blog\/save-youtube-videos.html"},"wordCount":446,"publisher":{"@id":"https:\/\/www.sysgeeker.com\/blog\/#organization"},"articleSection":["How-To"],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.sysgeeker.com\/blog\/#\/schema\/person\/f90073b50eba90f96d770262d49e7212","name":"Kaplan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sysgeeker.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/791ac7193b8b0515d4fa1839ad6e2668?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/791ac7193b8b0515d4fa1839ad6e2668?s=96&d=mm&r=g","caption":"Kaplan"},"sameAs":["https:\/\/www.sysgeeker.com\/blog"],"url":"https:\/\/www.sysgeeker.com\/blog\/author\/sysgeeker"}]}},"_links":{"self":[{"href":"https:\/\/www.sysgeeker.com\/blog\/wp-json\/wp\/v2\/posts\/16872"}],"collection":[{"href":"https:\/\/www.sysgeeker.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sysgeeker.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sysgeeker.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sysgeeker.com\/blog\/wp-json\/wp\/v2\/comments?post=16872"}],"version-history":[{"count":9,"href":"https:\/\/www.sysgeeker.com\/blog\/wp-json\/wp\/v2\/posts\/16872\/revisions"}],"predecessor-version":[{"id":17628,"href":"https:\/\/www.sysgeeker.com\/blog\/wp-json\/wp\/v2\/posts\/16872\/revisions\/17628"}],"wp:attachment":[{"href":"https:\/\/www.sysgeeker.com\/blog\/wp-json\/wp\/v2\/media?parent=16872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sysgeeker.com\/blog\/wp-json\/wp\/v2\/categories?post=16872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sysgeeker.com\/blog\/wp-json\/wp\/v2\/tags?post=16872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}