DP to PX Converter
Common DP Values
Convert Density-Independent Pixels to Physical Pixels
16
Physical Pixels
What are DP and PX?
DP (Density-Independent Pixels) are Android's unit for expressing layout dimensions or position in a density-independent way. One dp is equal to one physical pixel on a 160 dpi screen, which is the baseline density assumed by the system.
PX (Physical Pixels) are the actual pixels on the device screen. The conversion depends on the device's screen density.
Android Density Buckets:
- • mdpi: 1× (160 dpi)
- • hdpi: 1.5× (240 dpi)
- • xhdpi: 2× (320 dpi)
- • xxhdpi: 3× (480 dpi)
- • xxxhdpi: 4× (640 dpi)
Common Conversions:
- • 16dp = 16px (mdpi)
- • 16dp = 24px (hdpi)
- • 16dp = 32px (xhdpi)
- • 16dp = 48px (xxhdpi)
- • 16dp = 64px (xxxhdpi)