Skip to content

Geolocation Test: Where Does Your Browser Say You Are?

Loading...

Learn more

Guide and answers to common questions about Geolocation Test

Two ways websites learn your location

Every website gets an approximate location from your IP address without asking. It usually points to a city or region and comes from a database; the IP Leak Test shows what yours says. The browser's Geolocation API is a different channel: it can return precise coordinates, sometimes good enough to identify a street or a building, but only after you allow it in a permission prompt.

That precise position does not come from your IP address. Phones combine GPS, nearby Wi-Fi networks and cell towers. Computers mostly rely on the Wi-Fi networks around them, which the browser or operating system sends to a location service to look up. This is why a VPN changes your IP location but usually does not change what this test shows.

How this geolocation test works

When the page opens, it only reads the current permission state through the browser's Permissions API. Nothing is requested until you click Start Location Test: the page then asks for your position through the Geolocation API with high accuracy enabled, which makes the browser show its permission prompt unless you allowed this site before. It asks for a fresh reading, not a position the browser saved earlier.

If you allow access, the page shows latitude, longitude, the accuracy radius in meters and the time of the reading, and draws the position on an OpenStreetMap map with a circle for the accuracy. If you refuse, it confirms that the browser kept its precise position from the site, reminds you that sites can still estimate your city or region from your IP address, offers step-by-step instructions for changing the permission in your browser, and lists technical details: the error code, the permission state and whether the Geolocation and Permissions APIs are supported. The test does not send your coordinates to Exposy's server.

How to read your result

Whatever this page shows is what any site you grant location access receives, so compare it with where you really are.

  • Accuracy is a radius in meters around the point. The browser is about 95 percent confident your real position lies inside that circle. A small radius points to GPS or good Wi-Fi data; several kilometers usually means an estimate based on your IP address.
  • A correct position while connected to a VPN is expected. Wi-Fi and GPS positioning do not depend on your IP address.
  • Access denied means sites cannot use the Geolocation API in this browser, but they still see the approximate location of your IP address.
  • Position unavailable or a timeout usually means location services are switched off in the operating system, or the device could not get a fix, which is common on computers with Wi-Fi turned off. The page waits about ten seconds for a reading before it reports a timeout.
  • The coordinates are shown in degrees with many decimals, but the number of digits says nothing about precision. The accuracy radius does. One unit in the fifth decimal is roughly one meter on the ground, so a reading with a radius of 3 km is not a reading of your street, however long the numbers look.

Why the position can be wrong or differ between devices

The same page can show quite different positions on a phone and on a laptop, and both can be right about what they measured. A phone with GPS under open sky can be accurate to a few meters, and indoors it usually falls back to Wi-Fi and cell data. A laptop has no GPS chip in most cases, so it depends on a lookup of the Wi-Fi networks around it, and where that database has no entry for them, on your IP address. The position may then be the center of a district or the location of your provider's equipment, kilometers from where you sit.

A reading can also lag behind reality. The page asks for a fresh reading each time, but a computer that has just woken up or joined a new network may need a moment to improve it. If the accuracy radius is large and you are sure of your position, wait a minute, turn Wi-Fi on and run the test again.

If the test fails or nothing happens

Several things outside the page can stop a location request, and the technical details box on the page shows the error type and the permission state to help you tell them apart.

  • Location is off for the whole device or for the browser: check the operating system switches listed below, since the browser cannot override them.
  • The permission was blocked earlier. The page then shows a blocked state and cannot raise the prompt again; change the site setting and reload.
  • The browser supports the Geolocation API only on secure pages (https), which this site is, but an embedded frame on another site may be barred from asking by its parent page.
  • A work or school computer may carry a policy that blocks location for all sites.
  • Privacy extensions or privacy-focused browsers may block or spoof the API on purpose. A fixed or odd position in that case is the extension's doing, not yours.

IP-based location compared with browser location

The two channels answer different questions. The IP address says where your connection comes out into the internet, at best a city or region, and it is what a website sees on every request. The browser position says where your device is, and only after you allow it. On this site, the location tied to an IP address is looked up on Exposy's own server in a local copy of the DB-IP Lite database, with no lookup service involved; the IP Leak Test shows it. Such databases are estimates: they can be a city off, and they carry no postal code.

