Online Compass Logo
Online Compass
Online Compass Logo
Online Compass
Islamic Navigation

Qibla Finder — Face the Kaaba From Anywhere

A respectful, accurate, browser-based Qibla compass. No app install, no account, no tracking. Grant location once and the dial points to Makkah via the exact great-circle path.

NESW
N0°

Your heading (Magnetic)

Location neededGrant location permission to compute the Qibla bearing.
Lat
--
Lon
--
To Makkah
--

Hold your phone flat, tap Allow Location, and align the dial. The Qibla bearing uses the great-circle route to the Kaaba at 21.4225° N, 39.8262° E.

Finding the Kaaba With Nothing But a Browser

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.

A Qibla Finder You Can Trust

🌍

Great-Circle Math

The same spherical trigonometry used by commercial aviation computes the exact initial bearing from your location to the Kaaba.

🧭

True North Corrected

Magnetic declination is computed from your GPS and subtracted automatically — no manual correction, no chart lookup, no errors.

📱

Works Everywhere

Runs in Safari, Chrome, Firefox, Samsung Internet, Edge, and Brave. No App Store, no Play Store, no install, no sign-up.

🔒

Privacy-First

Your GPS coordinates, prayer times, and location history never leave your phone. Nothing is logged or transmitted to any server.

🗺️

Live Reference Table

Cross-check the live bearing against approximate Qibla bearings for 10 major world cities, included on this page for verification.

🌙

Offline Capable

After one initial page load, the tool continues to work without internet — your phone's magnetometer and GPS never needed it.

How to Use the Qibla Finder

1

Open the Page

Load this page in any modern mobile browser. There is nothing to download and no account to create.

2

Grant Permissions

Tap Allow Location and, on iOS, Allow Motion & Orientation. These unlock the MEMS magnetometer and GPS.

3

Calibrate

Hold the phone flat and draw a smooth horizontal figure-eight three times. This resets the magnetometer against local interference.

4

Align the Dial

Rotate your body until the Qibla marker aligns with the top of the phone. You are now facing the Kaaba along the great-circle route.

5

Cross-Check

Compare the displayed bearing with the city reference table below. A match within 2–3° confirms the reading is clean.

6

Mark a Landmark

Once aligned, note a physical landmark — the edge of a doorway, a corner of the room — so you can return to the correct direction any time.

Qibla Bearings from 10 Major Cities (Reference)

Bearings are measured clockwise from True North. Distances are great-circle distances to the Kaaba in kilometres. Use this table to sanity-check the live reading above.

CityCountryCoordinatesQibla BearingDistance to Kaaba
New YorkUSA40.71°N, 74.01°W≈ 58° (NE)≈ 10,310 km
LondonUK51.51°N, 0.13°W≈ 119° (ESE)≈ 4,750 km
ParisFrance48.86°N, 2.35°E≈ 119° (ESE)≈ 4,580 km
IstanbulTürkiye41.01°N, 28.98°E≈ 151° (SSE)≈ 2,450 km
DubaiUAE25.20°N, 55.27°E≈ 258° (WSW)≈ 1,600 km
CairoEgypt30.04°N, 31.24°E≈ 136° (SE)≈ 1,290 km
MumbaiIndia19.07°N, 72.88°E≈ 281° (W)≈ 3,030 km
JakartaIndonesia6.20°S, 106.82°E≈ 295° (WNW)≈ 7,930 km
Kuala LumpurMalaysia3.14°N, 101.69°E≈ 293° (WNW)≈ 7,560 km
SydneyAustralia33.87°S, 151.21°E≈ 277° (W)≈ 12,270 km

Technical Deep Dive — The Great-Circle Formula

Every accurate Qibla finder on Earth solves the same equation: the great-circle initial bearing from your position to the Kaaba. Given your latitude φ₁, your longitude λ₁, the Kaaba latitude φ₂ = 21.4225° N, and the Kaaba longitude λ₂ = 39.8262° E, the bearing B is computed as:

Δλ = λ₂ − λ₁ B = atan2( sin(Δλ)·cos(φ₂), cos(φ₁)·sin(φ₂) − sin(φ₁)·cos(φ₂)·cos(Δλ) ) Qibla = (B + 360°) mod 360°

