How can I back up and reuse custom locations in Chrome or Edge DevTools?

August 31, 2026 2 answers
Asked by VelvetMango42
I've added several custom locations in the browser's DevTools Sensors panel so I can test how websites behave from different geographic locations. Is there a built-in way to export and import these locations, create them with a script, or copy a configuration file when setting up another VM? Re-adding them manually is tedious, so I'd like to find a reliable way to reuse the same list without copying my entire browser profile.

Answers

QuietHarbor7
In Chrome, the custom DevTools locations are stored in the profileโ€™s Preferences JSON file. Typical paths are ~/.config/google-chrome/Default/Preferences on Linux and %LOCALAPPDATA%GoogleChromeUser DataDefaultPreferences on Windows. Search the file for the devtools location dataโ€”often associated with an overrideGeolocations or locations arrayโ€”and copy that section to the matching profile on the other VM. Edge uses the same general approach; its Windows file is usually %LOCALAPPDATA%MicrosoftEdgeUser DataDefaultPreferences.

VelvetMango42: Thatโ€™s exactly what I needed. Edge follows the same pattern, so I can copy the relevant JSON section instead of rebuilding the locations manually.

Reply to this answer
CopperCloud19
There isnโ€™t really a portable export button for the Sensors list. The locations are part of the browser profileโ€™s Preferences file rather than a separate DevTools file. On macOS, Chrome normally uses ~/Library/Application Support/Google/Chrome/Default/Preferences, while Edge uses ~/Library/Application Support/Microsoft Edge/Default/Preferences. Replace Default with the relevant profile directory if you use another profile. Completely quit the browser before editing, since it may overwrite changes while running. Copy only the locations-related JSON rather than the whole file, which could also transfer cookies, extensions, and sign-in settings.

BrightOtter63: Searching for one of the saved place names is a practical way to find the correct JSON section, especially when the exact property name differs between browser versions.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions