Mobile Device Tests compass heading DeviceOrientation

Compass Test

Estimate device heading from orientation events. Approximate only; not a calibrated magnetic compass.

Interactive tool

Run the test

Runs in your browser

Estimates heading from orientation sensors when the browser allows them. Approximate only — not survey-grade north. Phones work best; most desktops are unsupported. iOS may ask for permission after you press Start.

Press Start to begin.

Permission status

Checked in your browser. DeviceHub does not store permission grants.

  • Special permission Not required

Live results

Metrics update as you run the test. Nothing is uploaded.

Loading

Waiting for interactive tool output…

Device information

Labels and capability details reported by your browser.

No device details yet.

Description

About Compass Test

Introduction

This page estimates heading from device orientation events. Browsers do not provide a fully calibrated magnetic compass to every site. Values can drift and may need a permission prompt on iOS. Expect an approximate direction aid, not surveying-grade north.

What this tool does

It listens for orientation updates and shows an approximate heading when the device provides one.

When to use it

Use it on a phone to see whether orientation events arrive. Use a dedicated compass app for navigation-critical work.

How it works

Supported: many mobile Safari and Chrome builds with sensors. Unsupported: most desktops. Why: PCs lack magnetometers, and mobile browsers gate sensors for privacy. Permissions: motion/orientation on iOS when prompted. Hardware: phone/tablet with sensors. Expected: a changing heading while you rotate, or unsupported on desktop.

Step-by-step instructions

  1. Open the page on a phone or tablet.
  2. Allow motion/orientation if the browser asks.
  3. Rotate the device and watch the heading update.

Common problems

Desktop “unsupported” is normal. Indoors near metal can skew readings.

Privacy explanation

Orientation is processed locally. DeviceHub does not upload heading.

Runtime principles

Built for the browser

What happens when you run this test — without downloads or accounts.

  1. 01

    Runs in your browser

    Compass Test uses standard web APIs — no install, extension, or desktop app required.

  2. 02

    Reads what the browser allows

    Results come from events and capability signals the web platform exposes for this session.

  3. 03

    Private by default

    Input and diagnostic values stay in your browser session for display — nothing is sold as media.

Compatibility

Supported browsers

Expected support for modern engines. Individual APIs may still vary by device.

  • Chrome

    supported

    Latest stable

  • Firefox

    supported

    Latest stable

  • Safari

    supported

    Latest stable

  • Edge

    supported

    Latest stable

Devices

Supported devices

Hardware and form factors this browser test is designed to exercise.

  • Phones & tablets

    Touch and sensor APIs when the browser exposes them.

  • Mobile Chrome & Safari

    Primary targets for touch and motion diagnostics.

  • Convertible laptops

    Touch and orientation when tablet mode is active.

Privacy

Your data stays with you

Compass Test is built privacy-first. Diagnostics run in your browser session whenever web APIs allow.

Read our privacy policy

Troubleshooting

Common problems

Quick fixes before you dig into FAQs.

Heading jumps near metal
Expected magnetic interference. Move away from magnets, cases with plates, and laptop speakers; compass from deviceorientation absolute is approximate.
No absolute orientation
Some browsers omit absolute alpha. Try another mobile browser, grant motion/orientation permission on iOS after a user gesture, and compare Magnetometer Test on Chromium.
Desktop unsupported
Common. Retest on a phone; unsupported desktops are valid capability results.

FAQ

Frequently asked questions

Structured answers for users and FAQ rich results.

Browse FAQs
Is this a calibrated compass?
No. It estimates heading from orientation events (and webkitCompassHeading when present). Approximate only.
Why does desktop show no heading?
Most desktop browsers have no compass path. After Start, if no samples arrive, that is a normal platform limit.
What do browsers expose?
Device orientation angles when sensors and permission allow; some Safari builds also expose webkitCompassHeading.
What do they not expose?
Guaranteed true magnetic north or survey-grade accuracy.
Which browsers/devices work?
Phones and tablets (Safari/Chrome) more often. Desktops usually do not.
Permissions or hardware?
iOS may require motion/orientation permission after you press Start. You need a device with orientation sensors. Deny shows a clear retry message — values are never invented.

Newsletter

Updates coming soon

A lightweight email digest for new tools and release notes is planned. No signup form is live yet — check Release Notes for product updates.

Release notes

Need another diagnostic after Compass Test?

Explore related DeviceHub tools that pair well with this test.