Online Compass

Open this page on a phone or tablet, press Start and allow motion access; the dial turns to show the heading in degrees from magnetic north (0° = north, 90° = east, 180° = south, 270° = west). Computers without a compass sensor cannot show a heading.

NESW
--°

Press Start to turn on the compass.

Hold the device flat. Move it in a figure 8 if the reading drifts.

Did this solve your problem?
Prefer us on Google

How to use

  1. Open the page on a phone or tablet and press Start. On iPhone and iPad, tap Allow when the browser asks for motion and orientation access.
  2. Hold the device flat and level, away from magnets, speakers, metal cases and car dashboards. The dial turns and the number shows the heading in degrees.
  3. If the reading drifts, move the device in a figure 8 a few times to recalibrate the sensor.

How it works

The browser reports the device orientation. On iPhone it provides a compass heading directly; on Android the page uses the absolute orientation event, where the heading is 360° minus the alpha angle.

The heading is measured clockwise from magnetic north: 0° north, 90° east, 180° south, 270° west. Magnetic north differs from true north by the local declination, a few degrees in many places and 15° or more in some regions.

Readings are smoothed so the dial does not jitter, and the screen rotation is added so the dial stays correct in landscape. If the device only reports a relative angle, the page warns you because that value is not a true compass.

FAQ

Why does the compass not work on my laptop or desktop?

Most computers have no magnetometer, so the browser has nothing to report. Open the page on a phone or tablet instead. Some Windows tablets and 2-in-1 laptops do have a sensor.

Why does it ask for permission on iPhone?

iOS requires an explicit tap before a web page can read motion and orientation data. Press Start and choose Allow. If you denied it earlier, close the tab and open the page again, or reset the website settings in Safari.

How accurate is it?

Phone compasses are usually within 5° to 15° when calibrated and away from metal or magnets. Use a magnetic compass for navigation where safety matters.

Is it magnetic north or true north?

Magnetic north. To get true north, add the local magnetic declination (east positive) to the reading.

Does it work offline or need HTTPS?

Browsers only allow sensor access on secure (HTTPS) pages, which this site uses. Once loaded, the compass needs no connection.