Save 10%Pay yearly on any plan. 6% half-yearly, 3% quarterly. Help centreWhatsAppTelegram TeamsOpen a ticket

How to Export Cookies in Google Chrome

Chrome has no export button for cookies. View them in DevTools, export them as JSON from the console, or use a cookie extension you have checked first.

3 min readBy Shailabh

Reviewed by the AmazingRDP technical team

Exporting cookies in Google Chrome

Need a second Windows desktop that stays online for testing? See our RDP plans. See Cheap RDP from $4.99

Developers export cookies to test a site, to reproduce a bug, or to let a command-line tool such as curl use a login session. Chrome has no "export cookies" button, but there are three ways to do it. This guide covers each, and what to watch out for.

A session cookie proves to a website that you are signed in. Anyone who has the file can often open your account without the password or the second sign-in step. So: export only cookies of your own accounts, never send the file to someone else, and delete it when you are done.

Method 1: look at cookies in DevTools

Good for reading or copying one or two values. Nothing to install.

  1. Open the website.
  2. Press F12 (or Ctrl + Shift + I; on a Mac Cmd + Option + I).
  3. Open the Application tab. If you do not see it, click the » arrow.
  4. In the left column, under Storage, open Cookies and click the site's address.

The table shows every cookie of that site with its name, value, domain, path and expiry date. Double-click a value to copy it. There is no export button here.

Method 2: export as JSON from the console

Good for a quick export without an extension. In DevTools, open the Console tab, paste this line and press Enter:

copy(JSON.stringify(await cookieStore.getAll(), null, 2))

The cookies of the current site are now on your clipboard as JSON. Paste them into a text editor and save the file as cookies.json.

Two limits: it works on pages loaded over HTTPS, and it leaves out cookies marked HttpOnly. Those are hidden from page scripts on purpose, and login cookies are usually among them. For those you need method 1 or method 3.

Chrome may ask you to type "allow pasting" the first time you paste into the console. That check exists because scammers tell people to paste code there. Paste only code you understand.

An extension can export every cookie of a site, HttpOnly ones included, as JSON or as a cookies.txt file, and import them again.

Choose it with care, because a cookie extension can read your logins. The long-time favourite, EditThisCookie, was removed from the Chrome Web Store in 2024, and a look-alike with nearly the same name was reported to steal data before it was removed too. Older guides, including the earlier version of this one, still point to it. Do not install it from other websites.

Before you add any cookie extension:

  • Check the publisher, the number of users and recent reviews on its store page.
  • Prefer one whose source code is public.
  • Read the permissions Chrome lists when you click Add to Chrome.
  • Switch it off or remove it when you are finished.

The steps are much the same in all of them: open the site, click the extension's icon, choose Export, and pick the format. To bring cookies back, choose Import and paste the JSON.

Which format?

FormatUsed by
JSONCookie extensions, browser automation tools, your own scripts
Netscape cookies.txtCommand-line tools such as curl and wget

With a cookies.txt file, curl sends the cookies like this:

curl -b cookies.txt https://example.com/account

What does not work

  • Copying Chrome's cookie file to another computer. Chrome encrypts cookie values with a key tied to your Windows user account, so the file cannot be read elsewhere.
  • Expecting cookies to last. Each has an expiry date, and many sites end a session when the address or device changes. An imported cookie may simply be refused.
  • Chrome sync. It carries bookmarks, passwords and settings to another device, not your open sessions.

Testing from a second machine

If you test how a site behaves from another location or a clean browser, a remote desktop is simpler than moving cookies around: sign in there once and the session stays on that machine. See our RDP plans, and how to connect to RDP from a desktop. Related: fix the IDM extension missing from Chrome.

Questions

Can I export cookies from Chrome without an extension?

Yes, partly. In the DevTools console, copy(JSON.stringify(await cookieStore.getAll(), null, 2)) copies the current site's cookies as JSON, except HttpOnly ones.

Is EditThisCookie still safe to use?

It was removed from the Chrome Web Store in 2024, and a copy with a similar name was reported as malicious. Use DevTools or another extension you have checked.

Is it safe to keep exported cookies on my computer?

Treat the file like a password. Whoever has it may be able to open your account. Keep it private and delete it when you are done.

Can I import Chrome cookies into another browser?

Often, with a cookie extension in that browser that reads the same JSON or cookies.txt format. The site may still ask you to sign in again.