What is dp?
Android uses density-independent pixels so an interface can keep a similar physical size across screens with different pixel densities. A 48 dp graphic becomes 48 px at mdpi, 96 px at xhdpi and 192 px at xxxhdpi.
Choose the intended dp size and generate mdpi through xxxhdpi PNG assets from one master image, already organized into drawable folders.
● Image processing stays on your devicedrawable-mdpi and drawable-xxxhdpi.Android uses density-independent pixels so an interface can keep a similar physical size across screens with different pixel densities. A 48 dp graphic becomes 48 px at mdpi, 96 px at xhdpi and 192 px at xxxhdpi.
The generator can scale images up or down, but starting from a source at least as large as the biggest required output gives better results. For vector artwork, Android's vector drawable workflow may be preferable to raster density assets.
Enter the intended width and height in dp, choose a source image and a filename, then download the Android ZIP. Inspect the highest-density PNG before importing the folders.
For a 48 × 48 dp graphic, output dimensions are 48, 72, 96, 144 and 192 pixels across mdpi, hdpi, xhdpi, xxhdpi and xxxhdpi. A source at least 192 × 192 avoids enlarging for this example.
Use a lowercase resource-style filename and check the destination project’s naming rules. The tool creates raster PNG assets; it does not generate vector drawables, nine-patch stretch regions or Android adaptive launcher layers.
Only at the baseline mdpi scale. The same dp specification needs more pixels on a denser display to keep a similar physical size.
Use Source Ratio when you want to match its proportions, or prepare a source that matches the intended graphic. Check all outputs for unwanted distortion.
Continue your workflow: App Icon Maker - iOS & Android Icon Sizes or Aspect Ratio Calculator Free.
Need help or found an incorrect result? Report a tool issue. Read how files and text are handled.