Qibla Compass & Direction Finder
Find the direction of the Kaaba from wherever you are — a live compass in your browser, with the exact Qibla angle and your distance to Makkah.
Allow location access to find your Qibla direction
Or pick a city below — no location needed.
Your location is used only in your browser — it is never sent anywhere.
Find for a city or coordinates
Choose a city, or enter any latitude and longitude — useful for planning a trip or checking a new home.
How to find the Qibla
Share your location
Tap Use my location & compass and allow location access. Nothing leaves your phone — the calculation happens on this page.
Turn with your phone
Hold your phone flat and turn slowly. The dial rotates with you, and the gold Kaaba marker shows the direction of Makkah.
Line up the marker
When the gold marker reaches the gold pointer at the top, you are facing the Qibla. The ring lights up to confirm it.
Qibla direction from major cities
The Qibla angle is measured clockwise from true north and changes from place to place — that is why a direction that works in one city can be far off in another. A few examples, calculated the same way QiblaIO calculates yours:
| City | Qibla angle | Distance to Makkah |
|---|---|---|
| Dhaka, Bangladesh | 277.6° | 5,172 km |
| Chattogram, Bangladesh | 279.3° | 5,334 km |
| Sylhet, Bangladesh | 277.0° | 5,303 km |
| Khulna, Bangladesh | 278.2° | 5,098 km |
| Rajshahi, Bangladesh | 276.5° | 4,982 km |
| Karachi, Pakistan | 267.7° | 2,800 km |
| Delhi, India | 266.6° | 3,835 km |
| Dubai, UAE | 258.2° | 1,631 km |
| Kuala Lumpur, Malaysia | 292.5° | 6,974 km |
| Jakarta, Indonesia | 295.2° | 7,920 km |
| Istanbul, Türkiye | 151.6° | 2,405 km |
| Cairo, Egypt | 136.1° | 1,287 km |
| London, UK | 119.0° | 4,794 km |
| New York, USA | 58.5° | 10,306 km |
| Toronto, Canada | 54.6° | 10,496 km |
| Sydney, Australia | 277.5° | 13,236 km |
How the direction is calculated
QiblaIO uses the great-circle method: given your latitude and longitude, it works out the initial bearing of the shortest path over the Earth's surface to the Kaaba in Makkah (21.4225° N, 39.8262° E). This is the method behind printed prayer calendars and mosque Qibla indicators worldwide, and it is more accurate than simply pointing "west" — from North America the Qibla is actually toward the northeast, and from Southeast Asia toward the northwest.
Getting an accurate reading: phone compasses drift near metal, magnets (including some phone cases), cars and electronics. If the needle behaves strangely, move your phone in a figure-8 motion a few times to calibrate it, hold it flat and away from metal, and give it a few seconds to settle. On devices without a compass sensor, QiblaIO still gives you the exact angle for your location so you can use a regular compass.
Angles are measured from true north. If you are using a physical magnetic compass, remember that magnetic north differs from true north by a few degrees depending on where you are (the local declination).
Frequently asked questions
How does QiblaIO find the Qibla direction?
QiblaIO takes your location and calculates the great-circle bearing to the Kaaba in Makkah (21.4225° N, 39.8262° E) — the same method used by prayer-time calendars. The gold marker on the compass shows that direction, and the live compass rotates as you turn your phone.
What is the Qibla direction from Dhaka?
From Dhaka, Bangladesh, the Qibla is about 277.6° measured clockwise from true north — roughly west-northwest. The exact angle changes slightly from place to place, which is why QiblaIO calculates it from your own location.
Why does the compass needle move or point the wrong way?
Phone compasses are affected by metal objects, phone cases with magnets, and nearby electronics. Move your phone in a figure-8 motion a few times to calibrate it, keep it away from metal, and hold it flat.
Does QiblaIO work without the live compass?
Yes. If your device has no compass sensor — for example on a desktop computer — QiblaIO still shows the exact Qibla angle for your location or for any city you pick, so you can line it up with a regular compass or a map.
Is my location shared or stored?
No. Your location is used only inside your browser to do the maths on this page. It is never sent to a server, stored, or shared.
Is QiblaIO free?
Yes. QiblaIO is completely free — no app to install, no account, no sign-up.