3 min read Updated August 17, 2026

Fix “Could not detect cookie format”

Could not detect cookie format is the exact warning CookieMan emits when the paste is none of JSON, Netscape, Header, Set-Cookie or Base64. Paste the blob below: this page will not invent cookies from prose — you must extract a real format, then convert.

A leading UTF-8 BOM is stripped automatically. A whole HAR file is not a cookie format. A Postman collection is not a cookie format.

Could not detect cookie formatcookie format detection failedunknown cookie formatCookieMan detectFormat
  1. 1
    Identify what you actually copied

    JSON starts with [ or {. Netscape is tab-separated TRUE/FALSE columns, often with # Netscape HTTP Cookie File. Headers look like name=value; name=value. Set-Cookie lines start with that token or include Domain=.

  2. 2
    Paste only the cookie payload here

    Strip surrounding logs, HAR JSON, email wrappers. If the status still says unknown, try Base64 decode or repair spaces in Netscape. The converter reports the detected format when it works.

  3. 3
    Use the rewritten output

    Copy JSON for CookieMan Import, or Netscape for curl. Do not paste the original log back into Import.

Cookies are credentials. Conversion stays in this page — delete the file when you are done.

Message → cause → fix

MessageCauseFix
Could not detect cookie format. Supported: JSON, Netscape, Header, Set-Cookie, Base64No detector returned cookiesPaste one supported format only
Empty inputWhitespace-onlyPaste the file
Invalid Base64 payloadAlphabet / paddingNot Base64 — try raw JSON
Decoded Base64 content is not a recognized cookie formatInner text is unrelatedDecode offline and inspect
Expected JSON array / parse throwForced JSON that is not an arrayUse auto-detect, or wrap as [...]
UTF-8 BOM on JSON (older tools)JSON.parse threw on \uFEFFAlready stripped in this detector
Detection order: JSON (including a cookies wrapper) first, then Base64, Netscape, Set-Cookie, JSON map, header. A file that is “almost Netscape” but uses spaces is repaired — Skipped invalid Netscape line.
  • Full HAR / Postman collection / Charles session documents.
  • SQLite cookies.sqlite (Firefox) or Chrome’s binary Cookies DB.
  • CSV exports with arbitrary columns.
  • Prose (“here are my cookies: session_id is abc123”).

Questions people ask

Why did a valid-looking JSON object fail?
A JSON object without cookie-shaped values and without a cookies array is treated as a map. If values are not strings or objects, zero cookies are produced and detection continues. Wrap cookies in an array.
Does a BOM still break JSON?
Not in this parser — stripBom runs first. If another tool still fails, re-export from here to get clean UTF-8.
Can the extension detect a format the website cannot?
No. Both call @cookieman/core. The warning text is the same.
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

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

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

Apply this on live cookies

The converter rewrites files. The extension reads and writes the jar in Chrome, including HttpOnly cookies.

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