3 min read

Export partitioned CHIPS cookies without losing the key

Partitioned CHIPS cookies export correctly only as JSON Array with partitionKey.topLevelSite. Paste the sample below: Netscape and Header String outputs silently drop the key; Set-Cookie may include a Partitioned token on the wire but this parser cannot restore topLevelSite from that token alone.

CookieMan’s popup reads and writes the partition key through chrome.cookies. This website cannot see third-party cookies in your browser — export from the extension first.

CHIPS cookiespartitioned cookie exportpartitionKey topLevelSitepartitioned Set-Cookie
  1. 1
    Export JSON from CookieMan on the top-level site

    Open the publisher origin (the top-level site), export JSON Array. Partitioned third-party cookies include partitionKey.

  2. 2
    Keep JSON — do not convert to Netscape

    Paste here only to inspect. If you must convert, stay on JSON Array. Switching to Netscape is a guaranteed key loss.

  3. 3
    Import on the same top-level site

    Chrome scopes partitioned cookies by top-level site. Import while that site is the active tab or the cookie lands in a different partition and is not sent.

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

Where partitionKey survives

FormatpartitionKey?Notes
JSON ArrayYes, if topLevelSite is presentThe only lossless CHIPS export
JSON MapNoName/value only
Netscape cookies.txtNoSeven columns, no CHIPS
Header StringNoValues only
Set-CookieToken Partitioned may appear on some writers; this writer does not emit it, and parse ignores itNo top-level site in the header
Base64Yes, because it wraps JSON ArrayInner JSON still required
A Set-Cookie line with Partitioned is parsed, but the attribute handler hits break without storing a key — there is none in the header. Re-importing that JSON yields an unpartitioned cookie.

What the format and the web page cannot do

  • This page cannot list CHIPS cookies from your browser. Origin isolation forbids it.
  • Netscape cannot represent partitions. Do not use cookies.txt as a CHIPS backup.
  • Partitioned cookies require Secure. Chrome rejects the combination otherwise.
            {
  "name": "third_party_id",
  "value": "abc123",
  "domain": ".ads.example.com",
  "secure": true,
  "sameSite": "no_restriction",
  "partitionKey": { "topLevelSite": "https://publisher.example" }
}
          

Questions people ask

Why is the cookie present but never sent in an iframe?
Wrong partition. The key’s topLevelSite must match the top-level origin. Import JSON while that origin is focused, or the cookie is stored unpartitioned / in another partition.
Can I add partitionKey by hand in Netscape?
There is no column for it. Use JSON Array.
Does Cookie-Editor JSON include partitionKey?
Only if that extension wrote it. CookieMan does. If the key is missing, the cookie is not partitioned after import.
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

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
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

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