- To convert px to mm, you should know the size mm px.
- Then, just apply the formula:
px * 0.2645833333
This formula converts the pixel value to points. - For example:
- 16px will be converted to:
16 / 0.2645833333 = 4.233mm.
- 16px will be converted to:
px * 0.2645833333 16 / 0.2645833333 = 4.233mm.
px * 0.2645833333.
A millimeter (mm) is an absolute unit of length. 1mm is roughly 3.8 pixels, or about 25.2/640 of an inch. 1px is equivalent to 0.2645833333mm
Pixel unit is the theoretical smallest dot displayed on a computer screen.
Nowadays, the pixel unit can differ between physical resolution and logical resolution.
This difference is called the device pixel ratio (DPR):
Logical resolution = Physical resolution / Device pixel ratio
For example:
A screen with a physical resolution of 1024x768 and a DPR of
2 will have a logical resolution of:
512x384.
| Pixels (px) | Millimeters (mm) |
|---|---|
| 10px | 2.646mm |
| 20px | 5.292mm |
| 30px | 7.937mm |
| 40px | 10.583mm |
| 50px | 13.229mm |
| 60px | 15.875mm |
| 70px | 18.521mm |
| 80px | 21.167mm |
| 90px | 23.812mm |
| 100px | 26.458mm |
| 110px | 29.104mm |
| 120px | 31.75mm |
| 130px | 34.396mm |
| 140px | 37.042mm |
| 150px | 39.687mm |
| 160px | 42.333mm |
| 170px | 44.979mm |
| 180px | 47.625mm |
| 190px | 50.271mm |
| 200px | 52.917mm |
| 210px | 55.562mm |
| 220px | 58.208mm |
| 230px | 60.854mm |
| 240px | 63.5mm |
| 250px | 66.146mm |