Qibla Compass Online — Live Direction Finder
A live qibla compass in your browser — no app to install. On a phone, tap Enable Live Compass and rotate until the Kaaba icon reaches the top; the dial reads your real heading and shows when you face the qibla. On a laptop, the static dial and bearing table give your direction — top of the dial is north.
Formula
bearing = atan2( sin(dLng), cos(lat) * tan(21.4225) - sin(lat) * cos(dLng) ) dLng = 39.8262 - longitude (Kaaba: 21.4225 N, 39.8262 E) distance = 6371 * 2 * atan2( sqrt(a), sqrt(1-a) ) (great-circle, km)
Example
From Delhi: 266.60 degrees = West. From London: 118.79 degrees = South-East.
How to Use
- 1. Your city is already selected — the qibla bearing is shown below.
- 2. Or pick any other city from the list to compare.
- 3. Tap "Use My Location" to compute the bearing from your exact position.
- 4. On a phone, tap "Enable Live Compass" and rotate until the Kaaba icon reaches the top.