Online Compass: Digital Compass App

: Use your phone as an online compass: heading in degrees and compass points, magnetic or true north with your declination, back bearing and mils, and the turn to a bearing you set, a place from its coordinates or the Qibla
Note: Tap Start, then hold the phone flat in front of you with its top pointing the way you face. iPhone and iPad ask for motion access first.
Compass
Not startedA phone compass reads to about ±5° when calibrated and can be thrown off by metal and magnets nearby: carry a real compass and a map for navigation that matters. Readings stay on this device.
Reading
Tap Start on a phone or tablet: the heading in degrees and compass points, the back bearing, mils, and the turn to a bearing you set appear here.

Use your phone as an online compass. Hold it flat or upright and the dial turns to north, with the heading in degrees and in compass points, from magnetic north or, with your declination, true north. It gives the back bearing and mils too, and it can hold a bearing for you: one you type, the direction to a place from its coordinates, or the Qibla. A digital compass in the browser, with no compass app to install.

  1. Open this page on a phone or tablet and tap Start. iPhone and iPad ask for motion access first: tap Allow. A laptop or desktop has no compass sensor, so the page says so.
  2. Hold the phone flat in front of you, top edge pointing the way you face. The line at the top of the dial is your heading: read it in degrees under the dial and in compass points (Compass points 8, 16 or 32). Held upright, the heading is where the back of the phone, its camera, points.
  3. For true (map) north rather than magnetic north, set North to True and type your Declination, east or west, from NOAA's declination calculator (the link is beside the field).
  4. To follow a direction, pick Bearing to hold: a bearing you type, A place (your coordinates and the destination's, copied from a maps app) or Qibla (your coordinates only). A marker appears on the dial, To face it says which way to turn, and the dial turns green within ±5°. Hold this bearing keeps the way you face now as the bearing to follow.
  5. Hold freezes the reading so you can put the phone down and read it, and Copy reading copies every figure.

Readings worked out the way the compass works them out: the browser's absolute orientation (alpha 60, beta 2, gamma -1 lying flat; beta 85 held upright), then a declination, then the Qibla from typed coordinates.

Input
Lying flat: alpha 60, beta 2, gamma -1
Held upright: alpha 60, beta 85, gamma 0
Declination 12.5 E
Your location 40.7128, -74.0060
Output
Lying flat: 300° WNW (west-northwest), back bearing 120° ESE, 5,333 mils
Held upright: 300° WNW, where the camera points
With declination 12.5 E and North on True: 313° NW
Qibla from New York (40.7128, -74.0060): 58° true, 10,306 km (6,404 mi)

How accurate is an online compass?

As accurate as the phone's sensor: about ±5° when calibrated, which is fine for finding north, orienting a map or facing a direction, but not for precise navigation. If it is off by much more, move the phone in a figure 8 and keep it away from metal and magnets, including magnetic cases and car mounts.

Does this compass show true north or magnetic north?

Magnetic north by default, as a hand compass does. Set North to True and type your magnetic declination to read true (geographic) north, the north of maps and GPS; the page shows the other heading too.

Why does the compass not work on my laptop?

Laptops and desktop computers have no magnetometer, so there is nothing to read. Open the page on a phone or tablet; the Qibla and destination bearings still work out on a laptop from typed coordinates, they just cannot be shown on a turning dial.

How do I find the Qibla direction with this compass?

Set Bearing to hold to Qibla, type your latitude and longitude, tap Start and turn until To face it says On target. The bearing is the great-circle direction to the Kaaba, for example 58° from New York; with North on Magnetic, type your declination too, since the Qibla bearing is from true north.

Is there a compass app for Android and iPhone without installing anything?

This page is one: it runs in Chrome or Samsung Internet on Android and in Safari on iPhone and iPad, with nothing to install and no account. Add it to your home screen from the browser's menu to open it like an app.

Runs entirely in your browser. Nothing is uploaded.