When you run both tests with a VPN on, you will usually see two places: the VPN server's city from the IP side, and your real place from the browser side. That mismatch is normal, and it is also how some sites notice a VPN. If you want the two to agree, the browser position is the one you have to block, since a VPN cannot change it.

How to protect your location in the browser

Precise location is only shared when you allow it, so most of the protection lies in how you answer and manage permission prompts.

  • Block location prompts unless the site needs your position, for example for maps, deliveries or local weather.
  • Review sites you allowed earlier: in Chrome under Settings, Privacy and security, Site settings, Location; in Edge under Settings, Cookies and site permissions, Location; in Firefox under Settings, Privacy and Security, Permissions, Location; in Safari on a Mac under Settings, Websites, Location.
  • To stop being asked, choose Don't allow sites to see your location in Chrome, or Block new requests asking to access your location in Firefox.
  • Turn off location for the browser at the operating system level: Windows Settings, Privacy and security, Location; macOS System Settings, Privacy and Security, Location Services; iPhone Settings, Privacy and Security, Location Services, Safari Websites; Android Settings, Location.
  • Firefox users who never need the feature can set geo.enabled to false in about:config.
  • To change the approximate location tied to your IP address, use a VPN and confirm the result with the IP Leak Test.

Related tests on Exposy

The IP Leak Test shows the location every site can derive from your IP address without any permission. The WebRTC Leak Test checks whether your browser exposes your real IP address behind a VPN, which would also give away your approximate location. The VPN Effectiveness Test includes location privacy among its checks, and the Cookie & Tracker Test shows other details your browser reveals to sites.

Frequently asked questions

How do websites know my location?

Every site sees your IP address, which geolocation databases map to an approximate city or region; that needs no permission. A site can also ask for your precise position through the browser's Geolocation API, which triggers a permission prompt. If you allow it, the browser shares coordinates based on GPS, Wi-Fi or cell data. Other clues, such as your time zone and language, can narrow it down further.

Does a VPN hide my location from websites?

It hides the approximate location sites derive from your IP address, because they see the VPN server instead. It usually does not change the Geolocation API result, which comes from GPS and the Wi-Fi networks around you. To keep your precise location private, deny or block the location permission. A VPN only affects that result when the browser has no Wi-Fi or GPS data and falls back to an IP-based estimate.

Why is my browser location inaccurate?

On computers without GPS, the browser estimates your position from nearby Wi-Fi networks, and if none are known it falls back to your IP address, which can be many kilometers off. The accuracy value shows how uncertain the reading is: a radius of a few dozen meters is a strong fix, while several kilometers is a rough estimate. Turning Wi-Fi on often helps, even when you are connected by cable.

How do I reset location permission for a website?

Click the icon at the left of the address bar, open the site's settings or permissions, and set Location to Ask, Allow or Block. You can also manage all sites at once: in Chrome under Settings, Privacy and security, Site settings, Location, and in Firefox under Settings, Privacy and Security, Permissions, Location. Reload the page afterwards so the change takes effect.

Is it safe to allow location access for this test?

The test displays your coordinates in the browser and does not send them to Exposy's server; the map loads its tiles for the area from OpenStreetMap. Even so, it is good practice to remove the permission afterwards if you do not want the site to keep it. Some browsers also let you allow access just once or for the current visit.

Can a website get my precise location without asking me?

Not through the browser's Geolocation API: it needs your permission every time a site has not been allowed before. Without it, a site still sees your IP address and so an approximate place, and it can guess more from your time zone and language. A native app on your phone follows different rules, which you control in the operating system's location settings.

Why does the map show a different place than the IP Leak Test?

They measure different things. The map uses what your browser got from GPS, Wi-Fi or cell data, while the IP Leak Test shows where a location database places your internet connection, which can be the provider's hub or the VPN server in another city or country. A difference is normal, and with a VPN on it is expected.

Does a private window stop location sharing?

No. A private or incognito window can still ask for and receive your position. It only forgets your answer, and usually other site data, when the window closes. To stop sharing, deny the prompt or block location for the site in the browser or the operating system.