DevTools Tips

Simulate a different latitude/longitude geolocation

Categories: Supported by:

If your website has features that depend on the geographic location of your users, you can test these features by simulating different geolocations right from DevTools!

Chrome and Edge DevTools have a built-in way to simulate any location:

  1. In DevTools, press ctrl+shift+P (or cmd+shift+P on mac) to open the Command Menu.
  2. Type "Sensors" in the command menu and press Enter.
  3. In the Sensors tool, find the Location drop-down.
  4. Choose any of the preset locations (or create your own by clicking Manage) and refresh the webpage.

In the following screenshot, the webpage is and the location was set to São Paulo, Brazil. After a refresh, the homepage shows the text in Portuguese.

Chrome, showing Google in Portuguese, with DevTools opened to the side and the Sensors tool showing that the geolocation was set to São Paulo.