Free Online Compass tool icon
Compass • Local-only

Free Online Compass

Digital compass powered by your browser sensors. Supports magnetic and true north modes with optional location-based declination. Everything runs locally.

N
S
W
E
Magnetic north
Source:
Controls
Not started
Smoothing
20%
Higher smoothing feels more responsive; lower smoothing is more stable.
True north info
Disabled
Declination
Location
True north = magnetic north + declination (estimated using a geomagnetic model; accuracy depends on your device magnetometer and environment).

How to Use

  • Click "Start compass" to request device orientation permissions (required on iOS).
  • Once allowed, the compass displays your current heading (Magnetic North by default).
  • Click "Enable true north" to request location access and calculate magnetic declination.
  • If the needle is jittery, adjust the "Smoothing" slider or calibrate by moving your device in a figure-8 motion.

Tips & FAQ

  • iOS users must manually start the compass and allow "Motion & Orientation" access.
  • "True North" requires GPS location to calculate declination; if denied, it falls back to Magnetic North.
  • This tool requires a secure context (HTTPS or localhost) to access sensors.
  • Keep away from magnetic interference (magnets, speakers) for accurate readings.