Every megabyte your APK carries costs you installs. On a fast connection with plenty of storage, nobody notices a 90MB app. On a budget phone with 32GB of storage and a patchy connection, that same app is the one people skip — or the one they delete first when space runs out. Google’s own data has shown the same pattern for years: the bigger the download, the fewer people finish it. If your app is a website converted to Android, the problem is even sharper, because a WebView app can quietly bundle large images, fonts and JavaScript that push it well past the size it needs to be.
The good news is that most of the bloat is easy to remove once you know where it hides. This guide walks through the four levers that actually move the needle — shrinking code with R8 and ProGuard, shrinking resources, converting images to WebP, and splitting the APK — plus how to measure before and after so you know the savings are real.
Why a Smaller APK Gets More Installs
Size affects your app in three places. First, the install itself: a smaller download finishes faster, uses less mobile data, and is more likely to complete on a slow connection. Second, storage: phones with little free space warn the user, and a big app is the first candidate for deletion. Third, updates: every update re-downloads a large part of the app, so a bloated app costs your users data again and again. Google Play also shows a download-size warning for very large apps, which puts people off before they even tap Install.
There is no single “correct” size, but as a rule of thumb, a simple content or WebView app should aim for well under 20MB, and a feature-rich app under 50MB. If you are above that, the steps below will almost certainly help. Our guide to checking APK size shows how to measure your app and find what is making it big before you start cutting.
First, Find Out What Is Making Your APK Big
Do not guess. Open your APK in Android Studio’s APK Analyzer (Build > Analyze APK) and look at the breakdown. It shows how much of the file is DEX code, resources, assets, native libraries and manifest. Most bloated apps have one dominant culprit, and it is usually not the code.
The usual suspects, in order of how often they cause trouble:
- Images and assets. Uncompressed PNGs, large photos and bundled video are the single biggest cause of a fat APK.
- Native libraries (.so files). If you ship libraries for every CPU architecture (armeabi-v7a, arm64-v8a, x86, x86_64), you are shipping four copies of the same code.
- DEX code. Large dependency libraries (analytics, ads, maps) add up fast.
- Fonts. A full font family with many weights can be several megabytes.
- Duplicate resources. The same image stored at four densities, or an old asset nobody removed.
Write the numbers down. You want a “before” measurement so you can prove the diet worked.
Shrink the Code with R8 and ProGuard
R8 is the code shrinker that ships with Android Gradle Plugin, and ProGuard is the set of rules that tells it what to keep. Together they remove unused classes, methods and fields, and they shorten the names of what remains. For a typical app this alone can cut the DEX size by a third or more.
Enable it in your app-level build file by setting minifyEnabled to true for the release build, and shrinkResources to true as well (that removes unused resources at the same time). Then add a ProGuard rules file. The default rules are a good start, but you will need keep rules for anything that is accessed by reflection — serialised models, classes referenced from XML, and libraries that document their own keep rules. Add the keep rules the libraries ask for, and nothing more: an over-broad keep rule (like keeping a whole package) undoes the saving.
The step people skip is testing after shrinking. Shrinking changes your code, and a missing keep rule can break something that only shows up at runtime — a screen that crashes, a feature that silently does nothing. Build a release APK with shrinking on, install it on a real device, and tap through every screen, especially login, payments and anything that uses reflection. Do this before you upload, not after users report it. If you are converting a website, WebToAPK Move already configures R8 and ProGuard for the generated app — our APK Size Reducer applies the same shrinking to an existing APK and reports how much it saved.
Shrink Resources: WebP, Vectors and Dead Code
Resources are where the biggest wins usually hide.
Convert images to WebP. WebP gives the same visual quality as PNG or JPEG at roughly a third to a half of the file size. Android Studio can convert in place (right-click a drawable, Convert to WebP) — use lossless for icons and simple graphics, and lossy at a quality around 75–85 for photos. Do not convert your launcher icon or any image that must stay pixel-perfect at every size; those are better as vectors.
Use vector drawables for icons and simple graphics. A vector is a small XML description instead of a bitmap, so one file replaces the mdpi, hdpi, xhdpi and xxhdpi copies. Convert simple icons and logos to vectors and delete the bitmap versions.
Remove unused resources. Turning on shrinkResources deletes resources that nothing references, but only if they are genuinely unreferenced. Run Android Studio’s “Remove Unused Resources” check as well, and delete the old drawables, layouts and strings from features you removed months ago. It is surprising how much dead weight accumulates.
Keep only the densities you need. If your app targets modern phones, you may not need mdpi and ldpi copies of every image. Use density splits or, better, let the App Bundle handle it (see below).
Split the APK by Density and ABI
Shipping one APK that contains every screen density and every CPU architecture means every user downloads code and images for devices they do not own. Splitting fixes that.
The modern answer is the Android App Bundle (.aab). When you upload an AAB, Google Play generates a small, tailored APK for each device — only the density and the CPU architecture that device needs. Users download far less, and you maintain a single artifact. That is the main reason Google now requires the AAB for new production releases. If you still need an APK for testing or direct distribution, you can keep producing one, but make the store release an AAB. Our APK vs AAB guide explains when each file is the right choice.
If you must ship APKs directly, use APK splits by density and ABI so each download only carries what that device needs. It is more files to manage, which is exactly why the bundle exists — prefer the bundle unless you have a specific reason not to.
Audit Your Assets
Go through the assets folder with fresh eyes. Ask of each file: is this used, and does it need to be this big?
- Photos and banners. Resize them to the largest size they are actually displayed at. A 3000px photo shown at 800px is wasted bytes.
- Video and audio. Do not bundle video in the APK if you can stream it or download it on demand. The same goes for large audio files.
- Fonts. Ship only the weights and character sets you use. A font with full Latin, Cyrillic and CJK coverage is heavy; a subset is not.
- Duplicate images. The same image under two names, or a PNG and a WebP of the same graphic, both get shipped.
- Third-party SDK assets. Some SDKs bundle their own images and resources. Check whether you can disable the parts you do not use.
Use the APK Size Reducer
If you would rather not hand-edit build files, run your APK through our APK Size Reducer & Optimizer. Upload the APK, and it applies R8-style shrinking, resource shrinking and WebP conversion, then gives you a smaller APK and a report of what changed and how much was saved. Use it as a quick pass, then check the result with the APK Analyzer to confirm the saving and that nothing important was removed. For a website converted with WebToAPK Move, generate the app from WebToAPK Move with shrinking already enabled, then run the result through the reducer for a second pass.
Mistakes That Break a Shrunk App
Shrinking is safe when it is tested, and it bites when it is not. Avoid these:
- Shrinking without testing. Always install the shrunk release on a real device and use every screen before you publish.
- Missing keep rules. If a crash mentions a missing class or method after shrinking, a keep rule is missing. Add it narrowly.
- Keeping everything. A keep rule for a whole package defeats the purpose. Keep only what reflection actually needs.
- Forgetting the WebView. If your app loads a website, the website’s own images, scripts and fonts are part of the experience — but they are loaded from the web, not bundled in the APK. Do not confuse the two; shrinking the APK does not shrink the website, and a heavy website will still feel slow.
- Leaving debug code in release. Logging libraries, test data and debug flags add size and can leak information. Make sure the release build strips them.
Frequently Asked Questions
What is a good APK size?
For a simple content or WebView app, under 20MB is a good target. A feature-rich app with maps, media or offline content can reasonably be 30–50MB. Above 100MB you should have a specific reason (large offline data that cannot be downloaded on demand) and you should expect a download-size warning on the store.
Does uploading an AAB make my app smaller for users?
Yes. Google Play generates a device-specific APK from the bundle, so each user downloads only the density and architecture they need. That is typically 10–30% smaller than a universal APK, and it is the main reason the bundle is now required for new releases.
How much can R8 and ProGuard actually save?
It depends on how many libraries you include. A typical app saves 20–40% of its DEX size. If you include several large SDKs, the saving is larger. The only way to know is to measure your own APK before and after.
Will shrinking break my app?
It can, if a keep rule is missing — usually something accessed by reflection. That is why you test the shrunk release on a real device before publishing. With correct keep rules and a proper test pass, shrinking is routine and safe.
How do I check my APK size?
Use Android Studio’s APK Analyzer, or upload the file to our APK Size Reducer, which reports the size and the saving. Our step-by-step size guide walks through measuring an APK and finding what is making it big.
Conclusion
A small APK is not about vanity — it is about installs, storage and updates. Measure with the APK Analyzer, enable R8 and shrinkResources with correct keep rules, convert images to WebP and use vectors, remove dead resources, and let the App Bundle tailor the download per device. Do it in that order, test the shrunk release on a real phone, and you will usually cut a third or more without changing what the app does. If you want the shortcut, run the result through the APK Size Reducer and confirm the saving in the analyzer. Your users — especially the ones on budget phones — will notice the difference even if they never know why.




