Home › Device & Internet Tests › Online Compass

Online Compass

Open this page on a phone or tablet, press Start compass and hold the device flat. The dial turns to show north, with your heading in degrees and as a cardinal direction.

Last updated:

–Press Start
Heading–
Locked bearing–
SensorNot started
° (E +, W −)
Advertisement
Advertisement

How to use the Online Compass

  1. Open the page on your phone and press Start compass. On iPhone and iPad, tap Allow when asked for motion and orientation access.
  2. Hold the phone flat, screen up, away from magnets, speakers and metal.
  3. Read your heading: the number at the top is the direction the top of your phone points to.
  4. Calibrate if needed by moving the phone in a figure 8 a few times.
  5. Lock a bearing to keep walking in the same direction, and enter your declination for true north.

Compass points and degrees

Headings are measured clockwise from north: 0° (or 360°) is north, 90° east, 180° south and 270° west. The 16-point compass rose splits the circle into 22.5° steps:

PointNameCenterRange
NNorth0°348.75°–11.25°
NNENorth-northeast22.5°11.25°–33.75°
NENortheast45°33.75°–56.25°
ENEEast-northeast67.5°56.25°–78.75°
EEast90°78.75°–101.25°
SESoutheast135°123.75°–146.25°
SSouth180°168.75°–191.25°
SWSouthwest225°213.75°–236.25°
WWest270°258.75°–281.25°
NWNorthwest315°303.75°–326.25°

How the browser finds north

Phones combine a magnetometer, accelerometer and gyroscope. Web pages read the result through the DeviceOrientation API:

  • iPhone and iPad (Safari) provide webkitCompassHeading, the heading in degrees from magnetic north, plus an accuracy value. Access must be granted with a tap.
  • Android (Chrome, Edge, Samsung Internet) fire deviceorientationabsolute events whose alpha angle is measured against north. Because alpha increases counterclockwise, the heading is heading = 360° − alpha.
  • The tool also adds the screen rotation angle, so the heading stays right when the phone is in landscape.

Magnetic north vs true north

A compass points to magnetic north, which is not the same as the geographic North Pole. The angle between them is the magnetic declination, and it changes with location and slowly over the years:

true heading = magnetic heading + declination (east declination positive, west negative).

PlaceApproximate declination (2025)
New York13° W (−13)
Chicago3° W (−3)
Denver7.5° E (+7.5)
Seattle15° E (+15)
London1° E (+1)
Sydney13° E (+13)

Look up the current value for your exact location with NOAA's magnetic field calculator before relying on it for navigation. This online compass is a handy guide, not a replacement for a proper compass in the backcountry.

Frequently asked questions

Why doesn't the compass work on my computer?

Laptops and desktop computers don't have a magnetometer (compass sensor), so the browser has no heading to report. Open the page on a phone or tablet instead.

How do I enable the compass on iPhone?

Press Start compass and tap Allow when Safari asks for access to motion and orientation. If you tapped Don't Allow, close the tab and reopen the page to be asked again. The page must be opened over https.

Why is the heading jumping or wrong?

The magnetic sensor is easily disturbed by magnets, phone cases with magnetic clasps, laptops, speakers, cars and steel structures. Move away from them and calibrate by moving the phone in a figure 8. Turning on smoothing also steadies the reading.

Does it show true north or magnetic north?

The sensor measures magnetic north. Enter your local magnetic declination (east is positive, west is negative) and tick True north to correct it. Declination is about −13° in New York, +13° in Seattle and close to 0° in much of Europe.

What does 'relative orientation only' mean?

Some browsers only report how the device has rotated since the page opened, not where north is. The dial then can't point to real north. Chrome on Android and Safari on iOS provide real compass headings.

Is my orientation data sent anywhere?

