Android dp ↔ px ↔ sp Converter
Convert dp, px and sp across every Android density bucket.
dp → px
px = dp × (dpi ÷ 160) — 16dp is 48px on xxhdpi.
sp → px
sp behaves like dp but is multiplied by the user's font scale setting, so always size text in sp.
All density buckets
| Bucket | DPI | Scale | 16dp in px | Notes |
|---|---|---|---|---|
| ldpi | 120 | ×0.75 | 12px | Legacy, rarely targeted |
| mdpi | 160 | ×1 | 16px | Baseline: 1dp = 1px |
| hdpi | 240 | ×1.5 | 24px | Older mid-range devices |
| xhdpi | 320 | ×2 | 32px | Common on budget phones |
| xxhdpi | 480 | ×3 | 48px | Most modern phones |
| xxxhdpi | 640 | ×4 | 64px | Flagship / launcher icons |
About the Android dp ↔ px ↔ sp Converter
Convert density-independent pixels to real pixels for ldpi through xxxhdpi, go back from px to dp, and see how sp text scales with the user's font size setting. Includes a full density bucket table with DPI, scale factor and guidance on which buckets still matter.
Examples
16dp on xxhdpi
16dp, xxhdpiOutput
48pxKeyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
Android Manifest Permissions Reference
Dev Utilities
Searchable Android permission list with protection levels and manifest snippets.
iOS Device Screen Sizes Reference
Dev Utilities
Points, pixels, scale factors and App Store screenshot sizes for iPhone, iPad and Apple Watch.
.htaccess Redirect Generator
Dev Utilities
Generate Apache .htaccess redirect and rewrite rules.
Android APK Analyzer & Explorer
Dev Utilities
Open an APK, decode its manifest and browse or download every file inside.
Bash Alias Generator
Dev Utilities
Create shell aliases for Bash, Zsh or Fish with correct quoting.
Chmod Calculator
Dev Utilities
Unix permission calculator: checkboxes, octal, and symbolic.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-23 · Runs entirely in your browser