Only if the computer and browser expose orientation sensors.
Online Compass
Device-orientation compass in the browser
Device Orientation reports device rotation when hardware provides sensors
The compass uses device orientation events. On some mobile browsers, access is only granted after a tap and explicit permission. On desktops without sensors, heading may remain unavailable.
Start it on a device with sensors
- Click start compass and grant permission if the browser asks.
- Rotate the device slowly and watch degrees and cardinal point.
- Keep the device away from magnets and electronics to reduce interference.
Sources and references for this tool
These references help contextualize formulas, standards, APIs and limitations used on this page. They do not replace professional validation when a result has legal, financial, medical or operational impact.