No. The sensor readings are processed in your browser only and are never uploaded or stored.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Touch Screen TestCheck multi-touch points, draw trails and find dead zones on any touchscreen.Vibration TestTest your phone's vibration motor with short, long, SOS, heartbeat and custom patterns.What Is My Screen ResolutionSee your screen resolution, viewport, pixel ratio, colour depth and display features.Refresh Rate TestCheck your monitor's refresh rate in Hz and spot dropped frames.Bearing CalculatorInitial and final bearing, compass direction and great-circle distance between two coordinates.Magnetic Declination CalculatorFind magnetic declination, inclination and field strength for any place and date (WMM2025).Online ProtractorMeasure any angle on screen or in a photo with a draggable 360° protractor.Qibla Direction FinderFind the Qibla from your location: exact bearing to the Kaaba, live phone compass and map path.Internet Speed TestMeasure download, upload, ping and jitter.What Is My IPSee your public IP address and location.Battery Status CheckerCheck your battery level, charging state and time to full or empty.What Are My GPS CoordinatesSee your latitude and longitude in decimal and DMS, with accuracy and maps.Bubble LevelTurn your phone into a spirit level with surface and bar modes.Browser Feature CheckerTest which Web APIs, CSS features and JavaScript syntax your browser supports.Local Storage InspectorView, edit and clear the cookies, localStorage and other data this site stores in your browser.FPS TestMeasure your browser's live frame rate, 1% lows and frame times, and compare 15-240 FPS.GPU TestSee your graphics card, WebGL and WebGPU support and limits, and run a quick GPU benchmark.CPU BenchmarkTest your processor's single-thread and multi-thread speed in the browser and compare scores.Ping TestCheck your latency, jitter and packet loss to Cloudflare, Google and other servers live.Accelerometer TestCheck your phone's accelerometer and gyroscope with live values, graphs and a tilt ball.Browser Fingerprint TestSee how unique your browser is: canvas, WebGL, audio, font and screen fingerprints, run locally.WebRTC Leak TestCheck if WebRTC exposes your real public or local IP address, even behind a VPN.IPv6 TestTest whether your connection supports IPv6, see your IPv4 and IPv6 addresses and check any site.Sequence Memory TestWatch squares flash in a 3x3 grid and repeat the growing sequence. Track your best level.Visual Memory TestRemember which squares light up as the grid grows. Three lives, levels and score history.Ad Blocker TestCheck if your ad blocker works: bait ad elements and ad/tracker requests, with every result listed.Browser Notification TestCheck notification permission, request it and send test notifications with custom options.Browser Storage TestSee your browser's storage quota and usage, and test localStorage, IndexedDB and cookie limits.Device Info CheckerSee your device's OS, CPU cores, memory, GPU, screen, network, battery and sensors in one report.Gyroscope TestCheck your phone's gyroscope with live rotation readings, a 3D phone model and graphs.WebGPU TestCheck if your browser supports WebGPU, see adapter info, limits and features, and run a GPU benchmark.4K Video Playback TestPlay generated 1080p, 4K or 8K test clips and see decode speed, dropped frames and smoothness.Browser BenchmarkTest your browser's speed: JavaScript, DOM, Canvas, WebGL, JSON and regex scores in one run.Bufferbloat TestMeasure lag under load: idle vs loaded latency, graded A+ to F with a latency chart.Cloud Ping TestPing AWS cloud regions worldwide from your browser and find the lowest-latency data center.Fake Flash Drive CheckerFill a USB drive or SD card with test data and read it back to expose fake capacity and bad memory.GPS SpeedometerLive GPS speed in mph, km/h or knots with max, average, trip distance and HUD mode.Am I Connected to the InternetCheck if your internet really works: tests several servers, latency and captive Wi-Fi portals.Online Serial PlotterPlot live numbers from Arduino, ESP32 or any USB serial device as a multi-line chart.Bluetooth Device ScannerFind nearby Bluetooth LE devices and read their services, characteristics and battery level.USB Drive Speed TestMeasure USB flash drive and SD card write and read speed in MB/s, right in your browser.Video Codec Support CheckerCheck H.264, HEVC, VP9 and AV1 support at 1080p, 4K, 8K and HDR, with hardware decode hints.What Is My ElevationSee your current elevation above sea level in feet and meters from GPS and terrain data.What Is My Time ZoneSee your time zone, UTC offset, abbreviation and daylight saving status instantly.Are Cookies Enabled TestCheck if cookies, localStorage and sessionStorage work in your browser, with fix steps.Dual N-Back TestWorking memory training: match squares and spoken letters from N steps back, with auto-levels.GPS Route TrackerRecord a walk, run or ride on a map: distance, time, pace, elevation, GPX and KML export.Is JavaScript Enabled TestCheck instantly if JavaScript is enabled, see your JS engine and get how-to-enable steps.Online PedometerCount steps with your phone's motion sensor: distance, calories, cadence and saved sessions.Reading Speed TestTime how fast you read a passage, answer comprehension questions and compare with adult averages.
See all 46 Network, Browser & System Tests →