Online Compass Tool

Online Compass — Real-Time Direction Finder

Find True North, Magnetic North, and real-time compass direction directly in your web browser.

000°
N·North
Magnetic North
READY
ORIENTATION GUIDE

How to Use Online Compass

01

Allow sensor access

Grant motion and orientation permissions if prompted by your browser (e.g. Safari on iOS). All processing is 100% on-device.

02

Hold your phone flat

Keep your device level in the palm of your hand parallel to the ground. This ensures clean 3-axis geomagnetic readings.

03

Rotate until stabilized

Turn your body and device. The rotating compass rose aligns your heading directly beneath the top 12 o'clock indicator needle.

Complete Guide & Technical Reference

Digital Compass Navigation: Real-Time Direction Finding in Your Browser

Learn how this browser-based compass measures azimuth bearings, accounts for Magnetic Declination, and delivers dependable orientation on your mobile device without installing third-party apps.

1. How Browser Orientation Sensors Work

A web-based compass determines real-time azimuth bearings and geographical orientation directly inside your browser. Rather than carrying a mechanical pocket instrument or downloading heavy native software, this digital instrument leverages the standard W3C DeviceOrientation API built into modern mobile browsers.

Operating as a free utility, this instrument samples geomagnetic field readings from your smartphone’s internal magnetometer chip, updating in real time, as fast as your device's sensors report. Whether you use Safari on iOS or Chrome on Android, the compass provides smooth visual tracking, zero ads, and on-device privacy.

2. How to Measure Heading and Find North

Determining your heading accurately requires proper device handling. Follow these steps for reliable orientation:

1Hold Your Smartphone Flat

Keep your device horizontal in the palm of your hand, parallel to the ground. Holding the phone level decouples gravity from the horizontal magnetic vector, preventing azimuth tilt drift.

2Grant Sensor Permission

On iOS 13+ devices, tap "Enable Compass" when prompted. Android devices running Chrome provide sensor access automatically over HTTPS. All calculations remain strictly on your device.

3Align with Lubber Line

Rotate your body until the red North pointer aligns with the top 12 o'clock indicator. The reading will display 0° N (360°), confirming you are facing directly North.

4Lock Course for Navigation

When following a specific trail or bearing line, tap "Lock Bearing". The instrument provides visual steering guidance showing whether to steer left, right, or maintain course.

Your current heading indicates the four primary cardinal directions: North (0° / 360°), East (90°), South (180°), and West (270°), along with 16-point notation including Northeast (45°), Southeast (135°), Southwest (225°), and Northwest (315°).

3. Magnetic North vs. True North: Understanding Magnetic Declination

A fundamental concept in field navigation is the distinction between Magnetic North and True North. Physical magnetized needles align with Earth's local geomagnetic flux lines, pointing toward Magnetic North. Topographical hiking maps and satellite coordinates, by contrast, reference True North (Geographic North).

  • Magnetic North: The point in the Northern Hemisphere where geomagnetic lines plunge vertically into Earth. Earth’s molten iron core causes Magnetic North to shift roughly 40 kilometers annually.
  • True North: The fixed geographic North Pole (90° N latitude) around which the Earth rotates on its geographic axis.
  • Magnetic Declination: The horizontal angle between Magnetic North and True North at your coordinates. Depending on your location, declination varies from 0° up to 30° East or West.

Navigating long distances without declination correction can lead you off target. Our compass integrates the official NOAA World Magnetic Model (WMM 2025–2030). Toggling "True North (GPS)" calculates your local variation angle on-device and adjusts your compass dial automatically.

4. Troubleshooting Magnetic Interference and Device Calibration

Modern smartphones contain tri-axial Hall-effect magnetometers sensitive enough to detect minute variations in Earth’s 25 to 65 microtesla (µT) magnetic field. However, external magnetic sources can distort heading readouts:

Hard Iron Interference

Caused by permanent magnets in smartphone cases, MagSafe rings, magnetic car mounts, and speaker coils.

Soft Iron Interference

Induced by structural steel rebar in reinforced concrete buildings, metal tabletops, and vehicle body panels.

Figure-8 Recalibration

Twisting your phone in a smooth figure-eight pattern through the air allows sensor fusion algorithms to re-sample ambient bias and eliminate magnetic offset.

5. Web-Based Navigation vs. Native Mobile Apps

When comparing a browser-based compass against native app store downloads, key practical advantages stand out:

On-Device Privacy

All sensor fusion and orientation calculations are processed strictly within your browser memory, without transmitting telemetry or location records to external servers.

No App Install or Storage Overhead

