Online Bubble Level
Turn a phone or tablet into a spirit level. Rest it on a surface and watch the bubbles for flat, left-to-right and front-to-back tilt, with the angle shown in degrees and as a slope.
How to use the online bubble level
- Enable sensors. Tap the button and allow motion access when your phone asks. Desktop computers usually have no motion sensors, so use a phone or tablet.
- Place the phone. Lay it flat on the surface, or stand an edge against a wall or pipe. The big circular bubble shows the flat tilt, the horizontal vial shows left-to-right tilt, and the vertical vial shows front-to-back tilt.
- Read the numbers. The panel shows the tilt of each axis in degrees together with the equivalent percent slope, millimetres per metre and inches per foot.
- Set the zero point. The default zero is the centre. If you want to compare against a surface you know is level, put the phone on it and tap Zero here. Use Reset zero to return to the centre.
- Vibration. Keep Vibrate switched on to feel a short buzz when the level reaches the zero point. Vibration works on most Android browsers; iPhone browsers do not allow it.
How a phone senses tilt
Phones contain an accelerometer, a tiny sensor that measures the pull of gravity along three axes. When the phone is flat, gravity acts entirely along the vertical axis. As you tilt it, a share of gravity shows up on the other two axes, and the angle follows from simple trigonometry. Pelantar smooths the readings so the bubble moves calmly instead of jittering, then draws the bubble in the opposite direction to the tilt, exactly as a liquid bubble would rise to the high side.
Because the sensor is what matters, the tool needs a device with motion sensors and a secure (HTTPS) page, and on iPhone you must grant motion access explicitly the first time.
Setting and using the zero point
The zero point is the reading that counts as level. By default it is the exact centre, which assumes the phone itself is perfectly flat on its back. In real life, cases, camera bumps and slightly warped phones shift that. To correct for it, put the phone on a surface you trust, such as a checked worktop or a carpenter's level, and tap Zero here. From then on, readings are relative to that position. The same trick lets you measure tilt relative to a slope: zero on the slope, and any change shows up as an offset.
Tilt, slope and what the numbers mean
One degree of tilt equals about 17.5 mm of rise per metre, or 1.75% slope. Half a degree is about 8.7 mm per metre. Phone sensors are typically good to around half a degree after zeroing, which is fine for hanging shelves, levelling appliances or aligning a tripod, but not as sharp as a good bubble vial, which can resolve about 0.5 mm per metre. See the guide on how accurate a phone bubble level is for ways to improve your readings.
Frequently asked questions
How accurate is a phone bubble level?
Typically within half a degree once you set the zero point on a trusted surface. A decent carpenter's level is more precise, so use the phone for everyday jobs and a proper level for critical work.
Why does it say there is no sensor data?
The page has not received motion events. Tap Enable sensors, allow access, and use a phone or tablet over HTTPS. Most desktop computers do not have motion sensors.
What does Zero here do?
It makes the current position the new zero point. Readings are then measured relative to that position, which corrects for a case or camera bump.
Why does my phone not vibrate?
Vibration depends on the browser. Most Android browsers support it. iPhone browsers do not. Also check that your phone is not on silent with vibration disabled.
Can I use it on a wall?
Yes. Stand the phone on one edge against the wall. The vertical and horizontal vials show whether the wall is plumb, and the camera version overlays a level line on a live image.
How many mm per metre is one degree?
About 17.5 mm per metre. Half a degree is about 8.7 mm per metre.
Does it work offline?
After the page has loaded, the bubble level works without a connection, because all the calculations run on your device.
Is my sensor data sent anywhere?
No. Motion data stays in your browser and is never uploaded.
Related tools
Online Ruler · Ruler on Camera · Grid Measurement · Grid on Camera · Unit Converter · Online Protractor · Protractor on Camera · Bubble Level on Camera · Sound Meter · Tone Generator
Guides
How accurate is a phone bubble level, and how to improve it · Slope explained: degrees, percent, ratio and roof pitch