Book a free call

How to Reduce App Size Without Cutting Features

Reduce app size by auditing what ships, removing unused code and assets, compressing media, splitting features on demand, and tracking size in CI so it stays down.

Hertiv engineering teamReviewed by a senior engineer
6 min read
How to Reduce App Size Without Cutting Features
On this page

Short answer

Reduce app size by auditing what actually ships in the build, deleting unused code, resources and dependencies, compressing or converting assets, and moving large or rarely used features behind on-demand delivery. Then set a size budget and check it in CI so the savings hold release after release.

What actually makes an app large?

App size is the sum of compiled code, resources and assets, bundled libraries and native binaries, plus anything the store adds during packaging and signing. Most teams guess wrong about which one dominates, so the first step is measurement, not optimisation.

Break the build into categories before touching code. On Android, the APK or App Bundle analyzer shows the contribution of each module, library and asset folder. On iOS, the app thinning report and the build product's folder structure give a similar breakdown. For cross-platform frameworks, inspect both the shared runtime and the platform-specific shells.

Measure two numbers: download size (what the store serves, often compressed and split per device) and install size (what lands on disk after unpacking). A build can look small in the store listing and still consume far more storage once installed.

Write the audit down as a short table: component, current size, owner, and whether it is required at first launch. That table becomes your backlog. Without it, size work turns into random deletions that break features and get reverted.

How do you remove code and dependencies you no longer need?

Unused code and bloated dependencies are usually the largest avoidable contributors. Removing them is low risk when you have tests and a staged rollout.

Start with dependencies. List every third-party library, what feature uses it, and when it was last touched. Analytics SDKs, ad SDKs and old networking or image libraries are common offenders. Replace heavy libraries with platform APIs where they exist, and drop SDKs whose features you no longer use.

Then enable the toolchain's own shrinking. Android's R8 and resource shrinking remove unused classes and resources; iOS dead code stripping does similar work at link time. Tree shaking in JavaScript and Dart bundlers removes unreachable modules. These settings are often disabled to avoid build errors during development and never re-enabled for release.

Finally, look at your own code. Feature flags that have been permanently on, screens removed from navigation, and duplicated utility modules can all be deleted. Static analysis and coverage reports help find them.

Run each removal as a separate change with tests. A dependency that looks unused may be loaded reflectively, which static tools cannot see.

If your team needs extra hands to do this safely alongside feature work, staff augmentation can help.

Which assets should you compress or convert?

Assets are the easiest category to shrink because most changes are visual and reversible. Images, fonts, audio and video usually carry more waste than code.

For images, convert to modern formats such as WebP or AVIF on Android and HEIC or asset catalogs on iOS. Strip metadata, resize to the largest density you actually display, and delete unused variants. Vector graphics should stay vector rather than being exported at several raster sizes.

For fonts, subset to the characters and weights you use. A full family with many weights can be several megabytes; most apps need two or three weights and one or two scripts.

For audio and video, ship compressed formats and stream large media instead of bundling it. Sample media used in onboarding is a frequent culprit.

Localisation files are another quiet contributor. If you ship twenty languages, review whether every string file is complete and whether unused languages can be delivered on demand.

When should you split features with dynamic delivery?

Dynamic delivery moves code and assets out of the base install and downloads them when a user opens a feature. It is the right tool for large, rarely used screens: admin tools, document editors, media creation, or region-specific modules.

On Android, Play Feature Delivery lets you declare modules as install-time or on-demand. On iOS, On-Demand Resources perform a similar role for assets. Cross-platform frameworks vary; check what your framework supports before designing around it.

Splitting has a cost. Users pay a short download the first time they open the feature, and you need sensible loading and error states for offline or slow connections. Analytics must distinguish first-use latency from genuine crashes.

Apply the 80/20 view: measure which screens most sessions actually reach. Features used by a small share of sessions are candidates for on-demand delivery; core flows such as login, home and checkout should stay in the base.

Document the module boundaries so future work does not accidentally pull a dynamic feature back into the base build.

How do you keep app size from creeping back?

Size regressions return quietly, usually through new assets, SDKs or debug symbols added in a hurry. A size budget turns the problem into a routine check.

