USE YOUR LOCAL SESSION

gallery-dl Cookies Helper

Generate a local --cookies-from-browser command without pasting cookie values into this site. Learn when authentication is needed, how browser and profile selectors work, and how to diagnose expired, locked, or incomplete sessions.

No cookie uploadBrowser profile syntaxSecurity-first guidance
LOCAL AUTH COMMAND

Generate a browser-cookie command

This helper outputs a local command only. It never asks for a cookie value, username, password, token, or browser profile upload.

Keep authentication on your deviceUse a browser profile you control and review the target URL.

Local command

DoClose a browser if its cookie database is locked, test with --simulate, and refresh expired sessions by signing in normally.
Do notPaste raw cookie values into websites, public issues, chat messages, screenshots, or shared configuration files.
Preferred approach

When a supported extractor needs login, use --cookies-from-browser with a browser profile you control. The command points gallery-dl at local browser storage; never paste raw cookie values into a website, issue report, or shared script.

AUTHENTICATE LOCALLY

Use gallery-dl cookies from Chrome, Firefox, or Edge

Sign in through the site's normal browser flow first. Confirm that the exact page is visible in that browser profile, then close private windows and consider closing the browser fully if its cookie database is locked. Run gallery-dl with --cookies-from-browser and the browser name. Add the supported domain or profile portion only when the default profile is not the one you tested.

The selector tells gallery-dl where to read cookies on your own device. It does not send cookie contents to gallery-dl.wiki. Browser storage formats and encryption can change, so keep gallery-dl current and use the official option documentation for the selector grammar supported by your installed release.

Firefox default profile
gallery-dl --cookies-from-browser firefox "URL"
Chrome default profile
gallery-dl --cookies-from-browser chrome "URL"
Edge default profile
gallery-dl --cookies-from-browser edge "URL"
Restrict browser-cookie domain
gallery-dl --cookies-from-browser "firefox/example.com" "URL"
SELECT THE RIGHT PROFILE

Understand the cookies-from-browser selector

The official option accepts a browser selector with optional domain, keyring, profile, and container portions. Most people should begin with only the browser name. A domain restriction can reduce which cookies are read. A profile selector helps when the signed-in session is not stored in the default profile. Firefox containers are an advanced case and should be added only when you intentionally use them.

Profile names and paths can expose personal information. Treat the generated command as local data, especially when it includes a full filesystem path. If you request help, replace private paths, usernames, post URLs, and account identifiers with neutral placeholders while preserving the error type and gallery-dl version.

Selector partExampleWhen to use it
BrowserfirefoxStart here for the default profile
Domainfirefox/example.comLimit cookie extraction to one domain
Profilefirefox:Profile NameUse a known non-default profile
Cookie file--cookies cookies.txtUse an exported local Netscape-format file
Username/passwordExtractor-dependentUse only when official extractor docs explicitly require it

Authoritative references

Official authentication optionsOfficial extractor configuration
NEXT STEP

Related gallery-dl resources

FAQ

gallery-dl cookies FAQ

Is it safe to give gallery-dl my username and password?

Prefer browser cookies or the extractor's documented OAuth flow. Only use credentials when official documentation explicitly requires them, and never enter them on this site.

Does this helper upload my browser cookies?

No. It builds command text locally in your browser and never asks for raw cookie values.

How do I use Chrome cookies with gallery-dl?

Sign in with Chrome, then use --cookies-from-browser chrome with a supported URL. Add a profile selector only when the default is wrong.

Why does gallery-dl say the cookie database is locked?

The browser may have the database open. Close all browser processes and retry, or use another supported profile you control.

Why do valid cookies still return 403?

A 403 can reflect site policy, rate limits, challenges, regional behavior, or an extractor change. Stop repeated requests and isolate the cause with a clean simulated test.

Can I share gallery-dl cookies or cookies.txt to get help?

No. Keep gallery-dl cookies on your own device because cookie files can grant account access. Share only redacted errors, version information, and a public reproducible URL when permitted.