Opens instantly in any modern web browser without consuming device storage, background updates, or app store permissions.

Offline Capable Progressive Web App (PWA)

Equipped with service worker caching, the compass remains accessible even in remote wilderness areas without cellular coverage.

6. Navigational Terminology & 16-Point Compass Rose Reference

Navigators subdivide the 360° circle into 16 cardinal and intercardinal points to communicate accurate headings:

CardNameAzimuth Bearing
NNorth0° / 360°
NNENorth-Northeast22.5°
NENortheast45.0°
ENEEast-Northeast67.5°
EEast90.0°
ESEEast-Southeast112.5°
SESoutheast135.0°
SSESouth-Southeast157.5°
SSouth180.0°
SSWSouth-Southwest202.5°
SWSouthwest225.0°
WSWWest-Southwest247.5°
WWest270.0°
WNWWest-Northwest292.5°
NWNorthwest315.0°
NNWNorth-Northwest337.5°
DIAGNOSTICS

Troubleshooting & Sensor Diagnostics

Needle not moving or stuck on 0°

Ensure device orientation permissions are granted. On iPhone, visit iOS Settings > Safari > Motion & Orientation Access and verify it is enabled. Also ensure you are accessing via HTTPS.

Recommended fix: Check iOS Settings

Compass needle jumping or spinning erratically

Move away from magnetic interference such as laptop chargers, magnetic phone wallets, or metal structures. Perform the figure-eight calibration motion 2 to 3 times to recalibrate.

Recommended fix: Recalibrate Sensor

Heading inverted or reversed 180°

Ensure you are holding the device flat parallel to the ground. When held tilted upright in portrait mode, some sensors transition into camera orientation mode. Keep device horizontal.

Recommended fix: Hold Phone Flat

Desktop shows 'Sensor Unavailable'

Standard desktop PCs, iMacs, and typical Windows laptops do not have internal magnetometer hardware chips. Scan the on-screen QR code to open the compass on your smartphone.

Recommended fix: Use Mobile Device
Frequently Asked Questions

Online Compass FAQs

What is this online compass and how does it work?

This online compass is a digital navigation instrument that runs directly in your mobile or desktop browser without requiring an app download. Using your device's built-in magnetometer and motion sensors via the HTML5 DeviceOrientation API, it detects geomagnetic field lines in real time to display your heading in degrees (0°–359°) and cardinal directions.

How do I find North with this compass?

Hold your smartphone flat horizontally in the palm of your hand. The red needle on the rotating rose continuously points toward Magnetic North. Rotate your body until the red North pointer aligns directly with the top 12 o'clock lubber line (0° N). You can also tap "True North (GPS)" to calculate local magnetic declination and navigate toward geographic North.

Which direction am I currently facing?

Point the top edge of your phone forward while keeping it level. The digital heading and cardinal indicator at the top of the instrument display your current facing direction in degrees and cardinal points (e.g. 090° East or 180° South). You can also tap "Lock Bearing" to lock your desired course with visual steering alerts.

What is the difference between Magnetic North and True North?

Magnetic North is the magnetic direction physical needles align with, while True North points to the Earth's geographic rotational pole. The difference between them is Magnetic Declination, which our tool calculates on-device using the NOAA World Magnetic Model when True North (GPS) is enabled. Read our detailed Magnetic North vs. True North Guide above.

How do I calibrate the compass if readings seem erratic?

If the needle seems stuck or drifts due to nearby metal objects, electronics, or magnetic phone cases, step away from interference and move your device through the air in a smooth figure-8 motion for 5–10 seconds. Check our step-by-step Calibration Guide above for detailed instructions.

Can I use this compass on a desktop computer?

Desktop computers and most laptops lack the hardware magnetometer needed for live magnetic readings. On desktop, the tool provides an interactive manual demo mode so you can simulate headings and test bearings, along with a quick QR code to open the live sensor instrument on your mobile phone.

Does this compass work offline without internet?

Yes. Using Progressive Web App (PWA) caching via a service worker, the application shell is stored on your device after your first visit. You can bookmark it and use it even in wilderness areas without cellular coverage.

Is my location or orientation data tracked or sent to a server?

No. Privacy is a fundamental engineering principle of this tool. All sensor data and GPS coordinates are processed 100% locally inside your browser memory. We never store, transmit, or log your headings or location.

Why does iPhone Safari ask for permission before showing direction?

Starting with iOS 13, Apple requires web applications to obtain explicit user permission before accessing device motion and orientation sensors. This security boundary ensures websites cannot read sensor data without your knowledge.