Online Ruler
Use an on-screen ruler to measure small objects in millimetres, centimetres, and inches. Switch between horizontal and vertical layouts, drag the measurement marker, open fullscreen for more usable length, and calibrate with the 53.98 mm or 85.60 mm edge of a standard bank or identification card when you need the ruler matched to physical size. The default browser scale is approximate; saved calibration is checked against the current display, browser zoom, and visual viewport context.
Scale is approximate until calibrated.
- Millimetres
- 0 mm
- Centimetres
- 0 cm
- Inches
- 0 in
How to Use the Online Ruler
Choose Horizontal for width and left-to-right measurements, or Vertical for height and top-to-bottom measurements. The same metric and imperial scales remain available in both directions.
Align one end of the object with the zero tick without pressing hard against the display. Drag the green marker to the object's opposite edge. The result bar reports the same distance in millimetres, centimetres, and decimal inches.
Open fullscreen when you need a longer visible ruler. Fullscreen increases the usable browser area, but it does not automatically make an approximate scale physically accurate.
Choose the right ruler layout
Swipe horizontally to view the full table.
Online Ruler Versus Online Scale
In length-measurement searches, an online scale can mean the marked centimetre, millimetre, or inch scale shown on a screen. This tool is specifically an on-screen ruler for measuring length; it does not weigh objects or calculate map, drawing, or musical scales.
The metric side is marked in millimetres and centimetres, while the imperial side is marked in inches. Both use the same measurement marker and the same optional physical calibration.
Approximate Scale Versus Calibrated Actual Size
Before calibration, the ruler uses the CSS reference relationship of 96 pixels per inch. This produces a consistent web scale, but a CSS inch is not guaranteed to occupy one physical inch on every monitor, phone, tablet, zoom level, or operating-system scaling setting.
Calibration measures how many current on-screen CSS pixels correspond to one real millimetre. Once that pixels-per-millimetre value is known, the ruler can position its tick marks using the matched physical scale.
The status badge distinguishes Approximate, Calibrated, and Recalibrate states so the interface does not present an unverified browser scale as exact physical measurement.
Ruler accuracy states
Swipe horizontally to view the full table.
Practical Card Calibration
Open Settings, choose Calibrate for actual size, and select either the short or long edge of a standard ID-1 bank or identification card. Place the chosen edge against the display and adjust the guide until its two boundary lines match the card exactly.
The short edge is 53.98 mm and fits more easily on narrow phones. The long edge is 85.60 mm and can be easier to align precisely on larger displays because the reference spans more pixels.
Use a flat card with a clean, straight edge. Look directly at the screen, keep the card parallel to the guide, and avoid cards with damaged edges or unusual non-standard dimensions.
Card edges available for calibration
Swipe horizontally to view the full table.
How Calibration Is Saved and Checked
After confirmation, the calculator stores the calibrated pixels-per-millimetre value, selected card edge, guide length, logical screen dimensions, device pixel ratio, visual viewport scale, and calibration time in local browser storage.
The ruler restores that record only when the current environment matches. Rotating the same device can remain valid because the stored screen edges are compared without depending on portrait or landscape order.
A change in browser zoom, pinch zoom, display scaling, or active display can move the tool into Recalibrate mode. In that state, it falls back to the approximate scale instead of silently applying a potentially wrong physical conversion.
Reading Millimetres, Centimetres, and Inches
The upper metric scale places a tick every millimetre, a medium tick every 5 millimetres, and a labelled major tick every centimetre.
The lower imperial scale divides each inch into sixteenths. Whole inches receive labels, while stronger intermediate marks help identify common fractional positions.
The live result uses decimal inches because it provides an unambiguous conversion for any marker position. One inch equals exactly 25.4 millimetres.
Metric and imperial ruler markings
Swipe horizontally to view the full table.
Marker Precision and Keyboard Controls
Approximate mode snaps to whole millimetres because the underlying physical scale has not been verified. Calibrated mode allows half-millimetre steps for finer adjustment.
The visible marker line is intentionally narrow, while its interactive pointer area is larger so it remains practical on touch screens. Clicking or dragging anywhere on the ruler moves the marker to the corresponding measured position.
When the marker has keyboard focus, an arrow key moves one active measurement step. Shift plus an arrow key moves ten steps. Home returns to zero, and End moves to the visible ruler limit.
Why Screen Measurement Can Differ
A browser works with CSS pixels, while the screen is a physical object with its own pixel density and scaling configuration. Device pixel ratio describes the relationship between device pixels and CSS pixels, but it does not by itself reveal the physical millimetres occupied by a CSS pixel.
Page zoom, operating-system scaling, pinch zoom, external monitors, display switching, and browser privacy behaviour can all affect the relationship between the rendered ruler and real-world length.
Calibration supplies the missing physical reference. It improves practical accuracy, but the final result still depends on careful alignment and a stable display environment.
Factors that affect on-screen ruler accuracy
Swipe horizontally to view the full table.
Safe Ways to Measure Against a Screen
Use the ruler for light, clean, small objects with smooth edges, such as a card, photograph, label, screw, coin, craft component, cable connector, or printed reference.
Do not place sharp, hot, wet, dirty, abrasive, magnetic, electrically exposed, or heavy objects against a phone, tablet, laptop, or monitor. Do not apply pressure to force an object against the zero point.
For valuable objects or dimensions that must be dependable, verify the reading with a physical ruler, tape measure, calliper, or other suitable instrument.
Fullscreen and Vertical Measurement
Fullscreen removes most surrounding webpage constraints so the horizontal ruler can use nearly the full screen width. In vertical mode, it also provides substantially more height for upright objects.
Changing orientation does not alter the unit conversion. It changes only which screen axis is used for the ruler and marker.
Entering or leaving fullscreen can resize the ruler. The component measures its visible axis again and clamps the marker to the new usable limit.
Privacy and Local Processing
The tool does not use the camera, scan the calibration card, upload an image, or identify the object being measured. The card is only a physical size reference held against the display.
Pointer positions, calculations, formatting, environment checks, and tick generation run in the browser. A calibration record is stored locally only after calibration is confirmed.
Reset removes the saved ruler calibration from local storage and returns the marker and scale to their approximate defaults.
Online Ruler Calibration and Measurement Formulas
Calibration converts a known physical card edge into the current number of CSS pixels per millimetre. Marker distance is then converted from pixels into metric and imperial units.
Formula variables
- Calibrated CSS pixels per millimetre
- Adjusted on-screen guide length in CSS pixels
- Known card-edge length: 53.98 mm or 85.60 mm
- Marker position along the active ruler axis
- Inset zero position of the ruler
- Measured length in millimetres
Examples
Calibrate with the short card edge
1Input
The 53.98 mm short card edge matches a guide that is 205 CSS pixels wide.
Show result
Result
The calibrated scale is approximately 3.7977 CSS pixels per millimetre.
A 380-pixel marker span would then represent about 100.06 mm, or 10.01 cm.
Calibrate with the long card edge
2Input
The 85.60 mm long card edge matches a 325 CSS-pixel guide.
Show result
Result
The calibrated scale is approximately 3.7967 CSS pixels per millimetre.
A 240-pixel span would represent about 63.21 mm, or 2.489 inches.
Measure a small label
3Input
After calibration, align the label with zero and drag the marker to 42.5 mm.
Show result
Result
42.5 mm, 4.25 cm, and approximately 1.673 in.
Calibrated mode supports half-millimetre marker steps.
Use the approximate scale
4Input
Without calibration, a marker span covers 200 CSS pixels.
Show result
Result
Using the 96-pixel CSS reference, the estimated length is about 52.92 mm.
This is a browser-scale estimate and may not occupy 52.92 physical millimetres on the display.
Measure vertically on a phone
5Input
Select Vertical, open fullscreen, place the object's upper edge at zero, and move the marker to its lower edge.
Show result
Result
The same distance appears in millimetres, centimetres, and inches.
The visible maximum depends on the available fullscreen height and current calibration scale.
Frequently Asked Questions
Is this online ruler actual size?
It is approximate before calibration. After matching a known card edge, the ruler uses a physical pixels-per-millimetre scale for the current display, zoom, and scaling context. Careful alignment is still required.
What does online scale mean on this page?
Here, scale means an on-screen length scale marked in millimetres, centimetres, and inches. The tool measures length like a ruler; it is not a weighing scale and does not calculate map or drawing scale.
Why is calibration necessary?
Browsers lay out pages in CSS pixels and do not reliably reveal how many physical millimetres one CSS pixel occupies. Calibration supplies a known real-world length so the conversion can be calculated.
Which card can I use for calibration?
Use a standard ID-1 bank, payment, driving-licence, or identification card with nominal dimensions of 85.60 × 53.98 mm. Confirm that the card is standard size and has an undamaged straight edge.
Should I use the short or long card edge?
Use the 53.98 mm short edge on narrow screens. Use the 85.60 mm long edge when it fits comfortably; the wider reference can make fine visual alignment easier.
Does the tool scan or photograph my card?
No. The card is held against an on-screen guide as a physical reference. The tool does not use the camera, read card information, or upload anything.
Does calibration stay after I refresh the page?
Yes, when local storage is available. The saved record includes the scale and display context. It is restored only when the current environment remains compatible.
Why does it say Recalibrate?
The browser detected a change in display dimensions, DPR, or visual viewport scale that could make the saved physical conversion inaccurate. Return to the original context or calibrate again.
Does rotating my phone remove calibration?
Rotation alone can remain compatible because the tool compares the same logical short and long screen edges regardless of portrait or landscape order. Other zoom or display changes can still require recalibration.
Does browser zoom affect the ruler?
Yes. Browser zoom can change devicePixelRatio, and pinch zoom can change visualViewport.scale. Either can alter the physical size of rendered CSS pixels.
Can I use the ruler on a second monitor?
You should recalibrate after moving the browser to a display with a different physical size or scaling configuration. Browsers cannot always identify every monitor change reliably.
How precise is the marker?
The approximate scale snaps to 1 mm. Calibrated mode snaps to 0.5 mm. Practical accuracy also depends on card calibration, display stability, object alignment, and viewing angle.
How do I read the inch ruler?
Whole inches are labelled, and each inch is divided into sixteenths. The result bar also shows the selected measurement as decimal inches.
Can I switch between horizontal and vertical rulers?
Yes. Use the orientation control on the main interface or in Settings. The measurement conversion remains the same; only the active screen axis changes.
Why does fullscreen show a longer ruler?
Fullscreen gives the component more browser width or height. The ruler remeasures the available axis and generates ticks for the larger usable area.
Can this replace a physical ruler or calliper?
It is useful for convenient small-object estimates and calibrated screen measurements, but it is not a certified instrument. Verify important dimensions with an appropriate physical tool.
What objects should not be placed against the screen?
Avoid sharp, hot, wet, dirty, abrasive, heavy, magnetic, or electrically exposed objects. Never press an object hard against the panel.
Are my measurements stored?
The current marker measurement is not uploaded. A confirmed calibration can be saved locally so the ruler can restore its physical scale on later visits.
References
You might also like
Dice Roller
Roll 1 to 10 animated six-sided dice online for board games, classrooms, probability activities, and quick random results.
My Screen Size
Instantly check your browser-reported screen resolution, live viewport, aspect ratio, device pixel ratio, estimated device pixels, color depth, and touch support.
PX, EM & REM Converter
Convert px, em, and rem using separate local and root font-size contexts, with CSS-ready output and optional batch conversion.
Typing Tutor
Practise touch typing with adaptive weak-key lessons, honest first-attempt accuracy, mastery-based letter unlocking, and local per-key progress.