Qibla Map
The map is the most trustworthy way to check a Qibla direction, because it does not depend on any phone sensor. Set a place and the dashed gold line is drawn from there to the Kaaba, following the true shortest path over the Earth's surface.
1. Set your location
Your location is used only in your browser to calculate the direction. It is never stored on a server or sent to analytics.
2. Your Qibla direction
- Qibla bearing
- 267.7°
- Direction
- W
- Distance to Kaaba
- 2,800 km
- From
- Karachi, Pakistan (default — set your location)
24.8608° N · 67.0011° E — this is a default city; set your own location for your exact direction.
Face 268° clockwise from true north. Phone compasses can drift — keep the phone flat, away from metal and magnets, and move it in a figure-eight to calibrate.
How it is calculated — and its limits
The line is a great-circle path sampled at 90 points between your location and the Kaaba, drawn on OpenStreetMap tiles with Leaflet. Its initial direction at your location equals the bearing shown under the compass.
Because the map projection is flat and the Earth is not, the line usually appears curved — that curve is the correct shortest route, not an error.
Limits: map tiles show the world as others have mapped it; tile detail varies by region. The calculation itself depends only on coordinates.
How to use it
- Use your location, search a city, or enter coordinates.
- Follow the dashed gold line from your marker to the gold Kaaba marker.
- Note a landmark in that direction — a street, a building corner — and face along it.
Related tools
Frequently asked questions
Why is the line on the map curved?
Because the Earth is round. The dashed line follows the great circle — the shortest surface path — which looks curved on a flat (Mercator) map. The direction you face is the line's starting direction, which is the bearing shown.
Why does the line not point the way I expected on the map?
On a flat world map, east on the page is not the shortest path. From North America, for example, the great-circle route to Makkah heads north-east over the Atlantic, even though Makkah looks 'east' on the page. The maths, not the page direction, is correct.
Which map do you use?
OpenStreetMap, drawn with the open-source Leaflet library. It needs no account or API key, and your location is never sent to the map provider — only map image tiles for the area shown are loaded.