Compass Direction Finder screenshot

Compass Direction Finder

Read a device-orientation heading as degrees and a cardinal name on a compass rose, with the iOS permission prompt.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Runs in this tab

A heading from the device sensor

Press Start and the page asks the browser for device orientation, then turns the reading into a bearing: the iOS webkitCompassHeading when the browser supplies it, otherwise the alpha angle converted so that zero is north. The rose rotates against the heading and the page prints the degrees and the sixteen-point cardinal name.

On iOS the page must request permission from that press, over HTTPS, and it says so plainly when the request is refused. If the browser has no DeviceOrientationEvent, or the event never fires because the device has no magnetometer, the page names the missing feature instead of showing a still needle. A relative alpha can drift, so the status panel reports which reference the browser gave.

Nothing is recorded. The heading is read in this tab, no location is requested, and the sensor listener is removed when you press Stop or leave the page.

Show the heading your device reports, as a bearing in degrees and as a cardinal direction, on a dial that turns with the reading.

The source is the browser's DeviceOrientationEvent — the iOS webkitCompassHeading where it exists, otherwise the alpha angle converted to a bearing — so a desktop with no magnetometer has nothing to show.

How to use Compass Direction Finder

Press Start compass and, on iOS, accept the motion permission from the button that reads Allow and start.

Hold the handset level and read Heading in degrees, with Facing naming the nearest cardinal point on the Compass rose.

Watch Sensor Status: when it reports that no orientation event arrives, the handset exposing it has no magnetometer, so press Stop instead of waiting.

Starting the sensor

Press Start compass. On iOS the button reads Allow and start, because the permission must be granted from a press on the page over HTTPS. Until you press it, nothing is read; Stop removes the listener and the dial freezes.

What the number is

The heading is the browser's own orientation value, not a calibration and not a corrected bearing. When the browser reports a relative alpha, the answer says so, because that reading can drift until it is re-zeroed by the system.

Where it stops

No averaging, no declination correction and no stored track. A desktop that exposes the event but has no magnetometer may simply never fire it, and the panel names that case instead of showing a heading of zero.

What to Expect

Best for

  • checking which way the phone is pointing, without another app
  • seeing whether a device exposes a compass at all

What this tool keeps

  • The sensor is read in the tab and the reading is never posted or stored; Stop ends the subscription.

Frequently asked questions

Where does the heading come from?

From the browser's DeviceOrientationEvent. On iOS the page uses webkitCompassHeading when it is present; elsewhere it converts the alpha angle to a bearing from north.

Why is there no reading on my laptop?

Most desktops have no magnetometer. Some browsers expose the event and never fire it, which is also why the page keeps a sensor-status line instead of printing 0°.

Why does the bearing drift?

When the browser reports a relative alpha rather than an absolute one, the value can drift until the system re-zeroes it. The page says which reference the browser reported; it does not correct it.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.