Android Pixel Calculator

Simple Advanced

dp

Density-independent Pixels

sp

Scale-independent Pixels

 


Check relation between the dp, px, sp, in, mm and pt measurement units and convert to other unit.

 in
@

Android doesn't do direct pixel mapping, it uses Density Independent Pixel (dpi) values to scales the actual screen size

to calculate pixel density - getResources().getDisplayMetrics().density;

px

Pixels

mm

Millimeters

pt

Points

in

Inches


Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0