How to Import and Export Cookies in Chrome with SetCookies
SetCookies can import and export cookies and Local Storage for sites you manage in desktop Chrome. This walkthrough uses a harmless preference on a test site, so you can check how import and export work before using the extension on important data.
Before you start
Install SetCookies from the Chrome Web Store and open a site you own or have permission to test. Open SetCookies from Chrome’s Extensions menu. Compare the site shown in the extension with the address bar. If you have separate Chrome profiles for work and testing, check which window you are using before you make a change.
Choose a test value you can recognize, such as a light or dark theme. First change the preference through the site itself and reload the page to see whether it persists. Some sites store preferences on the server, so a preference that persists may still be unsuitable for this exercise. Use a demo site you know stores that preference in a cookie or in Local Storage. Keep live login cookies and personal information out of the example.
Export a copy
- On the test site, set the preference to the value you want to save.
- Open SetCookies and confirm the active site. In the export workflow, check what data will be included before confirming. When the preference is stored in Local Storage, make sure the workflow includes that data.
- Export to a file and give the file a name that identifies the test site and date. If you only need the sample briefly in the same workspace, you can use the clipboard instead. Check where you save or paste the output, especially on shared devices.
A file is useful if you need to repeat the test later. The clipboard is useful for a short test because you can paste it directly into the import workflow. Keep a copy of the test baseline somewhere you can identify it, and remove temporary copies when the test is finished.
Import and confirm the result
- Change the preference using the test site so the current value differs from the exported one. This gives you a visible way to tell whether the import took effect.
- On the same test site, open SetCookies and choose the import workflow. Select the file you exported, or paste the text you copied to the clipboard. Confirm that the selected site and the data source match the test environment.
- After the import, reload the page or use the extension’s auto-refresh option if enabled. Check whether the visible preference matches your saved example.
A successful test shows that the browser state you chose can be exported and reapplied in that test environment. If a website stores the same preference in a server-side account setting, it may show the server’s value when the page next loads.
If the page still looks the same
- Confirm the address. A staging subdomain and the public site are different environments, even when they look identical. Also check that you are in the Chrome profile you used for the test.
- Check the type of data. If the site reads the preference from Local Storage, a cookie-only export will not include it. Verify which data was included and try again with a known sample from the same site.
- Reload and test a single change. An open page may not read the imported value until you reload it. Change one preference at a time so you can identify which piece of data affects the result.
When asking for help, include the Chrome and SetCookies versions, your steps, and the expected and actual results. Use sample values or a sanitized screenshot. See the SetCookies privacy policy for how local data and optional external connections are handled, or return to the SetCookies Chrome cookie manager homepage for other features.