More games at WuGames.ioSponsoredDiscover free browser games — play instantly, no download, no sign-up.Play

Digital Compass

Free online digital compass with smooth rotation. Find magnetic north, get precise heading, GPS coordinates in real-time. No app needed. Works on phone & tablet.

Idle
N
NE
E
SE
S
SW
W
NW
N
Info Compass information
Magnetic heading:--
Guide Usage guide
  • Tap 'Start compass' and grant sensor permissions when prompted.
  • Hold your device flat and away from metal objects or magnets.
  • If accuracy is low, calibrate by moving your device in a figure-8 pattern.
  • The red needle always points to magnetic north.
  • Use fullscreen mode for better visibility outdoors.

Free Online Digital Compass - Accurate Navigation Tool

The Digital Compass is a free online tool that uses your device's built-in magnetometer sensor to determine magnetic north and display your current heading in real-time.

Designed with advanced smoothing algorithms, our compass provides smooth, lag-free movement unlike common tools. Using exponential moving average techniques and requestAnimationFrame, we ensure the smoothest and most accurate display.

Perfect for:
• Navigation and wayfinding while traveling
• Hiking, mountaineering, and trekking
• Camping and outdoor activities
• Construction direction and feng shui
• Geography and science education
• Navigation and route guidance
• Any situation requiring direction finding

No app installation needed, works directly in browser. Completely free and secure.

Key Features

  • Real-time magnetic heading display (0-360°) with high accuracy
  • Beautiful visual compass rose with 8 cardinal directions: N, NE, E, SE, S, SW, W, NW
  • Smooth compass needle movement without lag thanks to advanced smoothing algorithms
  • Calculates both magnetic and true heading
  • Accurate GPS coordinates display (latitude, longitude)
  • Sensor accuracy indicator (High/Medium/Low)
  • Fullscreen mode for convenient outdoor use
  • Detailed degree markings every 5° with major marks every 30°
  • Automatic calibration and declination adjustment
  • Multi-language support (Vietnamese, English, Spanish)
  • Compatible with most smartphones and tablets with magnetometer

Tips for Most Accurate Results

  • Keep your device flat and parallel to the ground (not tilted)
  • Move away from electronics (computers, speakers, TVs), large metal objects and magnets
  • If compass is jumpy or inaccurate, calibrate by rotating device in figure-8 motion in the air
  • Note: Magnetic north differs from true geographic north (can vary 0-20° by location)
  • Use in open areas away from tall buildings for best GPS performance
  • Remove magnetic interference sources like bracelets or magnetic watches before use
  • On iOS 13+, remember to grant 'Motion & Orientation' permission when requested
  • Accuracy depends on your device's magnetometer sensor quality
Digital Compass — Free online digital compass with smooth rotation. Find magnetic north, get precise heading, GPS coordinates in real-time
Digital Compass

FAQ - Frequently Asked Questions

A digital compass uses the magnetometer (magnetic field sensor) built into smartphones/tablets to measure Earth's magnetic field. The sensor detects the direction of the magnetic field and determines magnetic north. Our smoothing algorithm filters noise and smooths movement, creating a stable and accurate display.

This could be due to: (1) Magnetic interference from nearby electronics or metal objects, (2) Sensor needs calibration - rotate device in figure-8 pattern, (3) Device not held flat. Our new version includes smoothing algorithms to minimize jitter and create much smoother movement.

Magnetic North is where compass needles point - the location of the magnetic North Pole. True North is the direction to the geographic North Pole. The difference between these is called magnetic declination, which can range from 0-20° depending on location. Our tool displays both values.

Hold your phone and move it in a figure-8 pattern in the air, repeat 2-3 times. This helps the magnetometer sensor self-calibrate and eliminate magnetic interference. Calibrate when: (1) First time using, (2) Accuracy shows 'Low', (3) Compass needle is unstable.

To access the magnetometer and device orientation sensor, the browser requires user permission. This is a browser security measure (especially iOS 13+). No data is sent or stored - all processing happens on your device.

Works on most modern smartphones and tablets with magnetometer sensors (iPhone 3GS+, most Android devices). Desktop/laptop computers typically don't have this sensor so cannot use it. Test by clicking 'Start compass' - if you get an error, your device doesn't support it.

GPS requires: (1) Location access permission granted, (2) Connection to satellites (better outdoors than indoors), (3) Internet connection to speed up positioning. If still not showing, check your device's location settings and ensure you're in an open area.

Digital compasses have equivalent or higher accuracy than mechanical compasses, with errors around 3-5°. Advantages include no wear and tear, electronic calibration capability, and precise numerical display. However, digital compasses are sensitive to magnetic interference so need to avoid electronics.

Frequently Asked Questions

