🧭 Online Compass

Real-time directional compass for your device

Processed in your browser — files never leave your device
N
S
E
W
NE
NW
SE
SW
--°
Tap to enable

This compass requires a mobile device with orientation sensors.
Scan the QR code to open on your phone:

QR Code

Share This Tool

Point your phone in any direction and get a live heading in degrees — north, south, east, west — straight from the browser. No app to install. The compass reads your phone's magnetometer through the DeviceOrientation API, so it works on pretty much any phone made in the last decade. And everything runs in your browser. Nothing gets uploaded.

How It Works

Phone Magnetometer
➔
Browser Sensor API
➔
Live Compass Display

Your phone has a tiny magnetometer chip that measures Earth's magnetic field. The browser's DeviceOrientation API reads that sensor data and sends it to this page as a heading value — a number from 0 to 360 degrees. The compass needle and degree readout update in real time as you rotate your device. No GPS involved, just magnetism.

Examples

Aligning a TV Antenna

You need your antenna pointing at 215 degrees toward the broadcast tower.

INPUT
Open compass on phone Place phone flat on antenna mount Rotate antenna slowly
OUTPUT
Heading: 215° SW Antenna aligned to tower

Checking Apartment Sun Exposure

You're apartment hunting and want to know if the living room windows face south for good natural light. Stand at the window, hold your phone flat, and read the heading.

INPUT
Stand facing window Hold phone level, pointing outward
OUTPUT
Heading: 172° S Windows face south — great light

Finding North on a Hiking Trail

Trail fork with no sign. Your paper map says take the path heading northeast.

INPUT
Point phone down left trail path Read heading Point phone down right trail path Read heading
OUTPUT
Left trail: 310° NW Right trail: 47° NE ← this one

Who Uses This

🥾 Hikers

Quick bearing checks at trail junctions when the map says "head east" and you are not sure which way that is.

🏠 Home Buyers

Checking which direction windows face during apartment viewings to judge sunlight throughout the day.

📡 Technicians

Aligning satellite dishes, antennas, and solar panels to specific compass bearings.

🌴 Gardeners

Figuring out south-facing spots in the yard for plants that need full sun exposure.

Common Mistakes

Holding the phone upright instead of flat

The magnetometer works best when the phone is parallel to the ground. Holding it vertically like you're reading a text gives unreliable readings. Lay it flat in your palm or on a surface.

Standing next to metal objects

Cars, metal fences, refrigerators, even your laptop — all of these throw off the magnetometer. Step a few feet away from anything metal before taking a reading. The difference can be 30 degrees or more.

Skipping calibration

If the needle jumps around or seems stuck, your phone's magnetometer needs recalibrating. Wave it in a figure-8 pattern three or four times. Takes five seconds and fixes the issue almost every time.

Technical Details

Frequently Asked Questions

Why doesn't the compass work on my laptop?

Laptops and desktops don't have magnetometers. That's the sensor this tool reads. You need a phone or tablet — they have had magnetic sensors built in for over a decade now. There is no software workaround for missing hardware.

How accurate is a phone compass?

Most phones hit within 5 to 10 degrees of the correct heading after calibration. That is plenty accurate for hiking, checking window direction, or pointing an antenna. It won't match a surveyor's instrument, but for everyday orientation it does the job well.

How do I calibrate my phone compass?

Move your phone in a figure-8 pattern, rotating your wrist as you go. Do it three or four times. The magnetometer recalibrates against local interference and the reading should stabilize within seconds. Do this away from metal objects for best results.

Does the online compass use GPS or my location?

No. It only reads the magnetometer — the chip that detects magnetic fields. GPS is a completely separate sensor. This compass doesn't know or care where you are on the planet. It just knows which way is north relative to where you're standing.

Does the online compass work without internet?

Yes, once the page finishes loading. The compass runs entirely on your phone's hardware after that. You could switch to airplane mode and it would keep working. The browser just reads sensor data locally — no server communication needed.