A compass in your phone's browser
This online compass reads your phone's magnetic sensor and shows your heading in degrees, from 0 to 359, plus the compass point out of 16 (N, NNE, NE, ENE, E…). The compass rose turns so that its N keeps facing north, and the mark at the top shows where the top of the screen points. It all runs on the device: nothing to install, no data sent. Handy for lining up a satellite dish or checking which way a garden faces.
How to use it
- Open the page on your phone. If it asks for permission, tap “Turn on the compass” and accept.
- Hold the phone flat with the top of the screen toward the direction you care about. Held upright, the back of the phone does the aiming. Landscape mode is compensated.
- Read the heading and compass point. “Smoothing” calms a jittery display.
- To follow a direction, tap “Save this bearing” (or press the space bar), or type a value into “Target bearing (°)”. A green mark appears on the rose, and the tool tells you, for example, “Turn 15° to the right” until it shows “On target bearing”, within ±2°.
“Keep the screen on” stops the phone from going to sleep while you walk. The target bearing and declination stay saved on your device.
How your phone finds north
Phones contain a magnetometer, a tiny chip that measures the Earth's magnetic field on three axes. With the accelerometer, which knows which way is down, it works out where the phone points. If your browser only reports a relative orientation, with no link to north, the tool says so instead of showing a wrong heading.
Smoothing averages directions, not numbers: between readings of 359° and 1°, the average is 0° (north), while a plain average of the numbers would give 180° (south).
Magnetic north vs true north
A compass points to magnetic north, not to the North Pole on your map. The angle between the two is the magnetic declination. It depends on where you are and changes every year: in 2026 it is close to zero across most of Great Britain, but can exceed 10° east or west in parts of North America. Look up the value for your town with an official geomagnetic calculator or on a recent hiking map, then enter it in “Magnetic declination” (east positive, west negative). With −12°, a magnetic heading of 102° becomes 90°: due east on the map. It matters: a 2° error puts you about 35 m off course after 1 km.
Calibration and interference
If the heading looks wrong or jumps, slowly move the phone through a large figure 8 in the air, turning it every way: the sensor recalibrates. Magnets (wallet cases, car mounts), speakers, car bodies, railings and reinforced concrete can throw the reading off by tens of degrees.
Frequently asked questions
How accurate is it?
Often within 5 to 10° after calibration, with no guarantee. Fine in town, not for navigating in the mountains or at sea: carry a real compass and a map.
Why does nothing happen on my computer?
Most computers have no magnetometer. Open the page on a phone, or use “Demo mode”: the left and right arrow keys turn by 1°, with Shift for 10°, or drag the rose.
How do I follow a bearing taken from a map?
Type it into “Target bearing (°)”, say 120. Facing 105°, the tool shows “Turn 15° to the right”. With a target of 350° while facing 10°, it says 20° to the left, because the shortest way passes through north.
Why does the heading move when I tilt the phone?
A little movement is normal: the tool follows the top of the screen when the phone is flat and its back when it is upright. Hold it flat and still for a steady reading.