Finding the Kaaba With Nothing But a Browser
To find the exact Qibla direction, hold your phone flat and allow browser location access. The tool calculates the spherical great-circle bearing to the Kaaba in Makkah (21.4225° N, 39.8262° E) and corrects for magnetic declination. Rotate until the needle aligns with the Kaaba indicator.
For more than 1,400 years, Muslims around the world have turned toward the Kaaba in Makkah five times a day. The physical act is simple. The geometry behind it is anything but. Because the Earth is a sphere, the straight path from any city to Makkah is not a compass line on a flat map — it is a great-circle arc that curves across the globe. Over long distances, a naive flat-map direction can be wrong by 30 degrees or more.
The Online-Compass.com Qibla Finder performs the great-circle calculation inside your browser using your live GPS coordinates and the fixed coordinates of the Kaaba. It then applies 2026 WMM-2025 magnetic declination correction and rotates the dial so you can face Makkah with confidence, whether you are at home, in a hotel room, on a highway, or visiting a country where no mosque is nearby.
