Next-Gen App & Browser Testing Cloud
Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

The fastest way to change your location in Google Chrome is to override the geolocation in Chrome DevTools (F12 → kebab menu → More tools → Sensors → Location), which is ideal for testing. To change the IP-based location that sites and Google associate with you, use a VPN or proxy instead. Which method you pick depends on your goal: DevTools is perfect for developers and QA who need to simulate a region for one tab, while a VPN gives a real, system-wide IP change for privacy or region access.
There are a few common reasons to override or spoof your location in Chrome, and the right method differs for each:
Keep the goal in mind: a per-tab override is enough for testing, while privacy and region access usually need an IP-level change.
Chrome DevTools includes a built-in geolocation override in the Sensors tab. This is the cleanest way to simulate a different location for a single tab, which makes it the go-to method for developers and testers. Earlier guides told you to "click the three dots next to the Console heading," but that no longer matches the current Chrome UI. Here are the corrected steps:
Important scope note: the DevTools override only changes the JavaScript Geolocation API for that tab while DevTools is open. It does not change your real IP, your Google account region, or what other apps see. That is exactly what you want for testing, but it is not a privacy tool.
Sometimes you don't want to spoof a location at all, you simply want to control which sites can access it. Open chrome://settings/content/location to set the global "Sites can ask to use your location" behavior and to review the per-site Allow and Block lists. You can also click the icon in the address bar on any site to allow or block its location prompt directly.
For the full step-by-step walkthrough of enabling and managing these permissions, see How to Enable Location Permission in Chrome?.
A VPN or proxy reroutes your traffic through a server in another region, so the IP address that sites see, and the location they infer from it, changes to that server's location. Unlike the per-tab DevTools override, this change is persistent and system-wide: it affects every tab, the browser, and other apps until you disconnect.
Note that a VPN changes IP-derived location, but it does not change the GPS-style coordinates a site reads from the Geolocation API. For full coverage you may need to combine a VPN with a DevTools or extension override.
If you want a location override that persists across tabs without opening DevTools each time, a geolocation-spoofing extension is a practical option. These extensions inject fixed coordinates into the Geolocation API for every page you visit.
If you want to learn how to discover and manage these add-ons, see How to Find Chrome Extensions?.
A lot of confusion comes from treating "location" as one thing. A site can actually read three independent signals, and each method above changes a different one:
This is why a site may still show the "wrong" location after you change one signal: if you override the Geolocation API but keep your real IP, an IP-based site detects your true region, and vice versa. Match the method to the signal the target site relies on, or change more than one.
Mobile Chrome has no built-in geolocation override, so you cannot spoof GPS from inside the browser the way you can with DevTools on desktop. Your options depend on the platform:
Be realistic about the limits here: mobile spoofing is fiddly and inconsistent across OS versions. For repeatable geolocation testing on phones, a cloud device with location support is far more dependable than juggling device settings.
Overriding location locally is fine when you only need to check one machine, but it doesn't scale when you have to confirm that geo-targeting, pricing, language, and compliance behave correctly across many real countries. For that, you need cloud geolocation testing on real browsers and devices, where you can switch the simulated region from a dropdown instead of reconfiguring DevTools or a VPN for each case.
TestMu AI offers Geolocation Testing across a wide range of countries on real browsers and devices, so you can validate IP and GPS-based location behavior without maintaining a fleet of machines or VPN subscriptions.
Open Chrome DevTools with F12, click the kebab menu in the top-right of DevTools, choose More tools, then Sensors, and set a preset city or a custom latitude and longitude under Location. This overrides the Geolocation API for the active tab while DevTools is open, so it needs no VPN. A geolocation-override extension is an alternative if you want a more persistent per-browser change.
No. The DevTools Sensors override only affects the JavaScript Geolocation API for the current tab while DevTools is open. Your real IP address, your Google account region, and what other apps or sites detect from your IP all stay the same. To change your IP-based location you need a VPN or proxy.
Sites can read location from several independent signals: the Geolocation API (what DevTools and extensions override), your IP address (what a VPN changes), and your account or search-domain region. If you only changed one signal, the others can still reveal your original location. WebRTC can also leak your real IP even behind a VPN.
Open Google Maps, right-click the exact spot you want, and the latitude and longitude appear at the top of the context menu. Click them to copy, then paste the values into the Custom location fields in the DevTools Sensors tab.
Mobile Chrome cannot spoof GPS from inside the browser. On Android you can use a mock-location app enabled through Developer options, or a VPN app for IP-based changes. On iPhone you are limited to per-site location permissions in Settings or a VPN app. For controlled testing, a cloud device with geolocation support is more reliable.
Changing your location for testing, privacy, or accessing region-specific behavior is legal in most places and safe when you use trusted tools. Always respect the terms of service of the sites you visit, and avoid extensions or VPNs that request excessive permissions or have a poor privacy track record.
KaneAI - Testing Assistant
World’s first AI-Native E2E testing agent.

TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance