1. Read a location
You can share your current latitude and longitude through the browser permission prompt or type coordinates yourself. A city name is not needed.
Use your browser’s location permission or enter latitude and longitude manually. The page calculates the initial bearing to the Kaaba locally, so your coordinates are not uploaded by this tool.
The result is an angle measured clockwise from true north. Location permission is optional.
Your coordinates stay in this page: pressing the location button asks the browser for permission. The JavaScript calculation runs locally and does not send those coordinates to IslamTools. You can also deny permission and use the manual form.
The tool treats Earth as a sphere and calculates the initial great-circle bearing from your coordinates to the Kaaba at 21.4225° N, 39.8262° E.
You can share your current latitude and longitude through the browser permission prompt or type coordinates yourself. A city name is not needed.
The page uses trigonometry to find the initial path toward the Kaaba. The normalized result falls between 0° and 360°, measured clockwise from true north.
A result of 90° means due east, 180° means south and 270° means west. The page also shows a compass label and approximate great-circle distance.
True north points toward the geographic North Pole. A magnetic compass points toward magnetic north, which can differ by several degrees depending on where you are. That difference is called magnetic declination.
Many phone map apps can display a true-north heading, but their settings differ. Check whether your compass or map is using true or magnetic north before applying the bearing.
A negative sign changes the hemisphere. Latitude is north/south and must be between −90 and 90. Longitude is east/west and must be between −180 and 180. Reversing the two values produces a very different bearing.
The tool’s result starts from true north. If your handheld compass uses magnetic north, account for local declination or use a map aligned to geographic north. Inside buildings, use multiple checks rather than relying on one sensor reading.
No. If you grant browser location access, this page reads the coordinates and performs the bearing calculation locally in JavaScript. The coordinates are not sent to the IslamTools server by this tool.
Nearby metal, magnets, cases and electronic equipment can disturb a phone magnetometer. Calibrate the device, move away from interference and compare the displayed bearing with a map or known landmark.
The bearing shown here is measured clockwise from true north. A magnetic compass can differ because magnetic declination varies by place and date.
Small differences can come from rounded coordinates, a spherical versus ellipsoidal Earth model, or the use of magnetic rather than true north. Re-enter precise coordinates and compare which north reference each tool uses.
IslamTools v2.0.2 includes a Qibla compass, prayer times, Quran, duas and other practical tools on iOS and Android. The app is free, with no ads or analytics SDKs.