How the calculation works
This calculator uses the Haversine formula to compute the great-circle distance between two latitude/longitude points — the shortest distance across the Earth's surface, ignoring roads, terrain, and elevation. It's the same basic method used by most "distance as the crow flies" tools.
What gets sent where
The distance math runs on your device using plain JavaScript. If you enter coordinates, nothing is sent anywhere. If you type a place name instead, that text is sent to OpenStreetMap's Nominatim service to find its coordinates, and nothing else leaves your browser.
Entering places or coordinates
For each point, type a place name or address, such as Dubai or Eiffel Tower, Paris, or enter decimal degrees separated by a comma, such as 25.2722, 55.3053. Place names are matched to the top OpenStreetMap result, and the name it matched is shown under your result so you can check it. Adding the country, for example "Springfield, Illinois, USA", avoids mix-ups between places with the same name. You can also use the location icon to fill in your current position.