Android DP/PX converter

Calculate pixels (and other units!) in DPs

This tool helps you convert pixels to and from DPs (density independent pixels). Enter a value and unit to calculate the dimensions for the various DPI bins (ldpi, mdpi, hdpi, xhdpi, xxhdpi and xxxhdpi).

Enter either a DP (density independent pixel) value or a PX (pixel) value below. If you use pixels, you can set the screen density that it currently displays on.

at compensating for user’s font size
Icon presets:

Please enter a value.

The values are calculated based on:

ldpi120 dpi
mdpi160 dpi
tvdpi213 dpi
hdpi240 dpi
xhdpi320 dpi
xxhdpi480 dpi
xxxhdpi640 dpi

Take special note of the `nodpi` bin; specifying resources using this qualifier specifically instructs the system to not scale resources, regardless of the current screen’s density. The DP/PX converter above behaves slightly different when selecting this bin, as it treats the specified pixel dimension as DP.


More reading:
Android Developer Guide on Supporting Multiple Screens on DPI categories
Adapted from Android DP / PX converter by Skinkers


Kanaalweg 14K (Building B1)
3526 KL, Utrecht
The Netherlands
Phone: +31 (0)30 800 0412

Click here for a larger map with
parking, transit and navigation information