Online Compass
Open this page on your mobile, 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). A computer without a compass sensor cannot show a heading.
How to use
- Open the page on your phone and press Start. On iPhone, tap Allow when the browser asks for motion and orientation access.
- Hold the phone flat and level, away from magnets, speakers, metal covers and the car dashboard. The number shows the heading in degrees.
- To check the facing of a door or house, stand at the door with your back to the house and note the direction. If the reading drifts, move the phone in a figure 8 a few times.
How it works
The browser reports the device orientation. iPhone gives a compass heading directly; on Android the page uses the absolute orientation event, where heading is 360° minus the alpha angle.
The heading is measured clockwise from magnetic north: 0° north, 90° east, 180° south, 270° west. In India the magnetic declination is only a few degrees at most, so the reading is close to true north.
Readings are smoothed and the screen rotation is added so the dial stays correct in landscape.
FAQ
Why is the compass not working on my laptop?
Most laptops and desktops have no magnetometer, so the browser has nothing to report. Open the page on a phone or tablet.
Can I use it for Vastu direction checks?
It gives a quick estimate of direction. For a Vastu reading, hold the phone away from metal and iron, take the reading at several points and repeat it. A good magnetic compass is better for a final decision.
How accurate is the phone compass?
Typically within 5° to 15° when calibrated and away from metal or magnets.