Gyroscope Visualizer
Mirror your phone's orientation in a live 3D cube and inspect the raw alpha/beta/gamma stream.
Enable motion sensors
Tap the button to let this page read your device's orientation. iOS 13+ requires this tap — listeners never start before consent.
All processing stays in this browser tab. Nothing is stored or sent.
Orientation stream idle.
Event log
Permission, stream and range events appear here as they happen.
Reading the stream
- The cube uses CSS 3D (no WebGL) and a smoothed
matrix3d()derived from the W3C z–x′–y″ angles, with the y-axis flip CSS needs. - Screen adjustment recomposes the full rotation — at 90° it exchanges beta and gamma instead of merely offsetting alpha.
- Rate is a decaying 0.1-weighted EMA; it returns to 0 Hz when events stop.
- Local only: no sensor data is stored or sent.
Examples
Enable on iOS
Tap Allow on the permission overlay — iOS 13+ requires a real user gesture before orientation events can start.
Inspect the raw stream
Watch alpha (0–360°), beta (−180–180°) and gamma (−90–90°) with sparklines, out-of-range flags and the events/s meter.
Freeze a pose
Press F or tap Freeze to pause the stream while the cube holds its last orientation for a screenshot.
Compare absolute and relative
Press A to switch to deviceorientationabsolute when available; the badge shows which stream is live.
About this tool
A debugging microscope for the DeviceOrientation API: a CSS-3D cube tracks alpha, beta and gamma while raw value cards, sparklines, range flags, a sample-rate meter and an event log expose what the browser actually reports. iOS 13+ requires a tap-to-permit overlay; absolute streams, screen-orientation compensation, freeze, demo mode and a beta-near-90° calibration hint are included. Sensor data never leaves the browser and nothing is stored.
What this tool does not do
- Processes only the inputs provided in this session without connecting to external accounts or background servers.
- Runs entirely in the current browser tab; nothing is synced across devices or backed up to a server.
How to use this tool
Open over HTTPS on mobile
Load the page on a phone or tablet with orientation sensors and tap Enable if on iOS.
Tilt and rotate your device
Watch the 3D cube mirror live alpha, beta, and gamma Euler angles.
Inspect sample rate and ranges
Read live Hz frequency and min/max angle bounds.
Use cases
Enable on iOS
Tap Allow on the permission overlay — iOS 13+ requires a real user gesture before orientation events can start.
Inspect the raw stream
Watch alpha (0–360°), beta (−180–180°) and gamma (−90–90°) with sparklines, out-of-range flags and the events/s meter.
Freeze a pose
Press F or tap Freeze to pause the stream while the cube holds its last orientation for a screenshot.
Compare absolute and relative
Press A to switch to deviceorientationabsolute when available; the badge shows which stream is live.
Common mistakes
Mistake:What do alpha, beta, and gamma angles represent?
Fix:Alpha (0°–360°) measures compass/yaw rotation around the Z axis, beta (−180° to 180°) measures front-to-back pitch tilt, and gamma (−90° to 90°) measures left-to-right roll.
Mistake:Why doesn't the 3D cube move on a desktop computer?
Fix:Desktops and most laptops lack 3-axis MEMS gyroscopes; open the page over HTTPS on a smartphone or tablet to stream real orientation events.
Frequently asked questions
Why do iPhones require clicking a permission button first?
iOS Safari gates DeviceOrientationEvent behind an explicit DeviceOrientationEvent.requestPermission() call triggered by a user tap over HTTPS.
What do alpha, beta, and gamma angles represent?
Alpha (0°–360°) measures compass/yaw rotation around the Z axis, beta (−180° to 180°) measures front-to-back pitch tilt, and gamma (−90° to 90°) measures left-to-right roll.
Why doesn't the 3D cube move on a desktop computer?
Desktops and most laptops lack 3-axis MEMS gyroscopes; open the page over HTTPS on a smartphone or tablet to stream real orientation events.
Is motion sensor data recorded or transmitted?
No. Orientation angles render locally in real time and never leave your device.
Related tools
Battery Status Monitor
Watch battery level, charging state and discharge rate live with a rolling chart and time-to-empty projection.
Bluetooth Device Inspector
Inspect BLE GATT trees in the browser: services, characteristics, descriptors, live values and notifications.
Browser Benchmark
Measure JavaScript and DOM performance with deterministic, transparent benchmark suites.
Device Information
See what your browser reveals about your device — screen, hardware hints, platform and capabilities.
Digital Bubble Level
Measure surface tilt with a visual bullseye and a ±0.2° level threshold.
Digital Compass
Read a device heading with a manual desktop simulator and magnetic interference guidance.