APK Signer

APK Signer Online — How to Sign APK Files Free

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.

Drop APK File Here to Sign

or click to browse (.apk, .zip)

100% Client-Side RSA-2048 + SHA-256 Signing

Why Do APK Files Need to Be Signed?

Every Android app must be digitally signed before it can be installed. The signature serves several purposes:

  • Verifies the identity of the app developer
  • Ensures the APK hasn't been tampered with
  • Allows Android to match app updates with the original
  • Required for installing on all Android devices

Browser V1 Signing vs Desktop V2/V3 Signing

Browser V1 Signing vs Desktop V2/V3 Signing: Use the interactive signer above for instant local RSA-2048 V1 JAR signing & testing, or use Google's apksigner CLI below when you need Android 11–15 V2/V3 block signatures with your production JKS keystore.

Method 1: Sign with apksigner (Recommended)

apksigner is Google's official APK signing tool, included in Android SDK Build Tools.

Step 1: Generate a Keystore

keytool -genkey -v -keystore my-release-key.jks \
  -keyalg RSA -keysize 2048 -validity 10000 \
  -alias my-key-alias

Step 2: Sign the APK

apksigner sign --ks my-release-key.jks \
  --ks-key-alias my-key-alias \
  --out signed-app.apk unsigned-app.apk

Step 3: Verify the Signature

apksigner verify --verbose signed-app.apk

Method 2: Sign with jarsigner (Legacy)

# 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

Step 4: Zipalign (Important!)

After signing, optimize the APK with zipalign:

zipalign -v 4 signed-app.apk aligned-app.apk

Debug Signing (For Testing)

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

Signing Tools Comparison

Metricapksignerjarsigner
V1 Signature
V2 Signature
V3 Signature
RecommendedLegacy

APK Signer — Frequently Asked Questions

Common questions about APK signing, keystores, and Android code signing

To sign an APK file, you need apksigner (recommended) or jarsigner: (1) Generate a keystore using keytool -genkey, (2) Sign the APK with apksigner sign --ks my-key.jks --out signed.apk unsigned.apk, (3) Verify the signature with apksigner verify signed.apk. You can also use the Android debug keystore for testing purposes. This is the standard way to sign APK without Android Studio.

While you cannot sign APK online securely (because APK signing requires your private keystore which should never be uploaded to any server), you can use our free APK signer guide to sign APK files on your local machine. Our step-by-step tutorial walks you through the entire process using Google's official apksigner and jarsigner tools. After signing, use our APK Signature Verifier to verify the signature online for free.

V1 (JAR Signing): The original Android signing scheme. Verifies each ZIP entry individually. Slower but widely compatible with all Android versions. V2 (APK Signature Scheme): Introduced in Android 7.0. Verifies the entire APK as a whole, providing faster installation. V3 (APK Signature Scheme v3): Android 9.0+, supports key rotation. V4: Android 11.0+, enables streaming installs. Use apksigner to support all schemes; jarsigner only supports V1.

To sign APK without Android Studio: (1) Install Java JDK 8 or higher, (2) Download Android SDK Build Tools which includes apksigner, or download the standalone bundled tool, (3) Generate a keystore: keytool -genkey -v -keystore my-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-alias, (4) Sign: apksigner sign --ks my-key.jks --out signed.apk app.apk. This method works on Windows, Mac, and Linux without requiring the full Android Studio installation.

zipalign is an Android SDK tool that aligns uncompressed data within the APK on 4-byte boundaries. This optimization reduces RAM consumption when the app runs on a device. Important: If using apksigner, run zipalign BEFORE signing. If using jarsigner (legacy), run zipalign AFTER signing. Command: zipalign -v 4 input.apk output.apk. Google Play requires APKs to be zipaligned for submission.

Why Alignment Order (zipalign Before apksigner) Matters on Android 11–15

One of the most frequent mistakes developers and release engineers make when signing a modified or merged APK is running zipalign after signing the package—or using Java's legacy jarsigner utility instead of Google's Android SDK apksigner. Because APK Signature Scheme v2 and v3 compute a cryptographic hash over the entire binary layout of the ZIP archive, modifying byte offsets with zipalign after signing immediately invalidates the v2/v3 signature block.

Starting with Android 11 (API level 30) and enforced strictly on Android 14 and 15, PackageManager requires two non-negotiable conditions for any APK targeting modern SDK levels:

  • Uncompressed 4-Byte Aligned resources.arsc: The compiled resource table (resources.arsc) must be stored uncompressed (STORED) and aligned on a 4-byte boundary so Android can memory-map (mmap) it directly without copying it into RAM. Always execute zipalign -p -f -v 4 input.apk aligned.apk before signing.
  • Mandatory v2+ Signature Block: Signing an APK targeting API 30+ with jarsigner (which only writes a v1 META-INF/ signature) will cause Android 11–15 to reject the install with INSTALL_PARSE_FAILED_NO_CERTIFICATES. Use the interactive command generator above to build the exact apksigner --v2-signing-enabled=true command for your keystore, or verify your signed output in our APK Signature Verifier.
Engineered & Documented by Mst Shaefale Lead Developer & Android Package Architect • Verified on Android 12–15

Every utility in the XAPK to APK toolkit runs 100% locally in your browser via JavaScript and WebAssembly. Found an edge case with a specific package? Report it to our engineering team.

Use this free online APK signer to sign modified APK files or universal AAB outputs with V1 JAR and V2 APK Signing Block certificates directly inside your browser.