Faith / Direction
Qibla Finder: Live Qibla Direction Compass and Map
Search a city or share your location to find the direction and distance to the Kaaba, then turn your phone until the live compass aligns with the Qibla.
Qibla Finder: Live Qibla Direction Compass and Map: Finds the initial great-circle bearing to the Kaaba in Mecca and the distance along a spherical Earth. The compass rose turns with your phone and marks alignment within three degrees. A magnetic bearing includes the local magnetic declination. The map and twice-yearly Sun alignment times provide other ways to check the direction. Runs 100% locally in your browser with zero server file uploads.
- Category
- Time & calendar tools
- Runs
- In your browser
- Cost
- Free · no sign-up
- Availability
- Ready to use
Runs entirely in your browser
Direction and magnetic north
The great-circle bearing uses the Kaaba at 21.422487° N, 39.826206° E and a mean Earth radius of 6371.0088 km for distance. NOAA and BGS publish the public-domain World Magnetic Model (https://www.ncei.noaa.gov/products/world-magnetic-model), with the 2025 model valid until 2030. Magnetic readings can also be affected by local interference.
Map and solar check
The land outline is Natural Earth's public-domain 1:110 million land data (https://www.naturalearthdata.com/about/terms-of-use/). The map shows a great circle in an equirectangular projection.
Astronomy Engine (https://github.com/cosinekitty/astronomy), licensed under MIT, calculates the Sun's apparent declination and the nearest meridian transit at Mecca. The two closest daily transits are approximate overhead alignments, available as a shadow check only where the Sun is above the horizon.
How to use it
- Search a city or tap Use my location and allow the one-time location request.
- Read the true and magnetic bearings, distance and great-circle map.
- Tap Live compass on a phone, allow orientation access, and turn until the alignment message appears.
Privacy & limitations
Your location and compass readings stay on your device. Sharing your location is optional; the city search also works without permission.
Related tools
Frequently asked questions
Why does my phone compass point the wrong way?
Metal, magnets, magnetic cases and nearby electronics can disturb the sensor. Move away from them, keep the phone flat and follow your device's calibration guidance. Most laptops have no compass. The three-degree indicator does not measure the sensor's accuracy.
What is the difference between true and magnetic north?
True north is the direction of the geographic North Pole. Magnetic north is the direction a magnetic compass indicates. Magnetic declination is the angle between them; subtract east-positive declination from the true Qibla bearing to use a magnetic compass.
Why does North America face north-east on a flat map?
The shortest path on a globe is a great circle. From much of North America it begins towards the north-east, even though a straight line across a rectangular map can suggest another direction. Use the initial bearing rather than measuring a line on the flat map.
Can I find the Qibla without a phone compass?
Yes. Use the magnetic bearing with a separate compass, or use the map to orient yourself. Twice a year the Sun passes almost above the Kaaba at Mecca solar noon; where the Sun is above your horizon, a vertical object's shadow points away from the Qibla. The listed times are approximate alignments.
Is my location sent to a server?
The direction is calculated on your device. Location permission is requested only after you tap Use my location. A coordinate permalink contains the coordinates, so share that link only when you intend to share the place.
How accurate is the Qibla bearing?
The bearing uses a spherical Earth and the Kaaba's coordinates. An ellipsoidal Earth model gives slightly different bearings. A phone's local magnetic interference will often matter more than that difference; the map remains available when sensors are unavailable.
Free tool · runs in your browser · no account required