This single equation, evaluated inside your browser in under a millisecond, produces the exact Qibla bearing in degrees from True North. The magnetometer is then rotated to match, and the dial settles on the correct direction. Our companion Qibla article walks through the full mathematics with worked examples for New York, London, and Jakarta.

Because the calculation is geographic, it must be applied against True North, not the raw magnetometer output. Depending on your city, Magnetic North can differ from True North by 0° to more than 20°. The Online-Compass.com Qibla Finder applies the correct declination automatically using the NOAA World Magnetic Model, so the dial you see is already map-accurate.

Related Online-Compass Tools

Every tool below is browser-based, free, and privacy-first. Pair the Qibla Finder with any of these:

Frequently Asked Questions

Is this Qibla finder accurate enough for prayer?

Yes — the mathematical calculation is exact to the full precision of your GPS fix (typically ±5 metres under open sky). What governs real-world accuracy is sensor cleanliness at the moment of reading, not the underlying algorithm. With a calibrated magnetometer and a clean magnetic environment, Online-Compass.com delivers a final bearing accurate to approximately ±1°, which is more than enough for any prayer context.

The classical Islamic jurisprudence consensus is that you must face the Qibla to the best of your ability. When a reliable tested tool is available, use it. When none is available, an honest estimation based on known geographic direction is sufficient. Online-Compass.com is a reliable, tested, free tool — using it fulfils that requirement gracefully.

What happens if my phone loses internet or GPS mid-prayer?

The Qibla calculation itself never needs the internet. GPS signals come directly from satellites in orbit; the magnetometer reads the Earth’s magnetic field on your phone. After a single initial load of Online-Compass.com, the tool continues to work offline indefinitely.

If GPS temporarily loses fix because you’re in a basement or deep indoors, your phone holds the last known position for several minutes, which is more than enough for a prayer cycle. For hotel rooms where you stay for days, we recommend taking one outdoor reading on arrival, marking a physical landmark (door edge, corner of bed) as your reference, and praying against that landmark for the duration of your stay.

Why does the Qibla direction change so much between cities?

Because the Earth is a sphere. A straight line on a flat world map is not a straight line on the globe — it curves, following a great-circle arc. As you travel around the world, that arc sweeps through dramatically different compass directions. From New York the Qibla is approximately 58° (north-east). From London it is 119° (south-east). From Jakarta it is approximately 295° (west-north-west).

These are not small differences. Our Qibla Finder handles the math automatically — the moment you grant location permission, the browser plugs your GPS coordinates into the great-circle bearing formula with the Kaaba’s coordinates and returns the correct direction for wherever you happen to be standing. You never need to memorise city-specific bearings or look them up on a chart.

Does Online-Compass.com track my prayer times or location?

No. Online-Compass.com runs the Qibla calculation entirely inside your browser using JavaScript. When you grant geolocation permission, the coordinates are held in page memory, used for the great-circle calculation, and discarded when you close the tab. We do not send your GPS fix to our server, to any analytics provider, or to any advertising network.

You can verify this yourself. Open your browser’s developer tools, switch to the Network tab, and load Online-Compass.com. You will see the static page assets download once, then silence — no continuous location pings, no tracking beacons, no user identifiers. Your faith, your location, and your prayer times belong to you alone.

Can I use this tool while travelling abroad?

Yes — it is the primary use case we designed for. The Online-Compass.com Qibla Finder automatically recomputes the great-circle bearing every time you open the page, based on your current GPS position. Whether you land in Paris, Tokyo, São Paulo, Cape Town, or a small village in Norway, the tool returns the correct Qibla direction for your exact spot on Earth in under two seconds.

For international travellers, we recommend opening the page once on your home Wi-Fi the day before departure so the assets are cached for offline use. After that, the tool works anywhere with GPS signal — which is to say, almost everywhere on Earth. Paired with our Elevation Tool and Declination Calculator, it becomes a full travel-ready navigation kit.

Try every Online-Compass tool — free, no install.

All tools run entirely inside your browser using your phone's MEMS sensors, GPS, and magnetometer. No app store. No account. No tracking.

Qibla Finder - Online Compass