The Qibla is the direction of the Kaaba in Mecca, which every Muslim faces to perform the prayer (salat). Finding the right direction is now very easy thanks to an online Qibla compass. Here is the complete, free method that works on both mobile and desktop.
The fastest way: the online Qibla compass
The simplest option is to use our free tool Find my Qibla. In one tap, it calculates the exact direction to Mecca from your location:
- Open the tool and tap “Locate me”.
- Allow access to your location (processed locally, never shared).
- Hold your phone flat in the palm of your hand.
- Enable the compass if your device asks for it.
- Slowly turn until the green arrow points to the Kaaba.
The tool also shows the distance to the Kaaba and an interactive map.
How to orient your prayer mat
Once you know the direction, place the top of your prayer mat facing the direction shown by the green arrow. That is the end you will face during prayer.
Improving compass accuracy
A smartphone compass can be disturbed by metal objects or magnets. For better accuracy:
- Move away from metal objects and magnetic phone cases.
- Calibrate the compass by moving your device in a figure-8 motion.
- Enable high-accuracy location (GPS) on your phone.
No compass sensor?
If your device has no compass sensor, the direction in degrees (from north) is still displayed: use a simple physical compass or your phone’s compass app to orient yourself to that angle.
Frequently asked questions
Is the Qibla direction free? Yes, our tool is 100% free, with no sign-up and no app to install.
Does it work anywhere in the world? Yes, the direction is computed using the great-circle formula between your position and the Kaaba, valid everywhere.
Do I need an internet connection? A connection is needed for the first location fix and the map, but the direction in degrees stays readable afterwards.
Go further
To never miss a prayer, check the times with our Prayer Times (Mawaqit) tool, and if you are a beginner, read our beginner’s prayer guide.
Ready to orient yourself? Open the online Qibla compass now.