Android Drawable Density Generator
Generate Android drawable PNG assets for every primary screen density.
Choose an image to generate Android drawable density assets.
About This Tool
The Android Drawable Density Generator creates PNG assets for the primary Android density buckets from one source image.
Choose the density represented by your source image, then generate resized assets for mdpi, hdpi, xhdpi, xxhdpi, and xxxhdpi.
Benefits and Use Cases
- Generate five density-specific drawable assets in one step
- Keep the source image aspect ratio intact
- Preview each generated size before downloading
- Use standard Android density scaling ratios
- Process images locally without uploading them
How to Use
- Choose a PNG, JPG, or WebP source image.
- Select the source density of that image.
- Click
Generate Assets. - Download the PNG for each density folder.
Android Example
If a source image is 24 x 24px at mdpi, the generator creates 36px at hdpi, 48px at xhdpi, 72px at xxhdpi, and 96px at xxxhdpi. Place the generated files in matching resource folders such as res/drawable-hdpi/ and res/drawable-xxhdpi/.
Android documents the primary density scale factors as mdpi 1x, hdpi 1.5x, xhdpi 2x, xxhdpi 3x, and xxxhdpi 4x in its screen density guidance.
Frequently Asked Questions
Which density folders are generated?
The tool generates mdpi, hdpi, xhdpi, xxhdpi, and xxxhdpi assets.
Does the tool create drawable XML files?
No. It creates resized PNG bitmap assets only.
Should I use this for vector drawables?
No. Vector drawables are resolution-independent and usually do not need density-specific bitmap copies.
Is my image uploaded?
No. Resizing and PNG export happen locally in your browser.