How do I copy cookies from Chrome? How do I copy cookies from Chrome? google-chrome google-chrome

How do I copy cookies from Chrome?


  1. Hit F12 to open the developer console (Mac: Cmd+Opt+J)
  2. Look at the Network tab.
  3. Do whatever you need to on the web site to trigger the action you're interested in
  4. Right click the relevant request, and select "Copy as cURL"

This will give you the curl command for the action you triggered, fully populated with cookies and all. You can of course also copy the flags as a basis for new curl commands.


In Chrome:

  • Open web developer tools (view -> developer -> developer tools)
  • Open the Application tab (on older versions, Resources)
  • Open the Cookies tree
  • Find the cookie you are interested in.

In the terminal

  • add --cookie "cookiename=cookievalue" to your curl request.


There's an even easier way to do this in Chrome/Chromium.
The open source Chrome extensioncookies.txt exports cookie data in a cookies.txt file, and generates an optional ready-made wget command.

*I have nothing to do with the extension, it just works really well.