How to make an XAPK file
- Add the APK. Drop the app's APK onto the box above. For a split app, drop base.apk and all its split APKs together.
- Add OBB files, if the app has them. Drop the .obb files too. The tool checks their names and places them in the right folder inside the XAPK.
- Check the preview. The manifest.json is filled in from the APK and shown as it'll be saved. You can change the display name.
- Download the .xapk. It opens in XAPK installer apps, and in the tools on this site.
Going the other way? To turn an XAPK back into something a phone installs without help, merge it into one APK with the homepage converter.
The manifest.json it writes
The manifest.json is the XAPK's index. Installer apps read it to know which file is the base, which are splits and where the OBB files go. There's no published standard, so the tool writes the fields that XAPK files in circulation use, all taken from the APK itself:
| Field | Where the value comes from |
|---|---|
| xapk_version | Always 2, the layout with split APKs |
| package_name | The base APK's manifest |
| name | The app's label, or the package name if the label is a resource reference; you can edit it |
| version_code, version_name | The base APK's manifest |
| min_sdk_version, target_sdk_version | The base APK's uses-sdk line |
| permissions | Every permission in the base APK's manifest |
| split_configs | The split name of each split APK |
| total_size | The total size of all APKs and OBB files, in bytes |
| split_apks | Every APK with its file name and id, with id "base" for the main APK |
| expansions | Each OBB's path in the archive, its install location and its install path |
Values are written as text where the files in circulation use text, such as "7" for the version code, so installer apps read them the way they expect.
Adding OBB files
OBB files carry game data too big for the APK. The XAPK stores each one at the path it'll have on the phone:
Android/obb/<package name>/main.<version code>.<package name>.obb
The tool checks every OBB name against that pattern and against the APK's package name before adding it. A file called game-data.obb, or one named for another package, is flagged, because the game wouldn't find it after install. Rename it to the pattern first. If you need to pull the OBB out of another package first, the OBB extractor does that, with the folder shown. The pattern and the 2 GB limit per file come from Google's rules for expansion files.
An app can have one main and one patch OBB. Adding a third is flagged too.
How the APK to XAPK converter works
- Read the APKs. Each APK's binary manifest is decoded: package name, version, Android range, permissions and, for splits, the split name.
- Check the set. Same rules as Android's installer: one base, one package name, one version code, one signer. OBB names are checked against the pattern.
- Write manifest.json from those values, with the base APK listed first.
- Build the ZIP. manifest.json, the APKs and the OBB files are written to a new archive. Files are stored without compression, since APKs and most OBB files are already packed. Big OBB files are streamed in slices, so they never need to fit in memory, and archives over 4 GB use the ZIP64 format.
- Check the result. The new XAPK is read back with the same checks the XAPK opener runs, and any problem shows before you download.
The APKs go in unchanged, with their original signatures. Nothing is re-signed.
Worked example: our test app with an OBB
We gave the tool our test app's base APK, its 14 split APKs (190.5 KB in all) and one main OBB of 7.2 KB, main.7.com.example.splittest.obb. It built a 201.4 KB XAPK with 17 entries: manifest.json, 15 APKs and the OBB. This is the manifest.json it wrote, with nothing typed by hand except the name:
{
"xapk_version": 2,
"package_name": "com.example.splittest",
"name": "Split test",
"version_code": "7",
"version_name": "1.0",
"min_sdk_version": "23",
"target_sdk_version": "35",
"permissions": [],
"split_configs": [ "config.arm64_v8a", "config.armeabi_v7a", "config.de", "config.fr", "config.hdpi", "config.ja", "config.ldpi", "config.mdpi", "config.pt", "config.tvdpi", "config.x86_64", "config.xhdpi", "config.xxhdpi", "config.xxxhdpi" ],
"total_size": 202413,
"split_apks": [
{ "file": "base.apk", "id": "base" },
{ "file": "config.arm64_v8a.apk", "id": "config.arm64_v8a" },
{ "file": "config.armeabi_v7a.apk", "id": "config.armeabi_v7a" },
{ "file": "config.de.apk", "id": "config.de" },
{ "file": "config.fr.apk", "id": "config.fr" },
{ "file": "config.hdpi.apk", "id": "config.hdpi" },
{ "file": "config.ja.apk", "id": "config.ja" },
{ "file": "config.ldpi.apk", "id": "config.ldpi" },
{ "file": "config.mdpi.apk", "id": "config.mdpi" },
{ "file": "config.pt.apk", "id": "config.pt" },
{ "file": "config.tvdpi.apk", "id": "config.tvdpi" },
{ "file": "config.x86_64.apk", "id": "config.x86_64" },
{ "file": "config.xhdpi.apk", "id": "config.xhdpi" },
{ "file": "config.xxhdpi.apk", "id": "config.xxhdpi" },
{ "file": "config.xxxhdpi.apk", "id": "config.xxxhdpi" }
],
"expansions": [
{
"file": "Android/obb/com.example.splittest/main.7.com.example.splittest.obb",
"install_location": "EXTERNAL_STORAGE",
"install_path": "Android/obb/com.example.splittest/main.7.com.example.splittest.obb"
}
]
}
The total_size of 202,413 bytes is the 15 APKs plus the OBB. The permissions list is empty because the test app asks for none.
Re-opened with our own tools: the opener's check said "manifest.json matches the files in the archive." The converter read 15 APKs, chose the merge route and placed the OBB at /sdcard/Android/obb/com.example.splittest/, with no errors. Python's zipfile test found no damaged entries.
When to make an XAPK, and when to merge instead
Make an XAPK when you want to keep an app's parts together as they are:
- Backups. An XAPK keeps the developer's signatures, so the app restored from it can still take store updates.
- Games with OBB files. The XAPK carries the data file and its folder, and installer apps copy it into place.
- Sharing with people who use an installer app. One file is easier to send than 15 APKs and an OBB.
Merge to one APK instead when the person on the other end can't use an installer app, or when a tool needs a single APK, such as a patcher. A merged APK installs anywhere but has a new signature, so it won't take store updates. If you're building an APK of your own to go in the XAPK, sign the APK first, since installers refuse unsigned files.
For how to install what you've made, see our guide: how to install apk with obb, and for background on the data files, our guide: what is an obb file.
All tools
Every tool runs in your browser. Your files are never uploaded.
Convert
Install
Inspect
APK to XAPK converter FAQ
Why would I make an XAPK from an APK?
To keep an app and its OBB game data, or its split APKs, in one file. It's handy for backups and sharing, and installer apps put every part in the right place.
Which apps open the XAPK I create?
XAPK installer apps read it, as do open-source split APK installers that support the format. On this site, the opener, extractor, converter and installer all read it too.
Can I add OBB files?
Yes. Drop them in with the APK. Each one must follow the main.<version>.<package>.obb pattern and match the app's package name, and the tool flags any that don't.
What goes in the generated manifest.json?
The package name, display name, version, Android range, permissions, the list of APKs with their ids, the split names, the total size and, if you add any, the OBB files with their install paths. Every value comes from the APK itself.