🧭 Online Compass
Real-time directional compass for your device
This compass requires a mobile device with orientation sensors.
Scan the QR code to open on your phone:

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
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.
Open compass on phone
Place phone flat on antenna mount
Rotate antenna slowly
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.
Stand facing window
Hold phone level, pointing outward
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.
Point phone down left trail path
Read heading
Point phone down right trail path
Read heading
Left trail: 310° NW
Right trail: 47° NE ← this one
Who Uses This
Quick bearing checks at trail junctions when the map says "head east" and you are not sure which way that is.
Checking which direction windows face during apartment viewings to judge sunlight throughout the day.
Aligning satellite dishes, antennas, and solar panels to specific compass bearings.
Figuring out south-facing spots in the yard for plants that need full sun exposure.
Common Mistakes
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.
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.
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
- Processing: 100% client-side, no data sent anywhere
- Sensor: DeviceOrientation API (magnetometer)
- Accuracy: 5-10 degrees on most phones when calibrated
- Browser Support: Chrome, Firefox, Safari, Edge (mobile)
- Offline: Works after initial page load, no connection needed
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.