Mobile Development
FlutterMobile DevelopmentAndroidiOSPerformanceCI/CDOptimization

How to Reduce Flutter App Size in 2026: Shrinking, Splitting, and Asset Optimization

AO
Adrijan Omićević
·16 min read

# Why app size matters in 2026#

If you want to reduce Flutter app size, treat it like performance work: measure, change one variable, measure again, then automate regressions away.

Size impacts business metrics. Google has repeatedly highlighted that larger apps see lower conversion rates and higher uninstalls, especially in bandwidth-constrained markets. Even in high-connectivity regions, users notice. An extra 20 MB can be the difference between “install now” and “maybe later” on mobile data.

It also impacts engineering. Smaller apps typically ship fewer assets, fewer native libraries, and fewer code paths, which can reduce cold start and improve caching behavior. If you are already optimizing frame rendering and startup, these efforts combine well with size work. See related practical guides: Flutter performance optimization for 60fps and Flutter app startup performance.


# What actually makes Flutter apps big#

Flutter apps can bloat for reasons that look “small” in code review but are huge in packaged artifacts.

The typical size budget breakdown#

Use this table as a mental model when you inspect a build:

BucketExamplesWhy it bloatsTypical fixes
Dart AOT codeYour app code, packagesUnused code, reflection-like patterns, large generated codeTree-shaking, remove packages, avoid dynamic loading patterns
Flutter engine and runtimeEngine binariesMostly fixed costAccept baseline, focus on variable parts
Native librariesFirebase, MLKit, Maps, OpenCV, ad SDKsMultiple ABIs, transitive dependenciesSplit per ABI, remove unused modules, use lighter alternatives
AssetsPNGs, JSON, videos, fontsUncompressed or duplicated assetsCompress, convert to WebP/AVIF where appropriate, prune fonts
Debug symbolsAndroid native symbols, iOS dSYMKept in release if misconfiguredEnsure stripping, upload symbols separately

🎯 Key Takeaway: Most meaningful wins come from assets and native libraries, not from micro-optimizing Dart code.

Common causes of bloat we see in audits#

  1. 1
    Shipping oversized images: 3000px PNG backgrounds used as 360px UI elements.
  2. 2
    Using full icon fonts: Bundling Material Icons or Font Awesome full sets when you use 20 icons.
  3. 3
    Multiple copies of the same asset: Light and dark variants stored as separate bitmaps instead of using color filters or SVGs.
  4. 4
    Heavy SDK choices: Pulling in whole Firebase suites or analytics plus ads plus crash reporting when you only need one module.
  5. 5
    No ABI splitting: A universal APK includes arm64-v8a, armeabi-v7a, and x86_64 in one file.
  6. 6
    No shrinking: R8 disabled or misconfigured, so unused Java and Kotlin code stays.
  7. 7
    Shipping test data: JSON fixtures, mock responses, and sample media accidentally included as assets.
  8. 8
    Not measuring the right artifact: Comparing debug APKs, or comparing AAB against APK inconsistently.

# Step 0: Establish a measurement baseline (APK, AAB, IPA)#

Before you optimize, decide what you will measure and how you will report deltas.

Build the artifacts you will track#

Run these commands locally and in CI so the process is identical.

Bash
# Android release APK (useful for QA / sideloading comparisons)
flutter build apk --release
 
# Android App Bundle (what Google Play uses)
flutter build appbundle --release
 
# iOS IPA (requires proper signing configuration)
flutter build ipa --release

Record sizes in a simple table#

Use a spreadsheet, README, or CI artifact summary. Track both “file size” and “download size” expectations.

ArtifactWhere it mattersWhat to compare over time
APK (release)QA, sideloading, some storesFile size in MB
AAB (release)Google PlayAAB size and generated split APK sizes
IPA (release)TestFlight, App StoreIPA size and App Store “App Size” estimate

ℹ️ Note: Google Play delivers split APKs generated from your AAB based on device config. AAB size can go up while device download size goes down, so always inspect splits.

Extract a “what is inside” report#

For Android, bundletool is the most practical way to inspect what users get.

Bash
# Build split APKs from the AAB for inspection
bundletool build-apks \
  --bundle=build/app/outputs/bundle/release/app-release.aab \
  --output=build/app/outputs/bundle/release/app.apks \
  --mode=default
 
# Get a summary (prints modules, variants, sizes)
bundletool get-size total \
  --apks=build/app/outputs/bundle/release/app.apks

For a quick look into what dominates APK size, unzip it and sort by size.

