AppForShareCreate a free account

AAB to APK

Convert an AAB to an APK that testers can install

To turn an AAB into an APK, upload the .aab in the box on this page with a free AppForShare account: it runs Google's bundletool to build one universal APK and gives you an install link and a QR code for it. Testers open the link on an Android phone and install, with no Google Play listing.

The APK is signed with a test key made for your account, or with your own upload keystore on Pro and Team. To convert on your own computer instead, the bundletool commands are below.

Create a free account for uploads up to 150 MB, 7-day links, passwords and version history. See plans

How to convert an AAB to an APK here

  1. Step 1

    Sign in or create a free account

    An .aab needs an account, because the APK is signed with a key kept for your account. Without an account, upload an .apk instead.

  2. Step 2

    Upload the .aab

    Drag the .aab onto the upload box or press Choose file. AppForShare runs bundletool build-apks --mode=universal and keeps the universal APK.

  3. Step 3

    Share the install link

    You get an install link and a QR code. The build page shows which key signed the APK.

  4. Step 4

    Testers install on Android

    Testers open the link on the phone and tap Install. A test key APK cannot update the Google Play version, so testers uninstall that version first; the install page says so.

Convert an AAB to an APK with bundletool

bundletool is Google's free command line tool for Android App Bundles and needs Java. Download bundletool-all.jar from its GitHub releases page, build a universal APK set with your keystore, then take universal.apk out of the .apks file, which is a zip archive.

Leave out the --ks options and bundletool signs with the Android SDK debug key, when your computer has one.

java -jar bundletool-all.jar build-apks \
  --bundle=app-release.aab \
  --output=app.apks \
  --mode=universal \
  --ks=upload-keystore.jks \
  --ks-key-alias=upload \
  --ks-pass=pass:your-password

unzip -o app.apks universal.apk

Check the .aab first with the free AAB inspector

A universal APK and what Google Play installs

Google Play does not install the .aab on phones. It builds split APKs for each device from it. A universal APK holds every language, screen density and CPU architecture in one file, so it is larger than what Play delivers to one phone, but it installs on any phone that meets the minimum Android version. That is what testers need from a link.

Which key signs the APK

On Free, the APK is signed with an AppForShare test key made for your account on the first .aab. Every later .aab uses the same key, so new test builds update earlier ones on the phone.

On Pro and Team, an Admin can add your own upload keystore in Settings, and new .aab uploads are signed with it. The keystore is sealed and never shown again. Pro and Team also keep the original .aab next to the APK, ready to send to Google Play.

How .aab uploads work

Upload .aab files from CI

Pro and Team

The CLI, the GitHub Action and the fastlane plugin take an .aab like an .apk, and the install link opens the APK made from it.

export APPFORSHARE_TOKEN=afs_your_token
npx appforshare upload app/build/outputs/bundle/release/app-release.aab --notes "New checkout"

CI guides for each service

Every upload is checked

Every upload, also without an account, is checked for known malware right after the link is issued. A build that matches takes no installs until a person at AppForShare reviews it. AppForShare shares app builds only: it is not a general file host and not an app store.

Good to know

Questions

How do I convert an AAB to an APK online?
Sign in to a free AppForShare account, open appforshare.io/aab-to-apk and drop the .aab in the upload box. AppForShare runs bundletool and makes one universal APK with an install link and a QR code.
Can I install an .aab file on my phone?
No. Android phones install APKs, not app bundles. Turn the .aab into a universal APK first, here or with bundletool build-apks --mode=universal.
Which key signs the APK?
An AppForShare test key made for your account, or on Pro and Team your own upload keystore. The build page says which one.
Is the APK the same as what Google Play installs?
Not exactly. Google Play delivers split APKs made for each phone. The universal APK is built from the same bundle but holds every split in one file, so it is larger.
Why does the APK not update the Google Play version?
Android updates an app only with a build signed by the same key. The test key APK has a different signature from the Play version, so testers uninstall the Play version first.
Is converting an AAB to an APK free?
Yes, with a free account, for builds up to 150 MB with 7 day links. Pro and Team take bigger builds, keep links live while you subscribe and sign with your own upload keystore, and Pro starts with a 7 day free trial.

Read next

Keep your builds together

A free account raises the upload limit, groups versions into projects and adds passwords.