-c : Checks the alignment configuration without altering the file.
Check the box next to and click Apply to download.
To confirm that your APK is successfully aligned, run this command: zipalign -c -v 4 output_app_aligned.apk Use code with caution.
This is the best method if you plan on doing full-scale Android development.
:
Google Play requires all production APKs to be zip-aligned. If you try to upload an unaligned APK, the Google Play Console will reject it. How to Get Zipalign for Windows
This alignment allows the Android system to access files directly via mmap() without needing to copy the data into RAM.
: Install the Android SDK Build Tools through the Android Studio SDK Manager.
Note: The AppData folder is hidden by default in Windows. To view it, open File Explorer, click the tab at the top, and check the box for Hidden items . Setting Up Zipalign Environment Variables zipalign download windows
Optimizing an Android application is just as important as writing clean code. Before publishing an APK or AAB file to the Google Play Store, Google requires you to align your application package using a tool called .
zipalign -c -v 4 output-aligned.apk
Press the , type "Environment Variables" , and press Enter.
If you do not want to download 2GB of Android Studio just for a 200KB tool, use the lightweight Command Line Tools. -c : Checks the alignment configuration without altering
Disclaimer: The information above is based on standard Android SDK installation practices as of early 2026. Always refer to official Android documentation for the most recent changes. If you'd like, Share public link
To run Zipalign from any folder in the Windows Command Prompt without typing the entire file path every time, add it to your System Environment Variables:
Inside the extracted SDK directory, navigate to platform-tools or build-tools (the exact path may vary depending on the version you downloaded). For example: C:\Users\YourName\Documents\Android\platform-tools or C:\Users\YourName\Documents\Android\build-tools\30.0.3 .
Open your command prompt, navigate to the extracted bin directory, and run the SDK manager tool to download the build-tools package: sdkmanager "build-tools;version" Use code with caution. This is the best method if you plan
Click and paste the folder path where your zipalign.exe resides (do not include zipalign.exe in the path, just the folder path ending in the version number). Click OK on all windows to save the changes. Restart your command prompt for the changes to take effect. How to Use Zipalign via Windows Command Prompt