cURL Cookie Extractor
Extract cookies from cURL commands (Copy as cURL from browser DevTools) and export in various formats including JSON, Cookie header, Netscape format, and more.
cURL Cookie Extractor
Extract cookies from Copy as cURL commands (from Chrome, Firefox, Safari, or Edge DevTools) and export them in the format you need — perfect for configuring OmniRoute Web Cookie Providers, debugging, or sharing session state.
How to get cURL with cookies from your browser
- Open the target site (e.g.,
gemini.google.com) and sign in. - Open DevTools (F12) → Network tab.
- Refresh the page or make a request.
- Right-click any authenticated request → Copy → Copy as cURL (or Copy as cURL (bash)).
- Paste the command below.
Supported input formats
- Cookie header:
-H 'Cookie: name=value; name2=value2' - Cookie option:
-b 'name=value; name2=value2'or--cookie '...' - Multiple headers:
-H 'Cookie: a=1' -H 'Cookie: b=2' - Quoted values: Handles both single and double quotes, and quoted cookie values.
Output formats
| Format | Use case |
|---|---|
json (default) |
Array of {name, value} objects — easy to parse programmatically |
cookie_header |
name1=value1; name2=value2 — ready for HTTP Cookie header |
netscape |
Netscape cookie file format — for import into tools like curl -b cookies.txt |
json_string |
Pretty-printed JSON string |
curl_header |
Cookie: name1=value1; name2=value2 — ready for another cURL -H |
object |
Key-value object: {"name1": "value1", "name2": "value2"} |
Example: OmniRoute Web Cookie Provider
For providers like Gemini Web (Free) that require __Secure-1PSID (and optionally __Secure-1PSIDTS):
- Sign in to Gemini Web in your browser.
- Open DevTools → Network → refresh → Copy as cURL.
- Paste here and choose Cookie header format.
- Copy the output and paste into OmniRoute's cookie field.
Tips & notes
- Deduplication: If the same cookie appears multiple times, the first occurrence is kept.
- No domain/path: Browser DevTools cURL doesn't include domain, path, secure, or expiry. The Netscape format uses sensible defaults.
- Large cookies: Some cookies (like
__Secure-1PSID) may be split into numbered chunks in the browser. The tool merges them automatically if they share the same name prefix. - Security: Never share extracted cookies publicly — they grant access to your account.
Related developer tools
- cURL Converter — Convert cURL to fetch/Axios
- HTTP Header Analyzer — Analyze response headers
- Request Replay Tool — Replay and modify requests
FAQ
What cURL formats are supported?
The tool parses cookies from -H/--header 'Cookie: ...' and -b/--cookie options. It handles both single and double quotes, and multiple cookie headers.
Can it handle cookies split across multiple -H headers?
Yes, multiple Cookie headers are merged and deduplicated by cookie name.
What output formats are available?
JSON array (default), Cookie header string, Netscape cookie file format, JSON string, cURL -H format, and key-value object.
Does it preserve domain/path/secure flags?
cURL commands from DevTools don't include domain/path/secure/expiry info. The Netscape format uses placeholders. For full cookie jars, export from browser extensions.
Can I use this for OmniRoute Web Cookie Providers?
Yes! Copy as cURL from browser DevTools on the provider's site (e.g., gemini.google.com), paste here, and export as Cookie header or JSON for OmniRoute.