PX and DP(DIP) calculator
Convert PX and DP for Android screen density.
Advertisement
Before you start
DP and DIP are equivalent and differ from CSS px.
Frequently asked questions
Are DP and DIP different units?
They are equivalent. The basic conversion is px = dp × dpi / 160. At xhdpi (320 dpi), 24 dp equals 48 px. This uses Android density and does not guarantee a CSS pixel conversion.
Is my file or input sent to a server?
No. Processing stays in your current browser session.