Skip to content
starting…
0°N

heading

decl 0.0°·src —·±—°·— Hz
free · private · no install

A compass that points to true north, not just magnetic.

Real-time device heading with automatic declination, GPS coordinates, Qibla direction, and sun position — all in your browser. Nothing to install, nothing uploaded.

true vs magnetic

Declination is computed automatically from the World Magnetic Model — see both headings at a glance.

privacy first

All sensor processing happens on-device. No accounts, no tracking, and nothing ever leaves your browser.

works everywhere

Chrome, Safari, and Firefox on iOS and Android, with a GPS heading fallback when you're moving.

how it works

Engineered for accuracy.

Your phone's magnetometer, gyroscope, and accelerometer feed a tilt-compensated heading engine, corrected against the World Magnetic Model.

Sensor fusion

Heading is derived from orientation and magnetometer data, smoothed in real time so the needle stays steady in your hand.

True north correction

Declination varies from −30° to +30° across the planet. We apply the World Magnetic Model so true north is exact, wherever you are.

Local by design

Coordinates, Qibla bearing, and solar calculations run entirely on your device. Your location never touches a server.

the free online compass

What is an online compass?

An online compass is a digital compass that runs directly in your web browser — no app to download, no install, and nothing to pay for. Open this page on your phone and, in a few seconds, you have a free online compass that shows your live heading in degrees, points toward north from wherever you are, and can correct itself for the difference between magnetic north and true north.

Because it lives in the browser, it behaves the same whether you are at home, in the field, or in a classroom. Search "online compass" on Google, open this site, and your device's sensors take over. Unlike a traditional compass with a needle fighting gravity and drift, an online compass combines your phone's magnetometer, gyroscope, and accelerometer to produce a more stable and reliableonline compass direction.

Every tool here is built around one job — helping you orient yourself andfind north online — and around it sits a full navigation toolkit: a live heading readout in degrees, cardinal and intercardinal directions, a one-tap fullscreen mode, and an accuracy indicator so you always know how much to trust the reading. Because everything is processed locally, your location never leaves your device.

How an online compass works

Three sensors do the work: a magnetometer measures Earth's magnetic field, an accelerometer detects which way is down, and a gyroscope tracks rotation. The browser fuses them into a single heading, and tilt compensation keeps it correct even when the phone is not flat.

Online compass vs. a traditional compass

A needle compass is simple but must sit level, and it always points to magnetic north — not the north on your map. An online compass adds the exact degree of your heading, automatic declination correction, and a display you can read in the dark.

Why use a browser compass at all?

It opens in one tap from a bookmark or a search, with nothing to install and no account. If your phone has a compass app you rarely open, a browser compass is the one you will actually use.

getting started

How to use an online compass.

Five steps take you from opening the page to a heading you can trust. The whole process takes less than a minute, and you can repeat the calibration whenever the reading drifts. For a deeper walkthrough, read ourstep-by-step online compass guide.

The single biggest factor in accuracy is not the software — it is where you stand and what is near your phone. Keep that in mind through every step.

  1. 01

    Open the compass on your phone

    Load this page in Safari, Chrome, or Firefox on a phone or tablet with a magnetometer.

  2. 02

    Enable the live compass

    Tap "Enable live compass" and allow motion and orientation access when your browser asks.

  3. 03

    Hold the phone flat, away from metal

    Rest it in your palm, screen up, and keep it clear of laptops, speakers, and magnetic cases.

  4. 04

    Read your heading and calibrate

    The top marker shows the direction you face. Trace a figure-eight if the number wobbles.

  5. 05

    Switch to true north

    Enable declination so the heading matches maps and any bearing you plan to follow.

true vs magnetic north

Why declination decides whether you're right.

A compass needle does not point to the top of the map. It points to magnetic north, a moving spot in the Arctic. The gap between that and true north is declination — the most common reason a compass reading seems "wrong".

Declination is not a fixed number you can memorise. It depends on where you are on the planet, and it drifts by a fraction of a degree each year as Earth's molten core moves. In London the two norths have stayed nearly aligned for years, which is why British maps often ignore the difference; in parts of Canada and South Africa they can be 20° or more apart — the difference between reaching your car and turning down the wrong street.

This is exactly what an uncorrected compass gets wrong. Our online compass applies the World Magnetic Model for your coordinates, so toggling totrue north lines the heading up with a map grid. The table below shows roughly how large the correction is in well-known places; tap "Use location for declination" on the dial for the exact value where you are.

