Screen Size Detector
Report your resolution, aspect ratio and device pixel ratio, then turn one measured width into the diagonal in inches.
Resolution first, inches second
The page prints the CSS-pixel resolution, the device-pixel resolution, the aspect ratio reduced by the greatest common divisor, and devicePixelRatio. Nothing there is a physical size: a browser is not told how large the panel is, and one CSS pixel is one ninety-sixth of an inch by definition regardless of the glass.
So the inches come from one ruler measurement. Type the lit width in millimetres and the page divides the device-pixel width by those inches, then reports the measured PPI and the diagonal. A width outside 20–2000 mm is refused as a typo. Measure the lit area edge to edge, not the bezel, and expect about half a percent of error per millimetre.
The arithmetic runs in this tab. Nothing is uploaded, no measurement is stored, and a reload returns to the reported resolution with the inches blank.
Report the screen's resolution in device pixels and CSS pixels, its aspect ratio and its pixel ratio, then derive the diagonal in inches from one width you measure with a ruler.
Nothing on the browser side knows the panel's real size, so the ruler reading is the measurement and the diagonal is arithmetic on it.
How to use Screen Size Detector
Read Resolution for the device-pixel figures and CSS pixels for the layout size, with the aspect ratio and pixel ratio beside them.
Measure the visible width with a ruler and type it into Visible width, measured with a ruler (mm); 20 to 2000 mm is accepted.
Read Size in inches for the diagonal derived from that one width, and check the browser is not zoomed first.
What is read
The page reads the screen dimensions and devicePixelRatio, and prints the resolution in device pixels, the CSS-pixel size and the aspect ratio. Those are the figures the browser reports about the display.
The inch measurement
Enter the visible width in millimetres, measured edge to edge. The page divides the device-pixel width by that figure to get a measured PPI and derives the diagonal. A width below 20 mm or above 2000 mm is refused with the accepted range named.
Where it stops
One screen, one ruler reading, and no panel model or DPI database. A browser zoom other than 100% moves the CSS-pixel figures, and the page does not attempt to correct for it.
What to Expect
Best for
- recording a screen's reported resolution and aspect ratio
- working out the diagonal size of a display from a ruler
What this tool keeps
- The readings and the arithmetic happen in this tab; the measured width is neither uploaded nor stored.
Frequently asked questions
Why do the device and CSS pixel figures differ?
Because devicePixelRatio scales CSS pixels to physical ones. The page prints both, so a 2× display shows twice the device pixels of its CSS size rather than one ambiguous number.
How do I get the diagonal in inches?
Measure the visible width in millimetres and enter it. The page computes the PPI from that reading and derives the diagonal, since the browser cannot know the panel's physical size.
Why is my zoom changing the numbers?
A browser zoom other than 100% changes the CSS-pixel figures the page reads. The device-pixel figures come from the screen itself, and the page does not correct for the zoom.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.