APK signer

This APK signer signs an APK in your browser with signature schemes v1, v2 and v3, picked by the Android versions the app supports. It zip-aligns the file first, then signs it the way Google's apksigner does. Use it after you edit, merge or patch an APK, since Android won't install an unsigned one.

  • Free, no sign-up
  • Never uploaded
  • Works offline once loaded

Drop the .apk file to sign here

or

Read on your device, never uploaded ·

How to sign an APK online

  1. Add the APK. Drag it onto the box above. The tool reads the app's minimum Android version and shows which schemes it will use.
  2. Choose a key. Use the key saved in this browser, make a new one, or load your own key and certificate as PEM files.
  3. Click Sign. The APK is aligned, signed and checked.
  4. Download it. The result card shows the schemes, the certificate fingerprint and an apksigner command to verify it on a computer.

Starting from a split app? Turn the XAPK into one APK on the homepage. It merges and signs in one step. Nothing you add here is uploaded: the key and the APK stay on your device.

Which signature schemes your APK gets

Android has added new signature schemes over the years, and each Android version reads only the ones it knows. A signed APK has to carry a scheme every supported phone can check. The rule:

App's minimum Android versionSchemes signedWhy
Below Android 7.0 (API 1 to 23)v1 + v2 + v3Phones older than 7.0 only read v1
Android 7.0 to 8.1 (API 24 to 27)v2 + v3These read v2 but not v3
Android 9 and later (API 28+)v3Every supported phone reads v3

v1 is the old JAR signature. It signs each file in the APK, listed in META-INF. It doesn't protect the ZIP's structure, so it's slow to check and easier to tamper with.

v2, from Android 7.0, signs the whole file in one block inside the APK. Any change to any byte breaks it, and phones check it faster.

v3, from Android 9, has the same layout as v2 and adds room for key rotation, so a developer can move an app to a new key and keep updates working.

There's also a v4 scheme for streaming installs over ADB, which lives in a separate .idsig file, and v3.1 for rotation on Android 13. Neither is needed for a normal install, so this APK signer doesn't add them.

Why zipalign comes before signing

zipalign moves uncompressed files in the APK, such as resources.arsc and native libraries, so each one starts on a fixed boundary. That lets Android read them straight from the file without copying them into memory first. Native libraries go on 16 KB boundaries, which phones with 16 KB memory pages need.

The order matters. A v2 or v3 signature covers every byte of the file, so aligning a signed APK moves bytes and breaks the signature. Google's own instructions say the same: align first, then sign. The tool does both in that order, and checks the alignment after.

How the APK signer works

  1. Read the APK and its manifest to find the minimum Android version.
  2. Strip old signatures. Any META-INF signature files and any old signing block are removed, so the result has one signer.
  3. Align. Uncompressed files move to 4-byte boundaries, native libraries to 16 KB.
  4. Sign v1 if needed: a digest of every file goes into META-INF/MANIFEST.MF, then a signature file and an RSA signature block.
  5. Sign v2 and v3 as needed: the APK is hashed in 1 MB chunks, the digests are signed, and the signing block is placed just before the ZIP's central directory.

The key is RSA 2048 with SHA-256, the same type Android Studio makes by default. All the work runs in the browser's built-in crypto engine.

Worked example: one APK, three minimum versions

We took the unsigned merged APK of our test app, com.example.splittest, 56.1 KB, and signed it three times with the same key, each time as if the app had a different minimum Android version. Then we ran Google's apksigner on each result.

Minimum versionSchemesSigned sizeapksigner verify
Android 6.0 (API 23)v1 + v2 + v362.0 KBv1 true, v2 true, v3 true
Android 8.0 (API 26)v2 + v358.9 KBv1 false, v2 true, v3 true
Android 12L (API 32)v357.5 KBv1 false, v2 false, v3 true

All three passed with "Verifies". The v1 signature adds the most: about 3 KB here, mostly the per-file digests in META-INF. The aligned file also passed zipalign -c -P 16 4, Google's check for 4-byte and 16 KB alignment.

The key the browser made had a certificate with the name "XAPK to APK converter user", RSA 2048 bits, SHA256withRSA, valid for 30 years.

Signing with your own key

By default the tool makes a key the first time and saves it in this browser. Every APK you sign here then carries the same signature, so one signed copy can update another. Two things to know:

  • The key lives in this browser only. Clear the site's data, or switch browser or computer, and the key is gone. A new key can't update apps signed with the old one.
  • Your own key works too. Load a private key and its certificate as PEM text. The tool checks that they belong together before it signs anything. RSA keys are supported, in PKCS#8 ("BEGIN PRIVATE KEY") or PKCS#1 ("BEGIN RSA PRIVATE KEY") form, without a password.

Your key is a .jks or .p12 keystore? Convert it to PEM on your computer with keytool and openssl:

keytool -importkeystore -srckeystore my.jks -destkeystore my.p12 -deststoretype PKCS12
openssl pkcs12 -in my.p12 -nocerts -nodes -out key.pem
openssl pkcs12 -in my.p12 -nokeys -out cert.pem

key.pem holds your private key without a password, so delete it when you're done. The key is only read in the page's memory and never leaves your device.

Remember that your key can't stand in for the developer's. An APK re-signed with any key other than the original can't update the developer's version of the app. You can check the APK signature of both files to see whether they match.

Signing on a computer with apksigner

If you'd rather use Google's own tools, they're part of the Android SDK build tools. Align first, then sign, then verify:

zipalign -P 16 -f 4 input.apk aligned.apk
apksigner sign --ks my.jks --out signed.apk aligned.apk
apksigner verify --verbose --print-certs signed.apk

apksigner chooses the schemes itself, from the app's minimum version and its own defaults. The last command prints which schemes verified and the certificate's fingerprints, so you can compare them with what this page showed.

After signing

Want to confirm the version range and CPU types before you install? Analyze the APK. If the APK started as loose split files, the APK merger joins and signs them in one go. If a signed APK still won't install, the cause is often an installed copy with a different signer. See why Android says a package is invalid for the full list.

All tools

Every tool runs in your browser. Your files are never uploaded.

Sign

You are hereAPK signerSign an APK with v1, v2 and v3

APK signer FAQ

Why does a merged APK need a new signature?

A signature covers the exact files the developer shipped. Merging splits into one APK changes those files, so the old signature no longer fits and Android would reject the APK. Signing it again with a new key makes it installable.

What are signature schemes v1, v2 and v3?

They're three ways of signing an APK. v1 signs each file, v2 signs the whole APK as one block from Android 7.0, and v3 adds key rotation from Android 9. This page signs with the ones the app's minimum Android version needs.

Can I sign with my own key?

Yes. Load your RSA private key and its certificate as PEM files. The page checks that they match, signs with them, and never sends them anywhere.

Will a re-signed APK update the original app?

No. Android only installs an update signed with the same key as the installed app. Uninstall the original first, which removes its data on the phone, then install the re-signed APK.

Is my key uploaded?

No. The key is made and stored in your browser, or read from the PEM files you load, and all signing happens on your device.