How to convert AAB to APK
- Add the .aab file. Drag it onto the box above or choose it. The tool reads every module's manifest and shows which ones will go into the APK.
- Check the module tree. Modules that flow into the APK box are included. Greyed ones are left out, with the reason next to them.
- Click Convert to APK. Resources are converted, modules merged, dex files numbered, and the APK is aligned and signed.
- Download it. Install it with the command shown, or copy it to your phone and open it there.
Nothing is uploaded. The bundle is read and converted on your device, in a background thread, and the APK is made in the page's memory. For split APK packages from download sites, use the main XAPK converter instead.
What happens when an AAB becomes an APK
An app bundle isn't an APK with a different name. Its files sit in module folders, and its resources and XML files are stored in protobuf format, which Android can't read. Google Play turns the bundle into APKs for each phone. To get one APK yourself, the bundle has to go through the same steps bundletool takes in universal mode:
- Pick the modules. The base module always goes in. A feature module goes in when its manifest says
<dist:fusing dist:include="true"/>. An asset pack goes in when it's delivered at install time. - Merge the manifests. The base manifest is kept. Activities, services, receivers, providers, activity aliases and meta-data from the included feature modules are merged into it, with the feature's version taking priority. A list of the fused modules is added, so Play's libraries know they're installed.
- Convert the resources. Each module's resources.pb becomes one resources.arsc, with every string, style, plural, array and screen or language variant kept. Each feature keeps its own resource package and IDs.
- Convert the XML files. Layouts, drawables, menus and the manifest go from protobuf to Android's binary XML.
- Number the code. The base module's dex files keep their names. Dex files from the other modules follow as classes3.dex, classes4.dex and so on.
- Move the rest. Files in root/ go to the top of the APK. assets/ and lib/ keep their paths. Bundle metadata, such as BundleConfig.pb, isn't packed.
- Align and sign. The APK is zip-aligned and signed with the v1, v2 and v3 schemes the app's oldest supported Android version needs.
The tool also adds the small res/xml/splits0.xml file that bundletool writes, which lists the languages the APK holds.
Which modules end up in the APK
| Module | Delivered by Google Play | In the universal APK? |
|---|---|---|
| Base module | At install | Always |
| Feature module, fusing on | At install, on demand or by condition | Yes |
| Feature module, fusing off | On demand | No |
| Asset pack, install-time | At install | Yes |
| Asset pack, fast-follow | Right after install | No |
| Asset pack, on-demand | When the app asks | No |
Google added fusing for phones that can't install split APKs, which Android 5.0 introduced. A module with fusing turned off is meant to be downloaded from Google Play while the app runs. A sideloaded APK can't do that download, so any feature that lives in such a module won't open. The module tree above shows which modules your bundle leaves out.
Worked example: our test bundle against bundletool
We built a test app as an app bundle with Google's own tools (aapt2, d8 and bundletool 1.18.3). It's the sample file in the box above, 23.6 KB, with six modules:
| Module | Type | Delivery | Fusing | In the APK |
|---|---|---|---|---|
| base | Base, 2 dex files | Install-time | n/a | Yes |
| extras | Feature, with code, resources and native libraries | Install-time | On | Yes |
| aextra | Feature that redeclares the main activity | Install-time | On | Yes |
| ondemand | Feature | On demand | Off | No |
| pack_install | Asset pack | Install-time | On | Yes |
| pack_od | Asset pack | On demand | On | No |
The base module has strings in six languages, styled text, plurals, arrays, attributes, styles, layouts, a vector drawable, an adaptive icon and colors for 15 screen and device qualifiers.
We converted it here, then ran bundletool build-apks --mode=universal on the same file and compared the two APKs with aapt2:
- Same 37 files. 24 of them, including all four dex files, the native libraries, images and assets, are byte for byte the same.
- Same XML. The manifest and 11 resource XML files give identical
aapt2 dump xmltreeoutput. The only difference is the resource ID of the language list, which bundletool puts in the extras package and we put in the base one. - Same resources.
aapt2 dump resourcesis identical for both resource packages, as are the type flags and the string pool. - Same app facts.
aapt2 dump badgingmatches: package com.example.aabtest, version 2.1-beta, Android 5.0 and later.
The unsigned APKs were 25,850 and 25,823 bytes. The 27 bytes come from the two tools' compression libraries. Signed for Android 5.0 and later, ours was 32.8 KB with v1, v2 and v3 signatures, and Google's apksigner verified all three.
We ran the same comparison on three more bundles: an older test app, a bundle built with sparse resource encoding, and this app built for Android 4.4. Every check matched, except the dex files of the Android 4.4 build, explained below.
When an AAB can't become a working APK
Most bundles convert cleanly. These cases are the exceptions:
- Modules that aren't fused. On-demand features and on-demand or fast-follow asset packs stay out, as they do with bundletool. Parts of the app that need them won't work.
- Apps that support Android 4.4 or older. If more than one included module has code, bundletool merges all dex files into one with D8 for these versions. This tool numbers them instead. Android 5.0 and later load them as they are, but Android 4.4 phones load only the first one unless the app has its own multidex support. The tool warns you when this applies.
- Asset folders targeted at device types. Bundles can hold textures in several formats, in folders with names like
textures#tcf_astc, and Google Play sends each phone one of them. This tool keeps every folder as it is, so the APK is larger. Games that expect the folder name without the#tcf_part may not find their textures. - Apps that check their signature. The APK carries a new signature. Apps that check it, or that rely on Google Play's integrity checks, may refuse to run. No conversion can fix that.
AAB vs APK: why renaming doesn't work
Both are ZIP files, so renaming app.aab to app.apk looks like it should work. Android rejects it straight away, for three reasons. The manifest sits in base/manifest/ rather than at the top. The manifest and every resource XML file are in protobuf format, which the installer can't parse. And there's no resources.arsc, only resources.pb. An AAB also has no APK signature: it's signed for upload to Google Play, not for installing. See what split APK files are for how Play turns one bundle into the many APKs a phone installs, and the formats table for where AAB fits among the others.
Converting with bundletool on a computer
Google's command-line way needs Java and bundletool:
java -jar bundletool.jar build-apks --bundle=app.aab --output=app.apks --mode=universal
The .apks file is a ZIP. Its universal.apk is the APK you want. Without signing flags, bundletool signs with your Android debug key if it finds one (~/.android/debug.keystore), and leaves the APK unsigned if it doesn't. To sign with your own keystore, add --ks=my.jks --ks-key-alias=mykey. Leave out --mode=universal and you get the full split set for every device configuration. That set is what the APKS to APK converter takes, if you'd rather merge splits for one phone.
After converting
To see the Android versions and CPU types the new APK supports, read its details with the analyzer. To install it from a computer without ADB commands, use the APK installer online in Chrome or Edge. If the install fails with "App not installed", a copy signed by Google Play is usually in the way. Our guide to the package appears to be invalid error covers that and the other causes.
All tools
Every tool runs in your browser. Your files are never uploaded.
Convert
Install
Inspect
AAB to APK converter FAQ
What is an AAB file?
An AAB (Android App Bundle) is the file developers upload to Google Play. It holds the app's code and resources for every device, and Play builds smaller APKs from it for each phone. Android can't install an AAB directly.
Can every AAB become one APK?
Almost every one. The APK holds the base module, the feature modules marked for fusing and the install-time asset packs. Features and asset packs that Google Play downloads later are left out, so the parts of the app that need them won't work.
Do I need bundletool?
No. This page does the same conversion in the browser, with no Java or Android SDK. bundletool is still the right choice for developers who build bundles in Android Studio or a build script.
Why does the APK from an AAB need signing?
An AAB is signed only for upload, and Android installs only signed APKs. The new APK is signed with a key made in your browser, so it can't update a copy of the app installed from Google Play. Uninstall that copy first.
Is my AAB uploaded?
No. The bundle is read, converted and signed on your device. Nothing about it is sent anywhere.