Guides

Convert the file, then use it

Each page is one job: a source format or tool, the converter with that preset, and the fields that do not survive. 30 guides, same parser as the extension.

Other tools

3 min read

Cookie-Editor Alternative for Chrome (MV3)

Cookie-Editor is a cookie inspector. CookieMan is a Manifest V3 editor that imports the same JSON and converts it to cookies.txt, headers or Base64.

Cookie-Editor alternativeCookie-Editor Chrome Open the guide
3 min read

EditThisCookie JSON to cookies.txt

Paste an EditThisCookie JSON export and download a tab-separated cookies.txt with #HttpOnly_ prefixes and Unix-second expiry, ready for curl or yt-dlp.

EditThisCookie JSON to cookies.txtEditThisCookie export Open the guide
3 min read

Convert Get cookies.txt LOCALLY to JSON

Turn a Netscape file from the Get cookies.txt LOCALLY extension into a JSON array that keeps HttpOnly flags, then import it in Chrome or another profile.

Get cookies.txt LOCALLYcookies.txt to JSON Open the guide
3 min read

Postman Cookie Header to JSON

Paste a Postman Cookie header and turn name=value pairs into a JSON array. Domains default to localhost until you set them — then import or send via curl.

Postman cookiesPostman Cookie header Open the guide
3 min read

Insomnia Cookie Jar to cookies.txt

Take cookies copied from Insomnia’s Cookie Jar or a Cookie header and write a Netscape cookies.txt curl and wget will load. Set domains before you save the jar.

Insomnia cookiesInsomnia cookie jar Open the guide
3 min read

Cookie Quick Manager Export to JSON

Move a Firefox Cookie Quick Manager dump into Chrome: paste cookies.txt or JSON, convert to a JSON array, then import with CookieMan on the matching origin.

Cookie Quick ManagerCookie Quick Manager export Open the guide
3 min read

Selenium get_cookies() to JSON Array

Paste the list from WebDriver get_cookies() — expiry, httpOnly, sameSite — and convert it to CookieMan JSON or cookies.txt. expires ≤ 0 becomes a session cookie.

Selenium cookiesget_cookies JSON Open the guide
3 min read

yt-dlp cookies.txt from Chrome Export

Convert Chrome JSON or a browser dump to the Netscape file yt-dlp --cookies expects, with tabs, Unix seconds and #HttpOnly_ session cookies intact.

yt-dlp cookies.txtyt-dlp --cookies Open the guide
3 min read

HAR Set-Cookie Headers to JSON

CookieMan does not parse a whole HAR JSON file. Copy the Set-Cookie lines out of the response and convert them to a JSON array with Domain, Path, flags and Expires.

HAR Set-CookieHAR cookies to JSON Open the guide

CLI & HTTP clients

3 min read

curl -b cookies.txt from JSON Export

Turn a Chrome JSON export into the Netscape file curl -b and -c expect: tabs, #HttpOnly_ prefixes, Unix-second expiry and a trailing newline.

curl cookies.txtcurl -b cookies Open the guide
3 min read

wget --load-cookies File from JSON

Convert a JSON cookie export to Netscape cookies.txt for wget --load-cookies. Keep session cookies with --keep-session-cookies or wget will drop expiry 0 on save.

wget --load-cookieswget cookies.txt Open the guide
3 min read

HTTPie Session Cookies from JSON

Convert a JSON cookie export into a Cookie header for httpie -A or a Netscape jar for curl-compatible sessions. Domains must be real hosts, not localhost.

HTTPie cookieshttpie session Open the guide
3 min read

Python Requests CookieJar from JSON

Convert browser JSON to Netscape for Requests via MozillaCookieJar, or to a Cookie header. Set domains before you call the host.

Python requests cookiesMozillaCookieJar Open the guide
3 min read

httpx Cookies from Netscape File

Convert JSON or a Cookie header to Netscape cookies.txt and load it in httpx.Client. httpx has no cookies.txt reader — use http.cookiejar, then copy into the client.

httpx cookieshttpx cookies.txt Open the guide
3 min read

Playwright storageState to cookies.txt

Paste a Playwright storageState file. The converter unwraps the cookies array, treats expires -1 as a session cookie, and writes Netscape for curl or Chrome JSON.

Playwright storageStatePlaywright cookies.txt Open the guide
3 min read

