Qibla finder online, no install
Find the qibla direction from any city on a compass or a map in your browser, with the bearing and distance to Makkah. Free, no app to install.
On this page

The Qibla finder at qurangallery.com/prayer/qibla shows the direction of the Kaaba from any city, in your browser, with nothing to install. It gives the Bearing from North and the Distance to Makkah, on a live compass or a map.
It needs your location: allow GPS or search for a city. Cities of 100,000 people or more also have their own qibla page.
Compass mode and map mode
- Compass — uses your phone’s magnetometer to point in real time. Turn until the dial reads Facing Qibla. If your device has no compass you’ll see “Compass not available. Using map view.”
- Map — draws a great-circle line from your location to Makkah. This works on any device, including a computer.
Calibrating the compass
Magnetometers drift, so the compass may show “Calibration needed — figure-8 pattern.” To fix it:
Move your phone in a figure-8 pattern to calibrate the compass. Keep it flat and away from metal objects and magnets.
You can always cross-check against your local mosque’s qibla marking.
Bearing and distance
The qibla is a great-circle bearing: the shortest path over the Earth’s curved surface to the Kaaba (21.4225° N, 39.8262° E). The page reports:
- Bearing — the angle from North to the Kaaba. Roughly northeast from North America, southeast from Europe and west from East Asia.
- Distance to Makkah — how far the Kaaba is from your location, in kilometres.
Without a phone
The page also explains how to find the qibla with a stick and the sun. Around midday the shortest shadow lies on the north–south line. Face North along it, then turn clockwise by your city’s bearing.
See also
- Mosques near you — find a masjid within walking distance.
- Prayer times — today’s times for the same location.
Next steps
Questions
How do I find the qibla in a hotel without an app?
Open qurangallery.com/prayer/qibla in your phone's browser and allow location, or search for your city. The page shows the bearing from North and, on phones with a compass, turns to point at the Kaaba.
How accurate is the qibla direction?
The bearing is a great-circle calculation from your coordinates to the Kaaba (21.4225° N, 39.8262° E). A phone compass can read several degrees off indoors or near metal, so calibrate it and check against your mosque's marking.
Is there a desktop version?
Yes. The same page works on a computer: Map mode draws the line from your location to Makkah, and the page gives the bearing and the distance.
What if my phone has no compass?
The page tells you Compass not available. Using map view. It still gives the bearing from true North, so you can face it with a map or the sun.
How do I find the qibla without a phone?
The page explains the shadow-stick method: the shortest midday shadow gives the north–south line, and you turn from North by your city's bearing.
How do I find the nearest mosque?
Use qurangallery.com/prayer/mosques. It lists mosques within 1 to 10 km of you, with a map and directions.