- 1 Get the JSON export
Use an existing EditThisCookie export file, or export JSON from any editor that uses the same object shape (
expirationDate,hostOnly,httpOnly,sameSite). - 2 Convert to Netscape on this page
Paste the array into the converter. Output is preset to Netscape cookies.txt. Copy or download the file — conversion is local.
- 3 Hand the file to curl or yt-dlp
Save as
cookies.txtand runcurl -b cookies.txt https://example.com/oryt-dlp --cookies cookies.txt URL. Do not commit the file.
Which EditThisCookie fields survive cookies.txt
| EditThisCookie JSON | Netscape column | Lost? |
|---|---|---|
domain | 1 — domain | No |
hostOnly | 2 — TRUE/FALSE include-subdomains (inverted) | No |
path | 3 — path | No |
secure | 4 — TRUE/FALSE | No |
expirationDate (seconds) | 5 — Unix seconds; 0 if session | No |
name / value | 6 / 7 | No |
httpOnly | #HttpOnly_ prefix on the domain field | No — if the reader understands the prefix |
sameSite | — | Yes. Netscape has no SameSite column. |
storeId / id | — | Yes. Ignored on parse. |
partitionKey | — | Yes. CHIPS cannot round-trip through cookies.txt. |
sameSite is dropped on purpose. If the destination is another Chrome profile, keep JSON Array instead — see JSON Array vs cookies.txt. What the rewritten file looks like
# Netscape HTTP Cookie File
# https://curl.se/docs/http-cookies.html
#HttpOnly_.example.com TRUE / TRUE 1789200000 session_id abc123
The serializer always writes the magic header and a trailing newline. curl’s own jar writer does the same. A file that still uses spaces between fields will be repaired on the next paste — see Skipped invalid Netscape line.