Orientation Sensor Test

Tilt and rotate your device. This tool reads your real orientation sensor values live, straight from the browser's DeviceOrientationEvent API.

Mobile sensors / Orientation diagnostics

Orientation Sensor Lab

Inspect actual browser-reported orientation angles. Physical sensor availability and permission vary by device and browser.

Ready
Start the sensor on an HTTPS page. On iPhone, approve the motion/orientation permission prompt if shown.

Live tilt dial

Dot: gamma horizontal / beta vertical (clamped at ±45°)

Live reported angles

Alpha · Z-axis rotation—0–360° reported
Beta · front/back—−180° to +180°
Gamma · left/right—−90° to +90°
Orientation reference—Earth frame or device-relative

Alpha is not automatically a compass bearing. Earth-referenced orientation is not a calibrated true-north guarantee.

Observed events0Browser event count
Recent event rate—Events/s, not hardware Hz
Relative to zero reference—Δalpha / Δbeta / Δgamma

Live tilt history

● Beta, scaled −180°…180°● Gamma, scaled −90°…90°

Each line uses its own displayed axis range. Latest 120 plotted samples; measured browser data, not a simulated signal.

Zero reference

Hold your device steady, then tap Set zero reference to compare later orientation changes. This is an in-page comparison, not hardware recalibration.

Alpha reference—
Beta reference—
Gamma reference—
User snapshots0 / 12

Saved snapshots · this page only

#AlphaBetaGamma
No snapshots yet.

Privacy & accuracy: Sensor values are processed locally in this tab. Nothing is uploaded or permanently stored; CSV is downloaded only when you choose Export. Browsers may suppress or replace sensor readings. A stationary or missing axis does not on its own diagnose damaged hardware. Export includes up to 1,200 recent sampled observations.

★ ★ ★ ★ ★
No ratings yet — be the first

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

  1. Open this page over HTTPS on a phone or tablet that exposes orientation sensors. Tap Start Sensor; on iPhone/iPad, allow the motion/orientation permission prompt triggered by your tap. A desktop or unsupported browser may show no usable data.
  2. Slowly tilt your device forward/backward and left/right. Watch the live tilt dial and the Beta and Gamma angle readouts; turn the device to observe the Alpha Z-axis value when the browser provides it.
  3. Check the Orientation Reference label: Earth frame is different from a device-relative reference, and neither label alone proves a calibrated true-north compass heading.
  4. Hold the device steady and tap Set Zero Reference to compare subsequent angle changes against that moment. This only changes the on-page comparison; it does not calibrate or modify the device sensor.
  5. Watch Observed Events, recent events per second, and the Beta/Gamma history graph. These show browser-observed signals; they are not the sensor's certified sampling frequency or a hardware-health score.
  6. Use Save Snapshot to keep up to 12 readings in the current tab, or Export CSV to download up to 1,200 recent sampled observations. Nothing is uploaded; downloads happen only if you choose them.
  7. Tap Stop to release the event listener. Reset clears locally held readings, reference and snapshots. If you change tabs or the browser hides the page, start again after returning.

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.