Next-Gen App & Browser Testing Cloud
Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Convert cookies between Netscape (cookies.txt) and JSON formats instantly. Paste, upload, or enter your cookie data and convert in seconds!
The Netscape cookie format (also known as cookies.txt) is a tab-separated plain text format originally created by Netscape Navigator. Each line in the file represents a single cookie with seven tab-separated fields: domain, include subdomains flag, path, secure flag, expiration timestamp, cookie name, and cookie value. It is widely used by command-line tools like cURL and wget.
The JSON cookie format stores cookies as a structured array of objects, where each object contains properties like domain, path, secure, httpOnly, expirationDate, name, and value. This format is used by browser DevTools, automation tools like Puppeteer and Playwright, and modern web applications.
| Feature | Netscape (cookies.txt) | JSON |
|---|---|---|
| Structure | Tab-separated plain text, one cookie per line | Structured array of objects with key-value pairs |
| Readability | Moderate — requires knowledge of column order | High — self-documenting with named properties |
| Used By | cURL, wget, browser extensions, web scrapers | Browser DevTools, Puppeteer, Playwright, Selenium |
| File Extension | .txt | .json |
| Flexibility | Fixed column structure, limited extensibility | Easily extensible with additional properties |
The Netscape cookie format (cookies.txt) is a tab-separated text format where each line represents a cookie with seven fields: domain, include subdomains flag, path, secure flag, expiration (Unix timestamp), name, and value. It was created by Netscape Navigator and is still widely used by tools like cURL and wget.
After converting your cookies to Netscape format, save the output as a .txt file (e.g., cookies.txt). Then use it with cURL: curl -b cookies.txt https://example.com. The -b flag tells cURL to load and send cookies from the specified file.
Yes! This tool supports bi-directional conversion. You can convert from Netscape to JSON and from JSON to Netscape by switching the conversion direction using the toggle buttons above the input area.
JSON cookies are used by browser DevTools (Chrome, Firefox), browser automation tools like Puppeteer and Playwright, testing frameworks like Selenium, and various browser extensions like EditThisCookie.
Yes, all conversion happens entirely in your browser. Your cookie data is never sent to any server. The conversion is performed client-side using JavaScript, ensuring your sensitive cookie data remains private.
Did you find this page helpful?
Start your journey with TestMu AI
Get 100 minutes of automation test minutes FREE!!