Android Screen Density Calculator
Pixel density, bucket and dp size for an Android screen.
Runs in your browser. Nothing is uploaded — your input is processed on this device and discarded when you close the tab.
Android Screen Density Calculator
How to use this tool
- Enter your values in the fields above.
- Press Generate to see the result.
- Use Load sample to try the worked example, Copy result to copy it, or Clear to start again.
Worked example
A 1080 by 2400 screen at 6.5 inches gives about 404.9 ppi, which falls in the xxhdpi bucket, about 426.8 dp wide and 948.4 dp tall.
What this tool does not do / Limits
This is arithmetic from the numbers you enter. It does not detect a device, read a screen, or look up any phone model.
Frequently asked questions
What is a dp?
A density-independent pixel: pixels divided by density divided by 160, so layouts scale across screens.
Why does the bucket matter?
Android groups densities into buckets so artwork can be supplied at the right scale for each screen.
Related tools
JSON Studio
Format, validate, minify, query and compare JSON in your browser, with precise line-and-column errors.
LiveRegex Tester
Test patterns against sample text with match highlighting, capture groups and a safe one-second timeout.
LiveSecurity Header and DNS Checker
Check HSTS, CSP and other security headers, TLS details, and DNS/email authentication records (SPF, DKIM, DMARC).
Live