Skip to content
Devtoolry

APK to AAB Converter

Convert an APK to an Android App Bundle (.aab) online: resources are rebuilt in the aapt2 protobuf format, ready to sign and upload to Google Play. No upload.

Runs in your browser · Nothing uploadedFree · No sign-up

Something not working, or missing a feature? Send feedback

About the APK to AAB Converter

The APK to AAB Converter turns a built Android APK into an Android App Bundle (.aab), the format Google Play requires for new apps. It does what the Android build tools do: the binary resource table (resources.arsc) and compiled XML are rewritten in the aapt2 protobuf format, and dex files, native libraries and assets are sorted into the base module. Use it when you only have the APK of your own app, for example from an old build machine or a game engine export. The conversion runs in your browser, so the APK is never uploaded.

The APK is read and converted by a Web Worker in your browser and never uploaded; the bundle is built on your device. You sign it on your computer, so no keystore or password is ever asked for.

How to use the APK to AAB Converter

  1. Drop the .apk file of a release build (not a debug build or a split APK).
  2. Wait a few seconds while the resources and XML files are converted; large games take longer.
  3. Check the package name, version code and SDK levels, and read any warnings.
  4. Download the .aab, which is unsigned.
  5. Sign it on your computer with jarsigner and your upload key, using the commands shown, then upload it to the Play Console.

Where it works well

  • Release APKs built with Android Studio or Gradle, and exports from Flutter, React Native, Unity and other engines.
  • APKs with shortened or obfuscated resource paths (res/Ab.xml): files get standard names, which does not change the app because resources are loaded by ID.
  • Large game APKs: unchanged files such as native libraries and assets are copied without recompressing them.

Where it struggles

  • Split APKs and .apks, .xapk or .apkm archives (convert the base APK only if it is complete).
  • APKs over 1 GB, or devices with little memory, since the whole file is read in the browser.
  • Apps that need on-demand feature modules or Play Asset Delivery: a converted bundle has a single base module.

Common mistakes

  • Uploading a debug build. Play rejects bundles with android:debuggable="true". APKs from the Run button are also marked testOnly. Build a release APK first; the converter warns about both.
  • Reusing an old version code. Every upload to Play needs a higher versionCode than the last release. The converter keeps the APK’s version code, so rebuild the APK with a higher number if Play reports a conflict.
  • Signing with the wrong key. Sign with the upload key registered in the Play Console, not the debug key. jarsigner -verify -certs shows which certificate signed the bundle.
  • Expecting the 16 KB page size check to pass. Google Play requires support for 16 KB memory pages for apps targeting Android 15 or later. Conversion keeps native libraries as they are, so libraries built with 4 KB alignment must be rebuilt with a recent NDK.

Works well with the APK to AAB Converter

Frequently asked questions

Can I upload the converted AAB to Google Play?

Yes, once you sign it with your upload key and the version code is higher than the last one you published. Play also rejects bundles built as debuggable or testOnly, so convert a release APK. If the app is already on Play, the bundle must keep the same package name and be signed with the upload key registered for it.

Why is the AAB unsigned?

Signing needs your private key and password. Giving those to a web page is a risk you never need to take: jarsigner, which comes with the JDK and Android Studio, signs the bundle on your computer with one command.

Is my APK uploaded?

No. The APK is read and converted by a Web Worker in your browser, and the bundle is built in memory and downloaded from there. Nothing about the app is sent to a server.

Will the app behave the same?

The bundle holds the same dex code, native libraries, assets and resources as the APK. In our tests, the universal APK that bundletool builds from the converted bundle has the same resource table, manifest and files as the original, apart from the split metadata bundletool always adds.

My app was published as an APK before. What changes with a bundle?

Bundles require Play App Signing: Google keeps the app signing key and you sign uploads with an upload key. For an existing app you enroll in Play App Signing in the Play Console and give Google your original signing key (Play shows the steps), so updates still install over old versions.

Can I convert a split APK, an XAPK or an APKS file?

Not directly. Those archives contain several APKs that together make one app. Extract the base APK and convert it only if it holds all the code and resources; otherwise build the bundle from the project with Android Studio (Build > Generate Signed Bundle / APK) or Gradle (bundleRelease).

Can I convert an AAB back to an APK?

Yes, with the AAB to APK Converter, which builds one universal APK signed with a test key so it installs on a phone. Google’s bundletool does the same from the command line with build-apks --mode=universal.

Is it legal to convert someone else’s APK?

Convert only apps you own or have the rights to publish. Google Play also requires that the bundle is signed with the developer’s own keys, so a converted copy of another developer’s app cannot be published as an update to theirs.

Guides and tutorials