Repository navigation
Cookies Guide
This guide explains how to use cookies in ytDownloader to download age-restricted, private, or members-only content from YouTube and other supported sites.
Some videos or media content on sites like YouTube, Twitter, Instagram, or Facebook require authentication or age verification. Passing your logged-in cookies allows yt-dlp (the engine powering ytDownloader) to access:
- Age-restricted videos (18+ YouTube videos)
- Private or unlisted videos that you have permission to view
- Members-only or subscriber content
- Playlists and media behind logins
ytDownloader provides two flexible ways to use cookies:
This is the easiest method. ytDownloader can directly import session cookies from your installed browser.
- Open Preferences
$\rightarrow$ Advanced Tools. - Set Select cookies source to Browser.
- Select your installed browser (e.g. Chrome, Firefox, Brave, Edge, Safari, Vivaldi).
- Make sure you are logged into your target site in that browser.
ℹ️ Note: On some operating systems, browser cookie storage may be encrypted or require browser shutdown before
yt-dlpcan read the cookies. Also for Windows, only Firefox browser works.
If browser import does not work or you prefer manual control, you can paste Netscape-formatted cookies directly.
- Install a browser extension for exporting cookies in Netscape format:
- Chrome / Brave / Edge: Get cookies.txt LOCALLY
- Firefox: Get cookies.txt LOCALLY
- Visit the website (e.g.,
youtube.com) and ensure you are logged in. - Open the extension and copy your cookies in Netscape HTTP Cookie File format.
- Open Preferences
$\rightarrow$ Select cookies source$\rightarrow$ File (Netscape format). - Click + Add Cookie Block.
- Paste your Netscape formatted cookie text into the text area.
- ytDownloader saves your cookies and uses them later when downloading files.
- You can add multiple separate blocks for different websites or accounts and easily remove any block with the Remove button.
-
Local Storage Only: Your cookie data is stored strictly on your local machine and used only when passing parameters to
yt-dlp. -
Restrictive File Permissions: Saved
cookies.txtfiles are written with restricted file permissions (0600) so other users on your operating system cannot read them. -
Never Share Your Cookies: Session cookies contain secret login tokens. Never share your Netscape cookie text or
cookies.txtfile with anyone.
- Error: Could not extract cookies: Make sure the browser is closed or try using the Netscape format file option instead.
- Still getting Sign-in required error: Ensure your cookies are fresh and expired sessions have been updated by re-exporting.