Approximate magnetic declination by city
LocationApproximate declination
London, United Kingdom≈ 0°
Paris, France≈ +1° east
New York, United States≈ −13° west
Toronto, Canada≈ −11° west
Los Angeles, United States≈ +12° east
Anchorage, United States≈ +15° east
Sydney, Australia≈ +12° east
São Paulo, Brazil≈ −23° west
Cape Town, South Africa≈ −25° west
Tokyo, Japan≈ −8° west

Approximate mid-2020s values for illustration only. Declination changes every year and by exact location — always use the live correction in the tool.

reading the dial

Headings, bearings, and the compass rose.

Once the dial is live, the only skill left is reading it.

Heading

The direction you are currently facing, in degrees clockwise from north. Facing east is 90°, south 180°, west 270°.

Bearing

The direction from one point to another. Use the bearing calculator to get it between two coordinates.

Azimuth

A bearing expressed as an angle from 0° to 360°. The sun tool gives the sun's azimuth for your location.

Back bearing

The reverse direction — the bearing from B back to A. Add 180° if the forward bearing is under 180°, otherwise subtract 180°.

The 16-point compass rose

Between the four cardinal points sit intermediate points. A 16-point rose divides the circle into 22.5° segments — the resolution most navigation and weather reports use.

N0°
NNE22.5°
NE45°
ENE67.5°
E90°
ESE112.5°
SE135°
SSE157.5°
S180°
SSW202.5°
SW225°
WSW247.5°
W270°
WNW292.5°
NW315°
NNW337.5°

accuracy

How accurate is a phone compass?

Used well, a phone compass is accurate to within a degree or two. Used carelessly, it can be off by twenty. The difference is almost entirely environmental.

The magnetometer measures field strength in microteslas and is built for navigation, not surveying: fine for following a trail or aligning a solar panel, but no match for a professional instrument. What matters is the accuracy indicator on the dial — trust a steady reading, and move when it jumps by tens of degrees, because the field around you is distorted. Indoors, expect a few degrees of drift from wiring and furniture; outdoors, clear of a car or railing, readings are reliable. If precision matters, average a few readings and cross-check against thesun's position.

calibration

Get the most accurate reading.

Phone magnetometers are sensitive to nearby metal and magnetic fields. A few seconds of calibration turns a drifting needle into a trustworthy heading.

  1. 01

    Hold the phone flat

    Keep the screen parallel to the ground, in your palm or on a stable surface.

  2. 02

    Trace a figure-eight

    Wave the phone gently in a figure-eight motion a few times, then hold still.

  3. 03

    Move away from interference

    Step away from laptops, phones, magnets, and metal tables before taking a reading.

  4. 04

    Confirm with the sun

    Use the sun position marker on the dial as an independent cross-check in daylight.

compass types

Not all compasses work the same way.

Knowing which technology you are holding explains its strengths, its limits, and why a phone compass behaves differently from the brass one in a drawer.

Comparison of compass types
TypeWhat it measuresBest forLimitations
Traditional magnetic compassEarth's magnetic field with a floating needleOffline reliability, zero batteries, teachingNeeds a level surface, no declination correction, single sensor
Phone sensor compass (this site)Magnetometer plus accelerometer and gyroscope, fusedLive heading in degrees, tilt compensation, map alignmentSensitive to nearby metal and magnets
GPS course compassDirection of travel from GPS position changesNavigation while moving, works without a magnetometerOnly works when moving; useless standing still
GyrocompassEarth's rotation with fast-spinning gyroscopesShips and aircraft, unaffected by magnetic fieldsLarge, expensive, slow to settle

everyday uses

Who actually uses an online compass.

Beyond the obvious hiking case, a quick heading solves a surprising number of small, real problems.

Hiking and trail navigation

Orient a paper map before you set off, take a back bearing to retrace your route, and confirm direction under tree cover where GPS is slow to settle.

Photography and video

Plan a golden-hour shoot by checking which way a location faces, and predict where the sun will rise and set using the sun tool.

Gardening and solar

Find which way a garden or balcony faces to place sun-loving plants, and align solar panels toward true south or north for maximum yield.

Home and property

Check a room's orientation for light and heating, describe a property's aspect accurately, and settle the "which way does the living room face?" question in seconds.

Travel and the Qibla

Find the direction of prayer anywhere with theQibla finder, and get your bearings in an unfamiliar city before the map app catches up.

Education and STEM

Teachers and students can watch angles, bearings, and the difference between true and magnetic north come alive on a dial that responds to a real instrument.

troubleshooting

When your compass points the wrong way.

A misbehaving compass is almost always an interference problem, not a broken sensor. Work through these checks in order.

The dial spins or the number climbs nonstop