Puppeteer Cookies JSON to cookies.txt

Paste the array from page.cookies() or browser.cookies() and convert it to Netscape or CookieMan JSON. expires -1 is a session cookie; SameSite is kept only in JSON.

Puppeteer cookiespage.cookies JSON Open the guide
3 min read

Axios Cookie Header from JSON Export

Convert a JSON cookie array to a Cookie header for Axios in Node. Browsers ignore this header. HttpOnly cannot appear on the wire.

Axios Cookie headerAxios cookies Open the guide

Formats & attributes

3 min read

JSON Array vs cookies.txt Field Mapping

Side-by-side mapping of CookieMan JSON Array fields to Netscape cookies.txt. SameSite, partitionKey and store metadata never survive the seven-column file.

JSON vs cookies.txtcookies.txt field mapping Open the guide
3 min read

JSON Map vs JSON Array Cookie Export

A JSON map is name→value only. CookieMan fills domain=localhost, path=/, session=true and warns. Use JSON Array when you need to import into Chrome.

JSON map cookiesJSON array vs map Open the guide
3 min read

Cookie Header vs Set-Cookie Conversion

A Cookie request header is name=value pairs. Set-Cookie response lines carry Domain, Path, flags and Expires. Convert each separately — they are not interchangeable.

Cookie vs Set-CookieSet-Cookie to JSON Open the guide
3 min read

Base64 Cookie Export to JSON Array

Paste a Base64-encoded cookie dump (JSON, Netscape or header). The decoder unwraps it, reports the inner format, and serialises JSON Array, cookies.txt or a header.

Base64 cookiesdecode cookie Base64 Open the guide
3 min read

SameSite Lost in cookies.txt Exports

Netscape cookies.txt has no SameSite column. JSON → Netscape → JSON always yields unspecified. Keep JSON Array when Lax, Strict or None must survive Chrome import.

SameSite cookies.txtSameSite Netscape Open the guide
3 min read

Export Partitioned CHIPS Cookies

Partitioned cookies need JSON Array with partitionKey.topLevelSite. Netscape, headers and Set-Cookie drop the key, so Chrome stores the wrong partition.

CHIPS cookiespartitioned cookie export Open the guide

Fixes

3 min read

Fix: Could not detect cookie format

CookieMan emits this warning when the paste is not JSON, Netscape, Cookie header, Set-Cookie or Base64. Strip the BOM, extract cookie text, then convert.

Could not detect cookie formatcookie format detection failed Open the guide
3 min read

Fix: Skipped invalid Netscape line

CookieMan skips a Netscape row without seven fields. Editors that turn tabs into spaces are the usual cause. Paste the file here to reconstruct it.

Skipped invalid Netscape linecookies.txt spaces not tabs Open the guide
3 min read

Fix cookies.txt Millisecond Expiry

A 13-digit Netscape expiry is milliseconds, not Unix seconds. CookieMan divides values greater than 1e12 by 1000 and warns. Paste the file here to rewrite column 5.

cookies.txt millisecondsNetscape expiry milliseconds Open the guide
3 min read

Fix Cookie Domain Defaulted to localhost

Header strings and JSON maps have no domain, so CookieMan writes localhost and warns. Convert to JSON Array, set a real host, then import or export Netscape.

Cookie missing domaindefaulted to localhost Open the guide
3 min read

Fix #HttpOnly_ Dropped as a Comment

Naive parsers skip every # line and delete HttpOnly session cookies. CookieMan keeps #HttpOnly_ rows. Paste the file here to rewrite it.

#HttpOnly_ commentHttpOnly cookies.txt Open the guide
3 min read

Fix SameSite=None Without Secure

Chrome rejects SameSite=None unless Secure is set. The converter will not override the browser. Paste JSON, set secure true, then import on HTTPS.

SameSite=None without SecureSameSite None rejected Open the guide
3 min read

Fix __Host- Cookie Rejected by Chrome

__Host- cookies must be Secure, Path=/, and host-only (no Domain). Paste broken JSON, correct the fields, then import on that host over HTTPS.

__Host- cookie rejected__Host- prefix Open the guide

Need the live jar, not a file?

Install CookieMan to read and write cookies in Chrome, including HttpOnly. Same formats as these guides.

Free and MIT-licensed · Chrome, Edge and other Chromium browsers · Nothing leaves your machine