Bubble Level (Measure Level and Plumb with Your Phone’s Tilt Sensor)

Completely free, with no extra charges. You may freely use the output commercially.

About this tool

This bubble level uses your phone’s tilt sensor to show how far a shelf, desk, wall or post leans. It lays out a horizontal vial (X: left–right tilt), a vertical vial (Y: front–back tilt) and a round vial (both together), each with a bubble and an angle in degrees to 0.1°. As on a real level, the bubble moves toward the higher side.

Use it when hanging shelves or a TV stand, leveling furniture or a washing machine, checking a picture hook, or testing that a post is plumb. A “Set as level” button cancels offsets from a thick case, and the vial changes color and buzzes briefly when you are close to level. All processing happens entirely in your browser (no data is sent).

Check level

X (left–right)--
Y (front–back)--

How to use and notes

How to measure

  1. Open this page on your phone. On an iPhone, tap “Use the sensor” and allow it. On Android, measuring starts as soon as the page opens.
  2. Put the phone against the surface. Lay it screen up on a flat surface, or stand it screen toward you against a wall, post or shelf edge. In landscape, the display follows the screen orientation.
  3. When the bubble sits between the two center marks, the surface is level (or plumb). When the round vial is within 0.5° the color changes and the phone vibrates briefly.
  4. If the phone moves while you read it, tap “Hold reading” to freeze the display.

Flat and upright

The tool switches automatically between flat (phone lying down) and upright (phone standing). Flat: X is left–right and Y is top–bottom tilt, and positive means the right or top side is higher. Upright: X is the tilt within the screen plane (a post’s plumb or a shelf edge’s level) and Y is how far the screen leans to face upward.

Calibrating

A case step or a camera bump can keep a level surface from reading 0°. Put the phone on a surface you know is level and tap “Set as level”; the current tilt becomes 0°. Calibration is saved in this browser separately for flat and upright, and “Reset calibration” removes it.

Notes

  • Accuracy depends on the device; expect about ±0.5–1°. Use a dedicated level for precise work or inspection.
  • Readings are smoothed, so after moving the phone the bubble takes about a second to settle.
  • Vibration works in Chrome on Android and similar browsers; Safari on iPhone does not support it.
  • The screen is kept awake while measuring (in browsers that support it).