Tool

Browser location test

See exactly what a website receives when it asks your browser for your location — coordinates, the accuracy radius and the other fields the Geolocation API provides.

Run the test

Stays in your browser

Pressing the button asks your browser for its current position, exactly as a website would. Your browser may show a permission prompt first. The result is displayed only on this page; it is not sent to or stored by locationguard.org.

Test options

Press Get my location to start. Nothing is requested until you do.

How this test works

The page calls navigator.geolocation.getCurrentPosition(), the same function websites use. Your browser decides whether to ask you for permission, works out a position from the sources it has — GPS, Wi-Fi networks, cell towers or your operating system's location service — and returns the result to the page.

The three options map directly onto the API's settings:

  • High accuracy sets enableHighAccuracy. On phones it can switch on GPS, which is more precise but slower and uses more battery. On most desktops it changes little.
  • Timeout is how long the browser may take before giving up with a timeout error.
  • Cached position sets maximumAge. Allowing a cached position can return an instant answer that is a few minutes old.

Why HTTPS is required

Modern browsers expose geolocation only in a secure context — pages served over HTTPS, or from your own computer during development. On a plain HTTP page, the request fails without a prompt. This site is served over HTTPS, so the test works whenever your browser allows it.

Reading the results

Latitude and longitude are shown with six decimal places (about 10 cm), but the real precision is set by the accuracy value, not the number of digits. Accuracy is a radius in metres around the point; the browser estimates that your real position lies inside it. Altitude, speed and heading are usually "not provided" on laptops and desktops, which have no GPS.

Typical accuracyUsual source
Under 20 mGPS on a phone or tablet, or dense Wi-Fi positioning
20–100 mWi-Fi positioning in towns and cities
100 m – 2 kmSparse Wi-Fi, cell towers, or obfuscation such as Location Guard Low or Medium
Several km or moreIP-based fallback, Location Guard High, or a deliberately coarse location

Checking Location Guard with this test

  1. Pause Location Guard from its icon, then run the test. Note the coordinates — this is your real browser position.
  2. Unpause it and set the level for this site, for example Medium.
  3. Run the test again. The coordinates should move, and with "Update accuracy" on, the radius should grow by hundreds of metres.
  4. If you get the same result twice in a row, that is the fake-location cache at work, not a fault.

More detail in our tutorial on checking what location your browser shares.

If the test fails

  • Permission denied — reset the site's location permission from the padlock or tune icon in the address bar, then reload. See managing Chrome location permissions.
  • Position unavailable — turn on location services in your operating system, and allow your browser to use them.
  • Timeout — untick High accuracy, or choose a longer timeout.