The Digital Compass reads your device's magnetometer through the Web DeviceOrientation API (or the modern AbsoluteOrientationSensor) and computes your heading relative to magnetic north. It displays the bearing in degrees from 0 to 360 (N=0°, E=90°, S=180°, W=270°), plus an arrow rotated to show where magnetic north lies relative to the device's top edge. When GPS is also available, the tool can optionally show GPS coordinates and apply a magnetic declination correction so the heading reflects true (geographic) north rather than magnetic north. The DeviceOrientation API combines magnetometer with accelerometer and gyroscope through OS-level sensor fusion, producing a smooth heading that updates at 30–60 Hz.

Phones have largely replaced standalone magnetic compasses for everyday navigation: hiking off-trail, geocaching, sailing, surveying property lines, orienting solar panels or satellite dishes, aligning architectural features, finding qibla direction for prayer, and even helping in emergency situations where you need to walk in a fixed direction. Compared to a needle compass, the phone version adds GPS location, automatic declination correction, the ability to log a track of bearings over time, and integration with mapping apps that show your heading on the map. Limitations are real — phones can fail at high latitudes, near metal, in strong magnetic interference, or during electrical storms. A small backup magnetic compass remains good practice for serious wilderness use.

Best case for a well-calibrated phone far from metal in normal magnetic conditions: ±3° to ±5° from true north after declination correction. This is enough to find a peak 5 km away within ±400 m or a landmark across town within a few blocks. Realistic indoor use: ±10° to ±30° due to building steel, electronics, and lack of opportunity to calibrate. Near steel buildings, cars, or power lines, errors can spike to 90° or more — the compass may even flip. Compare to a quality marine sighting compass (Suunto MC-2, Brunton 8099) which delivers ±1° to ±2° in skilled hands. Phone accuracy is good enough for the majority of outdoor navigation but not for serious surveying. Always cross-check critical bearings against another reference.

Drift comes from the gyroscope integration in sensor fusion — over seconds to minutes, small errors accumulate and the heading slowly rotates away from the true value until the magnetometer correction pulls it back. You'll see this as the arrow smoothly turning even though you're not. Freezing happens when the magnetometer cannot get a usable reading — usually because you're inside a vehicle, in a basement with rebar walls, or surrounded by electronics that overwhelm the small Earth field signal. The fusion algorithm tries to fall back on gyroscope-only mode but eventually gives up and reports a stuck heading. Solutions: get clear of metal, hold the phone level and away from your body, perform a figure-8 calibration motion, or restart the compass app.

These three differ at most places on Earth. Magnetic north is where your compass points — a moving location currently in the Canadian Arctic that drifts about 60 km per year. True north (geographic north) is the rotational axis pole at 90°N. Grid north is the direction "up" on whatever map projection you are using — at the equator it equals true north, but UTM zones use a grid that tilts away from true north by up to 3° near zone boundaries. The angle from magnetic to true is called declination and varies from about −20° in the western US to +15° in eastern Europe; declination at any location and date is given by the World Magnetic Model (WMM2025 is current). Phone compass apps usually apply automatic declination correction if GPS is available, displaying true bearing by default.

The heading calculation requires knowing which way is "down" so the magnetometer can be projected onto the horizontal plane. When you hold the phone flat in your palm, the accelerometer reports gravity along the Z axis, and the calculation is straightforward. When you tilt the phone toward vertical, the projection becomes mathematically sensitive — tilt errors couple into heading errors with a multiplier of 1/cos(tilt). At 80° tilt (nearly vertical), a 1° tilt error becomes 6° heading error. Most phones use a quaternion-based fusion that handles tilt correctly up to about 75°, beyond which they fall back to a simpler 2D calculation that becomes unstable. For best results, hold the phone horizontal or use a marine-style "sighting compass" mode if your app provides one.

These are two completely different measurements. Magnetometer heading is your facing direction — where the phone's top edge points. GPS heading is your direction of motion derived from successive position fixes — where you are moving, regardless of which way the phone faces. When walking forward, the two should roughly agree, though GPS lags by 1–3 seconds. When standing still, GPS heading is undefined (no motion, no heading), and most apps either freeze the last value or report NaN. When you face one direction while sidestepping in another, only the magnetometer captures your face direction. For navigation, magnetometer heading is normally what you want; for vehicle navigation, GPS heading is more reliable because car-mounted phones often have heavy magnetic interference. Some apps switch automatically based on speed.

The reference standards are MIL-STD-1949 (military magnetic compass requirements, ±2° accuracy), ISO 25862 for marine compasses (±1°), and FAA TSO-C-46a for aviation compasses (±10° after calibration). These apply to dedicated mechanical and electronic compasses, not phones. Phone magnetometers themselves meet sensor-level standards like the JIS C 1602 for magnetometer accuracy, but the heading accuracy is limited by calibration drift and environmental magnetic interference rather than the chip's intrinsic capability. The Web DeviceOrientation API and AbsoluteOrientationSensor are governed by W3C drafts, with the OS providing sensor fusion implementations using Apple A-series motion coprocessor (iOS) or Qualcomm Sensor Hub (Android). Declination calculations use the World Magnetic Model (WMM) which is updated jointly by NOAA and the British Geological Survey every 5 years.