Find the Qibla Direction from Anywhere
A free online qibla finder. Uses your browser's geolocation to determine your exact coordinates, then calculates the Great Circle bearing to the Kaaba in Mecca (21.4225°N, 39.8262°E). On mobile devices, the arrow rotates live with your phone's orientation sensor. Also shows the distance to the Kaaba in kilometers and the compass direction (e.g., NE, SW) for quick reference.
Tap the location button and allow the browser to access your coordinates (or enter them manually).
The angle shown is measured clockwise from true north. For example, 125° means east-southeast.
On phones, tap "Enable compass" to allow orientation access. iOS asks for explicit permission.
Hold your phone flat. Rotate your body until the green arrow points straight up — that direction is the qibla.
The distance to the Kaaba in Mecca is shown below the compass — useful for travel planning.
Locate the direction of the Kaaba from anywhere using geolocation and device orientation
Features
How accurate is the bearing?
The Great Circle bearing is mathematically accurate to 0.01°. Real-world accuracy depends on the quality of your GPS location (usually within 10–50 m) and, on mobile, on your device's magnetometer calibration.
Why does the compass arrow not move?
On desktop browsers, the compass is static because there is no orientation sensor. On iOS, you must explicitly tap "Enable compass" to grant permission. On Android, if the arrow does not move, your magnetometer may need calibration — move the phone in a figure-eight for 10 seconds.
Why use Great Circle bearing instead of a flat map?
The Earth is a sphere; the shortest path between two points on it is a great-circle arc. The qibla bearing used by traditional Muslim scholars and by virtually all modern qibla tools is based on the Great Circle formula.
What if my device does not have a compass?
The arrow will still show the correct qibla bearing from your location, relative to true north. Use any other compass (physical or app) to align with it.
How is the bearing calculated?
Your coordinates are used in your browser to compute the great-circle bearing via trigonometric formulas — the calculation runs client-side in JavaScript.
We can — and it's free! Just send us a quick message with your idea. If you'd like to discuss it in detail, leave your email and we'll get back to you. You can stay anonymous.