Free tool · no install

Online cookie format converter

Paste cookies in any common format — cookies.txt, JSON, a Cookie: header, Set-Cookie lines, Base64 — and get back whichever format the next tool expects. Detection is automatic and everything runs in this page: no upload, no account, no logging.

100% client-side Instant, as you type 6 formats, both ways

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

Reference

Which format do you need?

Pick by destination: full-fidelity JSON for browsers and backups, Netscape for command line clients, a header string for a single request.

Format What it is Typical consumer Example
JSON Array EditThisCookie / Cookie-Editor style Full-fidelity array of cookie objects with every attribute. The safest choice for backups and transfers. Cookie extensions, test fixtures [{ "name": "session_id", "value": "abc123", "domain": ".example.com", "path": "/", "secure": true, "httpOnly": true, "sameSite": "lax" }]
JSON Map name → value Flat key/value object. Compact and easy to read, but attributes are not preserved. Quick scripts, API clients { "session_id": "abc123", "theme": "dark" }
Netscape cookies.txt tab-separated The classic seven-field text format understood by command line HTTP clients. curl, wget, yt-dlp .example.com TRUE / TRUE 1789200000 session_id abc123
Header String Cookie: request header A single line ready to paste into a request header, REST client or fetch call. Postman, DevTools, fetch() Cookie: session_id=abc123; theme=dark
Base64 encoded JSON array A JSON array wrapped in Base64 for pasting through fields that mangle punctuation. CI secrets, chat transfer W3sibmFtZSI6InNlc3Npb25faWQiLCJ2YWx1ZSI6ImFiYzEyMyJ9XQ==

More background: the cookies.txt format explained, JSON vs cookies.txt field mapping, and moving cookies between browsers.

Need the live cookies, not a file?

This converter works on text you already have. To read, edit and write the cookies your browser is holding right now — including HttpOnly ones — install the extension. Same parser, applied to real sessions.

Install the extension
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

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

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

All conversion guides

Converter FAQ

Which cookie formats does the converter support?
JSON Array, JSON Map, Netscape cookies.txt, Header String (Cookie:), Set-Cookie lines and Base64-encoded JSON — in both directions. Input format is detected automatically.
Is my cookie data sent to a server?
No. The conversion runs in your browser with JavaScript; this page has no upload endpoint and no analytics. You can disconnect from the network and it still works.
How do I convert cookies.txt to JSON?
Paste the contents of the file into the input box, leave the output format on JSON Array, and copy or download the result. Tabs are preserved when you paste, and #HttpOnly_ prefixed lines are read as HttpOnly cookies rather than skipped as comments.
Why is my Netscape file not detected?
The format requires real tab characters between the seven fields. Editors that convert tabs to spaces break it. Check that the expiry column is Unix seconds, not milliseconds — a 13-digit timestamp is a common giveaway. Task-specific fixes: spaces instead of tabs, millisecond expiry.
How is this different from the extension?
This page converts text between formats. The extension reads and writes the live cookies in your browser — inspecting a session, editing attributes, applying an import to real domains.
Can I use the converter offline?
Yes. Once the page has loaded, everything happens locally, so it keeps working with the network off.

Cookie work, without the guesswork

The extension adds live inspection and editing on top of the conversion you just did.

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