Complete APK signer guide — learn how to sign APK files using apksigner, jarsigner, or debug keystore. Free step-by-step APK signing tutorial for developers and testers. Sign APK without Android Studio.
Every Android app must be digitally signed before it can be installed. The signature serves several purposes:
APK signing requires command-line tools (JDK / Android SDK). This cannot be done in a web browser. Follow the guide below to sign APKs on your computer.
apksigner is Google's official APK signing tool, included in Android SDK Build Tools.
keytool -genkey -v -keystore my-release-key.jks \
-keyalg RSA -keysize 2048 -validity 10000 \
-alias my-key-alias
apksigner sign --ks my-release-key.jks \
--ks-key-alias my-key-alias \
--out signed-app.apk unsigned-app.apk
apksigner verify --verbose signed-app.apk
# Sign
jarsigner -verbose -sigalg SHA256withRSA \
-digestalg SHA-256 \
-keystore my-release-key.jks \
app-unsigned.apk my-key-alias
# Verify
jarsigner -verify -verbose app-signed.apk
After signing, optimize the APK with zipalign:
zipalign -v 4 signed-app.apk aligned-app.apk
For testing purposes, you can use the default Android debug keystore:
# Location of debug keystore:
# Linux/Mac: ~/.android/debug.keystore
# Windows: C:\Users\{USERNAME}\.android\debug.keystore
# Sign with debug key
apksigner sign --ks ~/.android/debug.keystore \
--ks-key-alias androiddebugkey \
--ks-pass pass:android \
app.apk
| apksigner | jarsigner | |
|---|---|---|
| V1 Signature | ||
| V2 Signature | ||
| V3 Signature | ||
| Recommended | Legacy |
Common questions about APK signing, keystores, and Android code signing
The APK Signer tool at xapktoapk.com is a comprehensive guide to signing APK files for Android distribution. Every Android application must be digitally signed with a certificate before it can be installed on a device. This ensures the app's authenticity and integrity throughout the distribution process.
Whether you're a developer preparing your app for Google Play Store submission, a tester who needs to sign a debug APK, or someone who needs to re-sign a modified APK, our guide covers all scenarios. We explain both modern (apksigner) and legacy (jarsigner) methods with complete command-line examples that work on Windows, Mac, and Linux.
After signing your APK, use our APK Signature Verifier to confirm the signature is valid, check the signing scheme version, and view certificate details. You can also use our APK Info Extractor to analyze the signed APK's metadata, permissions, and other details.
Part of the xapktoapk.com suite of 10 free Android tools including XAPK to APK Converter, AAB to APK Converter, APKS to APK Merger, and more.