What Is an Orientation Sensor Test?
This tool reads your device's real orientation sensor data live, using the standard
DeviceOrientationEvent API. It reports three genuine rotation values - alpha, beta, and gamma -
that describe your device's tilt and compass heading, updating continuously as you move the device. Every
number comes directly from your device's actual motion sensors; nothing is simulated or estimated.
How to Use the Orientation Sensor Test
- On iOS, tap "Enable Orientation Sensor" and grant permission when prompted - this is an explicit privacy requirement on iOS 13 and later.
- Tilt your device forward, backward, left, and right, and watch the dot on the dial move accordingly.
- Rotate your device flat on a table to see the alpha (compass) value change.
- Check "Absolute Heading" to see whether your device is reporting a true-north-referenced value or a relative one based on its starting position.
How It Works
The deviceorientation event fires continuously with three angle values: alpha represents
rotation around the vertical axis (compass heading, 0–360°), beta represents front-to-back tilt (-180° to
180°), and gamma represents left-to-right tilt (-90° to 90°). This tool listens for these events directly
and plots beta and gamma as a position on a 2D dial, giving you an immediate visual sense of your device's
tilt alongside the exact numeric values.
Understanding Your Results
- Dot moves smoothly and predictably as you tilt - your device's orientation sensors are working correctly and reporting accurate, responsive data.
- Values jump or jitter noticeably even when the device is still - can indicate sensor noise; this is more noticeable on some lower-cost devices and doesn't necessarily indicate a fault.
- Alpha stays fixed or doesn't update on rotation - some devices or browsers don't provide compass-calibrated alpha data reliably, particularly without a magnetometer or on certain browser/OS combinations.
- "Not reported" for any value - that specific axis isn't being provided by your device's sensor hardware or the current browser, which this tool states honestly rather than filling in a placeholder.
Browser Limitations
Orientation sensors are a mobile and tablet feature - desktop and laptop computers generally don't have the hardware to provide this data at all, so testing on a desktop will typically show no data, which is expected rather than a fault in the test. iOS requires an explicit permission grant through a user gesture before any orientation data becomes available, a privacy protection this tool respects and requests when needed. Whether "absolute" heading data (calibrated to true north) is available depends on your device having a magnetometer and the browser exposing calibrated readings.
Common Mistakes to Avoid
- Testing on a desktop and expecting live data - desktops and most laptops lack the motion sensors this test reads from.
- Denying the iOS permission prompt - without granting it, no orientation data can be read at all on iOS 13 and later.
- Expecting a perfectly accurate compass heading indoors - magnetic interference from nearby electronics and building structures commonly affects raw compass accuracy, even on healthy hardware.
Frequently Asked Questions
Why do I need to grant a special permission on iPhone?
iOS 13 and later require an explicit user gesture and permission grant before any website can access orientation sensor data, as a privacy protection against being tracked or fingerprinted through motion data.
Why does this show no data on my laptop?
Most desktop and laptop computers don't include the physical motion sensors needed to provide orientation data - this is a hardware limitation of the device, not a fault in the test.
What's the difference between alpha, beta, and gamma?
Alpha is rotation around the vertical axis, similar to a compass heading; beta is front-to-back tilt, like nodding your device forward or back; and gamma is left-to-right tilt, like rolling it side to side.
Is my location or movement data stored or sent anywhere?
No. All orientation data is read and displayed live in your browser only, for the current session, and is never transmitted or saved.
Why does my compass heading seem inaccurate?
Magnetic interference from nearby electronics, metal structures, or even the device itself commonly affects raw compass readings, especially indoors - this is a normal environmental limitation rather than a sensor fault.
Conclusion
Whether you're confirming your device's motion sensors are working or just curious how orientation data actually behaves, this gives you a live, genuine reading straight from the hardware. For a broader check of touch input, pair this with the Touch Screen Test.