How to copy cookies in Google Chrome?
Solution 1:
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
Solution 2:
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
Solution 3:
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;
})