Android Utilities 100% Client-Side Private Instant Result

DPI Calculator

Calculate Android Dots Per Inch (DPI), Density Bucket (mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi), and dp-to-px scaling factors.

Initializing DPI Calculator...

How to Use the DPI Calculator

1. Enter horizontal and vertical pixels (e.g. 1080 x 2400).
2. Enter screen diagonal size in inches (e.g. 6.67).
3. View exact DPI, Android Density Qualifier, Baseline Scale Multiplier, and asset directory name.

Algorithm & Formula Details

DPI = sqrt(Width^2 + Height^2) / Diagonal_Inches. Density scale = DPI / 160.

All mathematical calculations, text transformations, and cryptographic hashes are executed strictly in memory inside your browser using modern Web APIs.

Frequently Asked Questions

Android baseline is mdpi at 160 dpi (1dp = 1px). Other densities scale proportionately (xhdpi = 2x, xxhdpi = 3x, xxxhdpi = 4x).