You are near a strong magnetic source. Remove MagSafe cases and magnetic mounts, move away from speakers, motors, and metal, then recalibrate.

The reading is steady but seems a few degrees off

That is usually declination. Toggle on true north and enable location so the correction applies to your exact coordinates.

Nothing happens when I tap the button

Sensor access requires a secure HTTPS page and a device with a magnetometer. Check that you granted motion and orientation permission for this site.

It works on my phone but not my laptop

Most laptops have no magnetometer, so there is nothing to read. Use your phone for live headings; the computer still shows the demo dial and sun and moon data.

The needle lags when I turn quickly

Smoothing keeps the reading stable, so it trails fast spins slightly. Slow down for a moment and the number will settle.

faq

Questions, answered.

What is an online compass?

An online compass is a digital compass that runs inside your web browser instead of as a separate app. It reads the magnetometer, accelerometer, and gyroscope in your phone and turns them into a live heading in degrees — no download required. You open a page like this one, grant sensor access, and the dial updates in real time as you turn.

How do I use an online compass on my phone?

Open this page on your phone, tap "Enable live compass", and hold the device flat in your palm. The heading appears below the dial in degrees and as a compass point. For the most accurate results, trace a figure-eight motion to calibrate the magnetometer and keep the phone away from metal and magnets.

Is an online compass accurate?

A calibrated phone compass is typically accurate to within about 1–5 degrees outdoors. The magnetometer itself is sensitive, and nearby metal, electronics, or a magnetic phone case can throw it off. Once you calibrate and step away from interference, readings usually agree with a physical compass within a couple of degrees.

What is the difference between true north and magnetic north?

Magnetic north is the direction your phone's magnetometer points — it follows Earth's magnetic field, which shifts every year. True north is the geographic North Pole that maps use. The angle between the two is called magnetic declination, and this tool corrects for it automatically so your heading lines up with a map.

What is magnetic declination?

Magnetic declination is the angle between magnetic north and true north at a given location. It ranges from roughly −30° to +30° around the world and changes slowly over time. In London it is near zero, while in parts of Canada it can exceed 15°. Because it varies by place, a GPS-accurate declination correction matters whenever you follow a bearing.

Why does my compass needle jump around or spin?

A magnetometer is a sensitive instrument. Phone cases with magnets, speakers, laptops, metal tables, car dashboards, and steel-framed buildings all bend the magnetic field around you. Move away from these, hold the phone flat, and trace a figure-eight to recalibrate. A few degrees of movement indoors is normal.

How do I calibrate my phone's compass?

Hold the phone flat, then rotate it slowly through a figure-eight several times while keeping the screen facing up. This gives the magnetometer a full range of readings to calibrate against. Finish by holding still for a second. Repeat any time the heading looks unstable.

Does an online compass work offline, and on a laptop?

The dial keeps working offline once the page has loaded, because the heading is generated on your device. A laptop or desktop will not work for live headings, though — most have no magnetometer, so there is nothing to read. Use a phone or tablet; a computer still shows the demo dial and the sun and moon data.

Does an online compass ask for my location, and is it private?

Location is optional and only used to compute magnetic declination, the Qibla bearing, and sun position. All of the maths runs locally in your browser — there is no account, no backend, and no analytics. Your coordinates never leave your device, and you can always enter coordinates manually instead.

Can I use an online compass to find the Qibla?

Yes. The Qibla finder uses your coordinates to compute the great-circle bearing to the Kaaba in Makkah, accurate to the degree, plus the distance. You can then follow that bearing on the live compass dial to face it.

How can I find north without a compass?

In the northern hemisphere the sun is due south at local noon, so it casts shadows pointing north. At night, Polaris (the North Star) sits almost exactly above true north. This site's sun position tool gives the exact solar azimuth for your location and time, which is a reliable cross-check for any compass.

Do I need to install an app to use this compass?

No. Everything runs in the browser, so there is nothing to download, no app store, no sign-up, and no updates to manage. It works the same on iPhone, Android, and most tablets.

Is this online compass free?

Yes, it is completely free and there are no premium tiers or paywalls. Every tool on the site — compass, GPS coordinates, Qibla finder, bearing calculator, sun position, and sun & moon direction — is free to use.

Which direction is my house or window facing?

Stand at the window facing outward, hold your phone flat, and read the heading. North is 0°, east 90°, south 180°, and west 270°. Gardeners use this to plan sunlight, and photographers use it to predict where the sun rises and sets.

ready when you are

Find your bearings.

Point your phone north, check your Qibla, or plot a course — all in one free tool.