Bash
unzip -l build/app/outputs/flutter-apk/app-release.apk | sort -k1 -n | tail -n 30

# Step 1: Turn on shrinking and obfuscation correctly (Android)#

Android shrinking is where many Flutter apps leave easy wins on the table. The biggest improvements usually come from R8 removing unused Java and Kotlin code from dependencies.

Enable minify and shrink resources#

In android/app/build.gradle for release:

Gradle
android {
  buildTypes {
    release {
      minifyEnabled true
      shrinkResources true
      proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
  }
}

Validate that it actually shrank#

A common pitfall is “enabled” but not effective due to keep rules that keep everything, or because the app is built in a way that disables shrinking.

Check the mapping and usage outputs after a release build:

  • android/app/build/outputs/mapping/release/mapping.txt
  • android/app/build/outputs/mapping/release/usage.txt if configured

⚠️ Warning: Overly broad Proguard keep rules, like keeping entire packages for analytics or reflection-heavy libs, can eliminate most of the benefit. Keep rules should be as narrow as possible and justified.

Add obfuscation when size wins are small but privacy matters#

Obfuscation is not the biggest size lever, but it can remove some metadata and raise reverse engineering cost. Use it alongside shrinking, not instead of it.

Bash
flutter build appbundle --release --obfuscate --split-debug-info=build/symbols

Store build/symbols securely and upload to Crashlytics or Sentry as needed.


# Step 2: Split by ABI and avoid universal APK bloat#

If you distribute APKs directly, ABI splits can cut APK size substantially because each APK contains only one native architecture.

Build split APKs per ABI#

Bash
flutter build apk --release --split-per-abi

You will get separate APKs, commonly:

  • app-armeabi-v7a-release.apk
  • app-arm64-v8a-release.apk
  • app-x86_64-release.apk

When ABI split matters most#

DistributionABI splitting impactRecommendation
Google Play via AABUsually already splitPrefer AAB
Direct APK downloadLarge impactUse --split-per-abi
Enterprise MDMModerate impactConsider separate APKs per device group

# Step 3: Aggressively optimize assets (biggest real-world wins)#

Most Flutter apps ship more bytes in assets than in code. This is also the safest area to optimize without functional risk.

Asset compression checklist#

Asset typeCommon mistakeBetter approachExpected win
PNG photosUsing PNG for photosConvert to JPEG or WebP30 to 80 percent per image
UI bitmapsShipping @1x, @2x, @3x with large baseEnsure correct pixel density and cropping10 to 50 percent
Large backgroundsFull-resolution designs exported rawExport per target size, consider gradients20 to 70 percent
AnimationsHuge GIFsUse Lottie JSON or MP4/WebMOften 5x to 20x smaller
JSONMinified already but duplicatedRemove duplicates, compress source, lazy fetchVaries

💡 Tip: If an image is ever drawn at 300 by 300 dp, exporting a 4000 by 4000 px PNG is guaranteed waste. Export close to the maximum on-screen size times device pixel ratio.

A practical, repeatable workflow#

  1. 1
    Inventory assets by size.
  2. 2
    Optimize the top 10 largest first.
  3. 3
    Rebuild AAB and compare split download sizes, not just repository size.

You can list asset file sizes quickly:

Bash
# macOS/Linux: list the 30 largest assets
find assets -type f -maxdepth 5 -print0 | xargs -0 du -h | sort -hr | head -n 30

Font and icon asset optimization#

Shipping full icon fonts is one of the most common, avoidable sources of bloat.

Prefer Flutter Icons or SVGs over giant icon fonts

If you use only a small subset of icons, avoid bundling a full font file with thousands of glyphs.

ApproachProsConsSize impact
Full icon font (Material, FA)ConvenientBig binary, many unused glyphsOften 0.5 to 3 MB
Subset fontKeeps font workflowNeeds tooling stepOften 60 to 95 percent reduction
SVG per iconPrecise, per-assetNeeds caching and good rendering practicesTypically smallest for small sets

If you must keep a font, subset it using a build step that keeps only used code points. The exact tool depends on your pipeline, but the rule is consistent: only ship glyphs you render.


# Step 4: Reduce dependency and SDK bloat (Dart and native)#

This is where “one package added” can add 5 to 15 MB.

Audit what you actually ship#

Start with a dependency review:

  • Remove unused packages and transitive dependencies.
  • Prefer modular SDKs. For example, use only required Firebase modules, not a meta package that pulls everything.

Track changes with a simple table per PR:

ChangeWhy it was addedSize impact after buildAlternative considered
New SDK or pluginBusiness requirement+X MBLighter SDK, server-side alternative

Watch for native plugins with multiple heavy binaries#

Examples that commonly inflate size:

  • ML and vision libraries
  • Mapping SDKs
  • Video processing
  • Ads networks and mediation

Where possible:

  • Use feature flags and build flavors to exclude SDKs from builds that do not need them.
  • Consider server-side processing for occasional tasks rather than bundling a full on-device library.

# Step 5: Use deferred components and feature splitting (Android)#

If your app has rarely-used features, shipping them on first install is optional. Android Play Feature Delivery can help you move those bytes out of the base install.

When deferred delivery is worth it#

Deferred components are most valuable when:

  • A feature is used by less than 20 percent of users.
  • The feature pulls heavy SDKs, large assets, or ML models.
  • The feature is not required for first-time user activation.

Examples:

  • AR module
  • Offline map packs
  • Video editor
  • On-device ML models

Practical guidance for Flutter teams#

Flutter supports deferred components on Android, but you should treat it as an architectural decision, not a last-minute tweak.

Design rules that reduce risk:

  • Keep your base module free of heavy plugins.
  • Put big assets and code behind a dedicated feature module.
  • Add UX fallbacks for download latency and network failures.

⚠️ Warning: Deferred components can increase complexity in routing, error handling, QA, and analytics. If you cannot test module downloads reliably in CI and staging, you can ship regressions.


# Step 6: iOS-specific size reductions (IPA and App Store size)#

On iOS, the biggest wins are usually in assets and in avoiding bloated native frameworks. There is no direct equivalent to Android resource shrinking, so your leverage points differ.

iOS size optimization checklist#

AreaWhat to checkWhat to do
SymbolsdSYM handlingEnsure release build strips symbols; upload dSYM to crash reporting
AssetsPNG/JPG sizes, duplicatesSame compression workflow as Android
Native frameworksHeavy pods or XCFrameworksRemove unused SDKs, prefer modular frameworks
Bitcode settingsProject settings consistencyKeep consistent per Xcode version and pipeline; avoid accidental debug-like settings

Also align size work with cold-start work. If you reduce assets and native libraries, you can improve decompression and page-in behavior at launch. Use Flutter app startup performance as a companion checklist.


# Step-by-step checklist to reduce APK, AAB, and IPA size#

Use this as a repeatable playbook. The key is to measure after each step and keep a changelog of deltas.

Phase A: Measure and attribute size#

  1. 1
    Build release artifacts: APK, AAB, IPA.
  2. 2
    Record sizes in a table per flavor.
  3. 3
    Inspect AAB split sizes with bundletool.
  4. 4
    Unzip APK and list top offenders by file size.
  5. 5
    List largest assets in the repository and in the built APK.

Phase B: Code and shrink configuration#

  1. 1
    Enable R8 minification and resource shrinking for Android release.
  2. 2
    Build with obfuscation and split debug info.
  3. 3
    Confirm shrinking is effective by checking mapping outputs.
  4. 4
    Remove unused packages and unused native plugins.
  5. 5
    Reduce transitive dependency weight by choosing modular SDKs.

Phase C: Asset optimization and font pruning#

  1. 1
    Optimize the top 10 largest images first.
  2. 2
    Convert photos to JPEG or WebP where acceptable.
  3. 3
    Remove duplicate assets and unused assets.
  4. 4
    Replace full icon fonts with SVG icons or subset fonts to used glyphs.
  5. 5
    Verify that asset changes do not regress visual quality on real devices.

Phase D: Splitting and deferred delivery#

  1. 1
    Use --split-per-abi for APK distribution.
  2. 2
    Prefer AAB for Google Play.
  3. 3
    Identify features used by less than 20 percent of users and candidates for deferred components.
  4. 4
    Move feature code and assets into deferred modules.
  5. 5
    Add UX fallback and telemetry for module download failures.

Phase E: iOS cleanup#

  1. 1
    Ensure release builds strip symbols and do not embed debug assets.
  2. 2
    Remove unused iOS frameworks and pods.
  3. 3
    Re-check the IPA content for large assets and duplicated resources.
  4. 4
    Verify size with TestFlight processing output if applicable.

# Measuring impact properly: a simple delta report template#

For every optimization PR, require a before and after report.

ArtifactBeforeAfterDeltaNotes
APK releaseX MBY MB-Z MBBuilt with split per ABI yes or no
AAB releaseX MBY MB-Z MBAlso include bundletool split total
IPA releaseX MBY MB-Z MBConfirm same signing config

If you only measure “app-release.aab file size”, you can miss improvements that matter to end users. Always include at least one metric that approximates installed or downloaded bytes, such as bundletool totals.


# CI checks to prevent size regressions#

You do not “finish” size optimization. You enforce it.

A practical CI flow is:

  1. 1
    Build release AAB and IPA on main branches or PRs.
  2. 2
    Extract sizes.
  3. 3
    Compare against a baseline JSON committed in the repo or stored as an artifact.
  4. 4
    Fail the build if size increases beyond a threshold, for example 2 percent or 500 KB, whichever is larger.

This pairs naturally with a Flutter CI pipeline. If you are building with GitHub Actions, Codemagic, or Fastlane, integrate size gates into the same workflow described here: Flutter CI/CD with GitHub Actions, Codemagic, and Fastlane.

Example: size gate script (Android AAB and APK)#

Keep scripts short, readable, and deterministic.

Bash
#!/usr/bin/env bash
set -euo pipefail
 
APK="build/app/outputs/flutter-apk/app-release.apk"
AAB="build/app/outputs/bundle/release/app-release.aab"
 
apk_bytes=$(wc -c < "$APK")
aab_bytes=$(wc -c < "$AAB")
 
echo "APK bytes: $apk_bytes"
echo "AAB bytes: $aab_bytes"
 
# Example thresholds: 2 percent increase allowed vs baseline values
baseline_apk=${BASELINE_APK_BYTES:-0}
baseline_aab=${BASELINE_AAB_BYTES:-0}
 
if [ "$baseline_apk" -gt 0 ]; then
  max_apk=$(( baseline_apk + (baseline_apk / 50) ))
  [ "$apk_bytes" -le "$max_apk" ] || (echo "APK size regression" && exit 1)
fi
 
if [ "$baseline_aab" -gt 0 ]; then
  max_aab=$(( baseline_aab + (baseline_aab / 50) ))
  [ "$aab_bytes" -le "$max_aab" ] || (echo "AAB size regression" && exit 1)
fi

What to baseline#

Baseline should be per:

  • app flavor
  • build mode release only
  • target architecture if you distribute APK per ABI

Store baselines in CI variables or a versioned file. Updating baselines should require an explicit PR with a rationale, like “added maps SDK, +3.2 MB, justified by feature X”.

ℹ️ Note: Size gates should be strict enough to catch accidental bloat, but not so strict that teams bypass them. A good starting policy is “fail on greater than 2 percent growth unless annotated.”


# Common pitfalls when trying to reduce Flutter app size#

  1. 1
    Optimizing debug artifacts: Debug builds include extra data. Always compare release artifacts.
  2. 2
    Comparing different build configs: Different flavors, signing, or minify settings invalidate comparisons.
  3. 3
    Using universal APK as your only metric: It overstates what Play users download from AAB.
  4. 4
    Blind Proguard rules: Copy-pasting keep rules that keep entire packages.
  5. 5
    Ignoring asset bloat: Teams spend days on code-level micro-optimizations and skip compressing five 6 MB images.
  6. 6
    No regression prevention: A new SDK silently adds 8 MB next month and you are back where you started.

If you also care about smoothness and launch time, combine this work with frame and startup tuning. Practical references: Flutter performance optimization for 60fps and Flutter app startup performance.


# Key Takeaways#

  • Measure release APK, AAB, and IPA size consistently, and inspect AAB split sizes to reflect real user downloads.
  • Enable Android shrinking properly with R8 and resource shrinking, then verify with mapping outputs and deltas.
  • Assets and icon fonts are usually the biggest wins: compress images, remove duplicates, and subset or replace icon fonts.
  • Split per ABI for direct APK distribution, and consider deferred components for rarely-used, heavy features.
  • Prevent regressions with CI size gates, baselines per flavor, and PR-required size reports.

# Conclusion#

To reduce Flutter app size sustainably, you need two things: a technical playbook and automated enforcement. Start by measuring the right artifacts, apply the high-impact optimizations first (assets, fonts, native dependencies, shrinking), and then add CI checks so you never lose the gains.

If you want us to audit your current APK, AAB, and IPA and deliver a prioritized size reduction plan with measurable targets, contact Samioda. We can integrate size gates into your pipeline and align size work with startup and runtime performance so you improve install conversion and user experience together.

FAQ

Share
A
Adrijan OmićevićFounder & Senior Developer

Founder & Senior Developer at Samioda. 8+ years building React, Next.js, Flutter and n8n automation solutions for clients across Europe.

Need help with your project?

We build custom solutions using the technologies discussed in this article. Senior team, fixed prices.