Android DP/PX Converter
Convert between Android dp, sp and px online for free at any density from ldpi to xxxhdpi. px = dp × dpi/160 math with a live density table - instant, free, and client-side.
Loading tool...
What is Android DP/PX Converter?
The Android DP/PX Converter applies the Android density formula px = dp × dpi / 160 between dp, sp and physical pixels. Enter a value in any of the three units, pick a density bucket from ldpi (120) to xxxhdpi (640), and read all equivalent units at once plus a live table showing the same dp value rendered at every density.
Key Benefits
- Instant dp, sp and px values side by side
- All six density buckets from ldpi to xxxhdpi
- Live table showing the value at every density
- Exact Android formula, no approximations
- Private and instant - everything runs in the browser
Common Use Cases
- •Translating designer pixel specs into Android dimens
- •Checking how a value scales across device densities
- •Preparing design handoff specs for Android teams
- •Validating icon and spacing sizes per bucket
How to Convert dp and px on Android
- Enter the value: Type the number you want to convert, then choose its unit: dp, sp or px.
- Pick the density: Select the screen density bucket, from ldpi (120 dpi) up to xxxhdpi (640 dpi).
- Read all units: The equivalent px, dp and sp values appear instantly, with a table for every bucket.
- Use in your layout: Copy the converted value into your Android dimens, layouts or designs.
Key Features
- Two-way conversion between dp, sp and physical px
- All six density buckets from ldpi (120) to xxxhdpi (640)
- Live density table for the entered dp value
- Exact px = dp × dpi / 160 Android formula
- sp treated at the standard text scale factor
- Instant updates with clear validation - fully client-side