Set a target for both download and install size, with a small allowance for planned growth. In CI, build the release variant on every pull request, measure the output, and fail or warn when the increase exceeds the allowance. Most stores and build tools expose the numbers you need in their reports; the work is wiring them into the pipeline.

Make size visible. Post the delta on the pull request so reviewers see that a new library added two megabytes. Teams respond to visible numbers far more than to a policy document.

Review dependencies on a schedule, not only when size alarms fire. A quarterly pass over third-party SDKs catches abandoned or duplicated libraries early.

Include release builds in performance testing too, since shrinking and obfuscation can change startup time. Size and speed are related engineering concerns, and both belong in the same pipeline discipline described in our engineering services.

Example: a hypothetical size reduction pass

Example (hypothetical): a consumer app ships at 120 MB download size. The audit finds 30 MB of images, 25 MB of code and libraries, 20 MB of fonts and localisation, 15 MB of bundled media and 30 MB in native binaries and other files.

The team converts images and removes unused variants, saving 15 MB. Dependency pruning and enabling resource shrinking saves 8 MB. Font subsetting saves 6 MB. Moving a rarely used editor to on-demand delivery saves 10 MB from the base download. Native binaries are left alone in this pass.

Total saving is 39 MB, bringing the download to 81 MB. The install size falls by a similar order, though not identically, because unpacked assets and native libraries behave differently.

This is one pass. The size budget then holds the result, and the next audit targets native binaries and any new SDKs. The arithmetic is illustrative; real numbers depend on the app and platform.

What are common mistakes when reducing app size?

Most failed size projects share a few patterns. Avoiding them saves weeks.

  • Optimising a debug build, then discovering release numbers never moved.
  • Deleting libraries that are loaded reflectively, causing runtime crashes in untested paths.
  • Compressing images so aggressively that the product looks worse on high-density screens.
  • Shipping one giant base module because splitting felt complicated, then never splitting.
  • Tracking only store-listed download size and ignoring install size on device.
  • Removing debug symbols entirely and losing the ability to read crash reports.
  • Treating size as a one-off project instead of a budget checked on every pull request.

Size work is ordinary engineering hygiene. It pays back in install conversion, storage use and update speed, and it is far cheaper when the team builds the checks once rather than repeating a cleanup every year. If you are planning a new build or a rebuild, our mobile app development team can help set this up from the start.

Key takeaways

  • Start with a size audit: break the build into code, assets and native libraries before changing anything.
  • Dead code elimination and dependency pruning often yield the fastest wins with the least risk.
  • Convert images to modern formats and ship only the density variants each device needs.
  • Use dynamic feature delivery for large, rarely used screens rather than bundling everything.
  • Set a size budget in CI so regressions are caught in the pull request, not after release.
  • Measure install size and download size separately; app stores report them differently.

Frequently asked questions

Does reducing app size improve download conversion?

Smaller downloads generally help, especially on mobile networks and in regions with limited storage. The effect varies by market and audience, so treat it as one factor among many rather than a guaranteed lift.

What is the difference between download size and install size?

Download size is what the store serves to a device, usually compressed and split per architecture or screen density. Install size is what occupies storage after unpacking. Both matter, but stores and users see them differently.

Can I reduce app size without changing the design?

Yes. Most first-pass savings come from removing unused code, pruning dependencies, converting asset formats and enabling existing shrinker settings. These changes do not alter the visible interface if you test carefully.

Is dynamic feature delivery worth the complexity?

It is worth it when you have large features used by a minority of sessions. For small apps or features most users open, the added loading states and module boundaries may cost more than they save.

How often should we audit app size?

Run a size check on every release build in CI, and do a deeper dependency and asset audit quarterly. The continuous check catches regressions; the periodic audit finds structural waste.

Does app size affect app store ranking?

App stores do not publish size as a ranking factor, and behaviour changes over time. Treat size as a product quality and conversion concern rather than a ranking tactic.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: software products in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Planning a size reduction pass on your app? Talk to Hertiv's mobile engineering team.

A senior engineer replies within one business day. Or see our Mobile App Development service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call