Is there any way I can copy/edit the cookies in Chrome Developer tools? Or do I need to install a custom add-on for this?
10 Answers
I think I have found something. I can press Ctrl+A and Drag & Drop the values in a TextBox and then copy it from there.
As pointed by @jmccure,
Ctrl+A, hold Shift and right click and copy.
Update: Chrome 58 added a support to edit cookies

- 722
- 9
- 15

- 32,612
- 68
- 179
- 322
-
27Thanks. Also, it's ridiculous that you have to do this at all. Come on Google. – Spot Jun 16 '13 at 00:14
-
2The first solution doesn't work for me (while CTRL + A and SHIFT works, you could change the answer I think..) – Revious Jun 16 '19 at 20:59
-
This solution works for GUI automation scripts. Great job – étale-cohomology Sep 23 '21 at 21:37
Cross-browser Solution:
- Hit F12 or Right-click page and Inspect to open the Developer Tools
- Click the Application Tab (which used to be called Resources)
- Open Cookies on the left, select your site/domain
- Double-click cookie column Value
- CTRL/Command + C or Right-click and select Copy

- 1,341
- 14
- 16
-
14Note that this doesn't work in Chrome if the cookie has some "delimiter" characters, such as +, =, etc. – Suman Oct 06 '14 at 16:24
-
This only gives you the value. I'd still have to copy the Expire/HttpOnly/path/domain by hand wouldn't I? – Prashanth Chandra Jan 27 '17 at 01:15
-
There's no "Resources" tab in Developer Tools in Chrome. This answer is outdated. Using Chrome 56. – Pang Feb 03 '17 at 06:52
-
Ctrl-A, Ctrl-C (to copy all) got broken in more recent versions (as usual - new version, new mess-up :-) In 58 was still OK in 67 not. Root cause - new preview pane handling. Now Ctrl-A selects 3rd pane as well and then Ctrl-C fails and R-Click Copy is gone. Temp solution - have to drag to select everything in just 2 panes - then Ctrl-C works again. If you have "too many" cookies == they fill the whole pane then dragging has to start from top left corner. It Shift-Up/Down was working for line-by-line selection it would be easier. – ZXX Jul 14 '18 at 07:05
-
Seems to still work for me. I just tested by double-clicking the value column on some sites with very long cookies and was able to get the full value. – gdibble Sep 21 '19 at 04:30
If you have a lot of cookies and you don't want to install any plugin, I created a small script to avoid copying the cookies one by one.
It was tested only in Google Chrome.
// Open the console in the developer tools
// Tab where you are getting the cookies from
// This block can be just copy and paste
let cookies = document.cookie;
cookies = cookies.split(";");
cookies = cookies.map(cookie => cookie.replace(" ", ""));
copy(cookies);
// Tab where you want to have the cookies
// This block cannot be copy and paste since there is no function to paste
const newCookies = // paste your cookies array here
newCookies.map(newCookie => {
document.cookie = newCookie;
})

- 1,206
- 1
- 15
- 27
-
11I like this approach, but it doesn't get any cookies marked HTTPOnly. Depending on your needs, this may or may not matter. – pkaeding Dec 19 '19 at 00:34
-
-
Though it doesen't work with HTTPOnly cookies instantly there is a workaround. One can disable this flag first and then reeanable after the pasting step. – Hexodus Dec 13 '21 at 09:03
-
I like this solution as a stepping stone for my idea. Basically copy and paste cookie into email. Email cookie to yourself. Then in a different browser manufacturer, open email, copy to clipboard and then paste into new cookie. Have you made any enhancements to your copy process since this answer? – WinEunuuchs2Unix Feb 24 '22 at 01:36
-
Here are my [future plans for revolutionizing cookies](https://pippim.github.io/mt.html#future-plans) I'd really like to know if you've done any work closely related. Thanks! – WinEunuuchs2Unix Feb 24 '22 at 02:07
An alternative approach to copy a long cookie value:
- Repeat the request with the Network tab open.
- Right-click the relevant request (in the list on the left-hand side).
- Choose Copy as cURL.
- Extract the cookie from the generated
Cookie
header option.
For example: curl 'http://...' -H 'Cookie: session=...' ...

- 1,523
- 1
- 14
- 21
-
1As of Oct 2016 - This works in Firefox, but no longer works in Chrome: it copies the cURL request but doesn't give you the cookies used – JVG Oct 20 '16 at 16:55
-
Aug 2018 - Works fine for me in Chrome, puts cookies in the request correctly. – Chaim Leib Halbert Aug 24 '18 at 17:31
-
2It's 2022, and I found out it's significantly easier to go to the Network tab and copy the Cookie header than anything else on Chrome right now. – neojp Jan 26 '22 at 19:40
This sounds strange, but if you hold Shift and right click, it seems to work most of the time.
-
1For this to work you need to first left click at the beginning of the cookie value and right click with shift at the end or in the next line: so it is better to use ctrl-a as pointed by user user960567 – Constantino Cronemberger Feb 16 '15 at 10:31
I use the Edit this Cookie extension for Google Chrome, which is very nice.
According to its documentation:
EditThisCookie is a cookie manager. You can add, delete, edit, search, protect and block cookies!

- 48,881
- 23
- 151
- 196

- 5,084
- 3
- 28
- 45
-
I could export cookies using this ext .. But, I could not get to import those.... So, I did added the cookies manually ! Then, it worked.... – Diego Favero May 22 '20 at 18:06
You have to select the value and then you can copy it. Double click helps, but if there are some delimiter characters (e.g. ".", "-" etc.) then you have to triple click it (at least in Windows 10).
So basically:
- select the value (double or triple click)
- copy the selection (Ctrl+C or "Copy" from context menu)

- 722
- 9
- 15

- 63
- 6
Unfortunately, there doesn't seem to be any reliable way to do this from developer tools. Right clicking the value and choosing copy sometimes works, but not if there are delimeter characters.
One workaround is to go into the js console and print document.cookie
. Unfortunately, that only works for non HTTP_Only cookies.

- 37,781
- 10
- 100
- 107
Another combination that works: Click on cookie value. While holding the left mouse button, click right button thrice. The Copy command will now appear in the shortcut menu.

- 525
- 9
- 19
I wanted to copy my Instagram session to another browser. So I went this way successfully.
On the source browser
- Hit F12 / go to Dev Tools
- Go to the network tab
- Reload the page / hit F5
- Scroll up to the very first entry (document http/200)
- Click it and go to the headers tab
- Find the cookie header and right click / copy value
On the target browser
- Go the other browser and hit F12 / go to Dev Tools
- Go to the console
- Type
''.split(';').forEach(c => document.cookie=c);
- Paste your cookie value between the single(!) quotes and hit ENTER
- Reload the page / hit F5

- 8,516
- 2
- 29
- 35