# PX, PT, DP converter / Tool

dpi | px | mm | |
---|---|---|---|

Mac (Non-Retina) | 72 | 1 | 0.35 |

Windows (scale 100%) | 96 | 1.33 | 0.35 |

Windows (scale 125%) | 120 | 1.67 | 0.35 |

Windows (scale 150%) Mac (Retina) iPhone (4/5/SE/6/XR) | 144 | 2 | 0.35 |

iPhone (X/XS/11) | 216 | 3 | 0.35 |

0 | 0 |

dpi | px | mm | |
---|---|---|---|

ldpi | 120 | 0.75 | 0.16 |

mdpi | 160 | 1 | 0.16 |

tvdpi | 213 | 1.33 | 0.16 |

hdpi | 240 | 1.5 | 0.16 |

xhdpi | 320 | 2 | 0.16 |

xxhdpi | 480 | 3 | 0.16 |

xxxhdpi | 640 | 4 | 0.16 |

0 | 0 |

## How to use this tool

- 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.

## Conversion Formula

### pt (Point)

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)

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)

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.