Web2APK is a powerful automation tool that converts your web projects (HTML, CSS, JavaScript) into native Android applications. Skip the manual conversion process and deploy your web applications to Android devices with just a single command.
- π One-Command Conversion - Convert web projects to APK instantly
- π¨ Custom Branding - Set your own app name and icon
- π§ Automated Building - Handles compilation and signing automatically
- π Cross-Platform - Works on Windows, macOS, and Linux
- π¦ No Manual Configuration - Just provide your project and go
Important: This tool requires Java JDK and Android SDK to be installed on your system with their environment variables properly configured.
JAVA_HOME- Path to your Java JDK installationANDROID_HOME- Path to your Android SDK installation
- Java JDK 17+ - Required for APK compilation
- Android SDK - Required for Android build tools
Verification: Run the following commands to verify your setup:
echo $JAVA_HOME # Linux/macOS
echo $ANDROID_HOME
echo %JAVA_HOME% # Windows
echo %ANDROID_HOME%git clone https://github.com/77AXEL/Web2APK
cd Web2APKDownload the latest release and extract it to your desired location.
Create your front-end project with the following structure:
my-web-project/
βββ index.html
βββ css/
β βββ style.css
βββ js/
β βββ script.js
βββ assets/
βββ images/
Create a ZIP archive of your entire project folder:
Navigate to the Web2APK directory and execute:
python wa.py -zip path/to/your/project.zip -icon path/to/your/icon.webp -name "YourAppName"Example:
python wa.py -zip ~/projects/my-website.zip -icon ~/icons/app-icon.webp -name "MyAwesomeApp"The tool will automatically:
- Extract your project files
- Install your app icon
- Set your app name
- Build the APK
- Sign the APK
Find your compiled APK in the dist/ directory:
| Argument | Description | Required | Example |
|---|---|---|---|
-zip |
Path to your web project ZIP file | β Yes | project.zip |
-icon |
Path to your app icon (WebP recommended) | β Yes | icon.webp |
-name |
Name for your Android application | β Yes | MyApp |
- β Use WebP format for app icons for optimal quality and size
- β Test your web project in a browser before conversion
- β Use relative paths in your HTML/CSS/JS files
- β Keep file sizes reasonable for faster APK generation
- β
Check logs in the
log/folder if you encounter issues
If the APK build fails, check the log files:
log/build.log- APK compilation errorslog/sign.log- APK signing errors
Environment Variables Not Set:
ERROR: JAVA_HOME is not set
ERROR: ANDROID_HOME is not set
Solution: Install Java JDK and Android SDK, then set the environment variables.
Icon Not Found:
Error: Icon file not found at 'path/to/icon'
Solution: Verify the icon path is correct and the file exists.
ZIP File Invalid:
Error: Invalid zip file
Solution: Ensure your project is properly compressed as a ZIP file.
| Platform | Status | Notes |
|---|---|---|
| Windows | β Supported | Tested on Windows 10/11 |
| macOS | β Supported | Tested on macOS 11+ |
| Linux | β Supported | Ubuntu, Debian, Kali, Parrot, Arch |
This project is open source and available under the (GPL)[./LICENSE] License.
Contributions are welcome! Feel free to:
- Report bugs
- Suggest new features
- Submit pull requests
If you encounter any issues or have questions:
- Open an issue
- Check existing discussions




