More

Compass

Show your heading using the device orientation sensor.

Tap the button to allow access to your device's orientation sensor.

N E S W
0°
N

Reading heading...

What is this?

This tool uses your smartphone's built-in magnetic (orientation) sensor to show which direction your device is facing, as N/E/S/W and a heading in degrees (0-360°). No app install required — it runs right in your browser.

How to use it

Tap Allow orientation access. On iOS, a permission prompt will appear. Once allowed, the dial rotates to match your device's actual heading, showing the degree value and direction (N/E/S/W). On Android and some other devices, it works immediately without a prompt.

Note: Requires HTTPS. Devices without a sensor (most desktop PCs) or denied permission will not work. This tool is best-effort and reference only — do not use it for precision navigation or surveying.
Magnetic north vs. true north, and declination

The "north" a compass points to isn't the true geographic North Pole on a map (true north) — it's magnetic north, the direction Earth's magnetic field points. Magnetic north follows the flow of Earth's internal magnetic field and sits in a different location from true north; the gap between them (called declination) varies by location. In Korea, declination is known to run roughly 7-8 degrees west, so hiking or surveying that needs precise heading must correct for this offset. This tool displays the raw sensor reading without declination correction, as an everyday compass — for precision work, pair it with a dedicated compass or map app that applies declination correction.

How the magnetic sensor works (calibration)

A smartphone compass relies on a built-in magnetometer that measures magnetic field strength along three axes. Over time, or after sitting near metal or electronics, the sensor can pick up a slight "bias" that skews readings — a process called calibration corrects this. The most common method is to hold the phone and wave it in a figure-8 motion several times; this lets the sensor sample the field from multiple orientations and cancel out the distortion. If your compass seems off, try the figure-8 motion first.

Why indoor readings drift more (sensor access and limits)

Rebar in concrete buildings, appliances, speakers, even a laptop on your desk can create localized magnetic fields that throw off the sensor. As a result, the same device tends to show much larger error indoors than outdoors, and readings can swing wildly near elevators or metal cabinets. Honestly: this tool only starts reading the sensor after you tap "Allow orientation access" on iOS, and it won't work if permission is denied or on a device without a sensor (most desktop PCs). Sensor data is calculated and shown entirely in your browser and is never sent anywhere.

Real-world uses

Handy for getting a rough sense of direction outdoors, checking room or furniture orientation indoors, or estimating where the sun will be — everyday direction checks.

The compass isn't working.
This compass relies on your device's orientation (magnetic) sensor, so it may not work on desktop PCs without a sensor or in some browsers. It requires HTTPS, and on iOS you must tap "Allow orientation access" to grant permission.
Is the heading accurate?
This tool simply displays your device's built-in magnetic sensor reading, for reference only. Nearby metal, magnets, or electronics can affect it, so for uses requiring precise heading (hiking, sailing), use a dedicated compass as well.
Nothing happens when I tap the permission button.
On iPhone Safari, "Motion & Orientation Access" must be allowed under Settings > Safari > Motion & Orientation Access. If it still doesn't respond after allowing, refresh the page and try again.
Is sensor data sent to a server?
No. Orientation sensor values are calculated and displayed entirely in your browser and are never sent to or stored on a server.