JP
/
EN

PX, PT, DP converter / Tool

PT (Point)

pt
dpiptpxmm
Mac (Non-Retina)
7210.35
Windows (scale 100%)
961.330.35
Windows (scale 125%)
1201.670.35
Windows (scale 150%)
Mac (Retina)
iPhone (4/5/SE/6/XR)
14420.35
iPhone (X/XS/11)
21630.35
00

DP (Density-independent pixel)

dp
dpidppxmm
ldpi
1200.750.16
mdpi
16010.16
tvdpi
2131.330.16
hdpi
2401.50.16
xhdpi
32020.16
xxhdpi
48030.16
xxxhdpi
64040.16
00

This is a size unit converter that runs in your browser. It converts px (pixel), pt (point), dp / dip (density independent pixel), mm (millimeter) by resolution (dpi).

  • If you enter any unit, it will be converted to other units per dpi.
  • Round off to the third decimal place.
  • mm is the size at the time of printing, not the size on the display.

pt (Point) conversion formula

px=pt×dpi72px={\dfrac {pt \times dpi}{72}}
pt=px×72dpipt={\dfrac {px \times 72}{dpi}}

A pt (point) is a unit of size used primarily in publications and is defined as “1 pt = 1/72 inch”. There are several definitions of pt, but in this paper we refer to the most common DTP point as a pt.

dp (Density-independent pixel) conversion formula

px=dp×dpi160px={\dfrac {dp \times dpi}{160}}
dp=px×160dpidp={\dfrac {px \times 160}{dpi}}

A dp (density-independent pixel/dip) is the unit of size used in Android development. since the screens used in Android vary in density, it was created to represent roughly the same size at any density (Some devices have 160 px per square inch, others 480 px per square inch).

1 dp is defined as approximately equal to 1px at mdpi (160 dpi). So at mdpi, 1 dp = 1 px, and at xhdpi (320 dpi), which is twice that, 1 dp = 2 px.

mm (Millimetre) conversion formula

px=mm×dpi25.4px={\dfrac {mm \times dpi}{25.4}}
mm=px×25.4dpimm={\dfrac {px \times 25.4}{dpi}}

1 inch = 25.4 mm according to the international inch standard.

On a display, the physical size depends on the resolution, so it cannot be expressed in mm.

Hirota Yano / Japan / Programmer
I am publishing a web tool I created as a hobby. It is free of charge, so please feel free to use it.
© Hirota Yano