Geolocation API Tester
Request your position through the browser Geolocation API and inspect the raw coordinates, accuracy, altitude, and timestamp it returns, with permission and error handling shown live.
🔒 This tool runs entirely in your browser. Your files are never uploaded to a server.
Not requested yet. Your browser will ask for permission when you click "Request location".
Latitude / Longitude
—
Accuracy
—
Raw response
Not requested yet.
How it works
- Set the high accuracy and timeout options you want to test.
- Click "Request location" to trigger the browser's native geolocation permission prompt.
- Allow access to see the coordinates, accuracy, and full raw response object.
- Denying access, or a device without a location fix, shows the exact error the API returns.
FAQ
Does this tool track or store my location?
No — the request goes directly from your browser to your device's location provider. Nothing is sent to a server or stored; the result only appears on your screen.
Why does my browser show a permission prompt?
The Geolocation API requires explicit user permission before any page can access your position. This tool triggers that same native browser prompt when you click "Request location".
What does "High accuracy" change?
It asks the device to use more precise (and more power-hungry) positioning methods like GPS, where available, instead of relying on faster but coarser Wi-Fi or IP-based estimates.
Why did I get a "Position unavailable" error?
This usually means the device could not get a location fix — for example, no GPS signal, location services disabled at the OS level, or running over an insecure (non-HTTPS) connection.
How we compare
| Feature | Online Tool Store | Writing a test page yourself |
|---|---|---|
| See the full raw response instantly | ✓ | Requires console.log |
| Toggle accuracy/timeout without editing code | ✓ | ✗ |
Debugging geolocation behavior usually means writing a throwaway test page. This tool gives you the same navigator.geolocation call with readable output and adjustable options.