Skip to content
webtoapkfree

How do I convert a website into an Android app?

Wrap the site in a WebView (or a Trusted Web Activity if it's a PWA), sign it with a key you keep, test the APK on a phone, then ship an AAB to Play.

GuidesNookesh Karri

Light cover card with the title 'How do I convert a website into an Android app?' in dark text and a green accent bar

To convert a website into an Android app, wrap it in a WebView (or a Trusted Web Activity if the site is already a Progressive Web App), give it a name, icon and package name, and sign it with a key you keep. Install the APK on a real phone and test it. When it works, build an AAB from the same key and submit that to Google Play.

Step 1: Pick the wrapper

There are two ways to put a website inside an Android app.

A WebView app. Android’s WebView documentation describes the class as one that “lets you display web pages as a part of your activity layout.” It’s a page renderer and nothing more: it “doesn’t include the features of a fully developed web browser, such as navigation controls or an address bar.” Most no-code converters produce this kind of app, and you can also build one yourself in Android Studio.

A Trusted Web Activity (TWA). Chrome’s TWA documentation calls it a way “to open your web-app content such as your Progressive Web App (PWA) from your Android app using a protocol based on Custom Tabs.” The page is “rendered by the user’s browser, in exactly the same way as a user would see it in their browser.” There’s a catch: the app and the site must come from the same developer, proven with Digital Asset Links, and the site has to meet the Add to Home Screen requirements. Bubblewrap, a Node command-line tool, generates the project.

If you can’t edit your domain’s files or your site isn’t a PWA, the TWA route is closed and a WebView is the realistic option. I covered the no-code side of both in how to turn a website into an APK without coding.

Step 2: Get the website ready

A wrapper shows your site as it is. It won’t fix a desktop-only layout or a login page that assumes a full browser. Before you build anything, open the site in Chrome on your phone and fix what looks wrong there.

Then check three things that act differently inside a WebView:

  • JavaScript. “JavaScript is disabled in a WebView by default,” per the Android docs. Builders turn it on for you; a hand-built wrapper needs setJavaScriptEnabled(true). A blank white screen on launch is very often this.
  • Links to other sites. By default, a tapped link hands the URL to whatever app handles it, usually the browser. Hand-built apps use a WebViewClient to keep your own domain inside the app and send other domains out to the browser.
  • The Back button. Without handling, Back closes the app instead of going to the previous page. The fix is checking canGoBack() and calling goBack().

A concrete example: a yoga studio wraps its booking site. In Chrome everything works. In the app, the “Pay with card” button opens a third-party checkout on another domain, and depending on how links are handled it either loads inside the app or jumps to the browser and loses the user. Decide which you want before you ship, and test it.

Step 3: Set the name, icon and package name

The package name (for example com.yogastudio.booking) is the app’s permanent identity. Google Play and every Android phone use it to match updates to the installed app. Choose it once and don’t change it.

The app name and icon can change later with a new build.

Step 4: Sign it and keep the key

Every Android app is signed, and every update must be signed with the same key. Android’s app signing guide is blunt about it: “If you lose or misplace your key, you will not be able to publish updates to your existing app. You cannot regenerate a previously generated key.” If you sign an update with a different certificate, Android treats it as a completely new app under a different package name.

Back up the key file and its password somewhere other than the laptop you built it on. If you use Google Play’s App Signing, Google holds the app signing key and you hold an upload key, which can be reset through Play Console if lost. That safety net doesn’t exist for APKs you hand out yourself. This is also the main thing to check before trusting an online website to APK converter: who generates the key, and can you take it with you?

Step 5: Install the APK on a real phone

An APK is the file you install directly. Android blocks apps from outside Google Play until the user allows it; on Android 8.0 and higher, that permission is granted per source on the “Install unknown apps” settings screen. So if you download the APK through Chrome, allow Chrome; if you open it from a file manager, allow that.

Use the app for a few days. Sign in, sign out, rotate the phone, lose signal halfway through a page, tap a phone number, try a file upload. If the install itself fails, see why an APK says “App not installed”; it’s usually a signature conflict with an older copy.

Step 6: Publish on Google Play (optional)

You can stop at Step 5 and share the APK from your own site. The Android docs list that as a supported option, though some network providers block installs from unknown sources.

For Google Play you need an Android App Bundle, not an APK. “From August 2021, new apps are required to publish with the Android App Bundle on Google Play,” says the app bundle page. Play builds the device-specific APKs from the bundle.

Two policies stop most wrapper apps. The Spam policy bans apps that “provide a webview of a website without permission from the website owner or administrator.” The Minimum Functionality policy says “We do not allow apps that only have limited functionality and content.” Wrapping your own site is fine; wrapping a brochure page and nothing else is a likely rejection. This post on minimum functionality rejections goes into what reviewers want to see.

New personal developer accounts also have to run a closed test “with a minimum of 12 testers who have been opted in continuously for at least 14 days” before production. Plan for those two weeks. More on that in the 12 testers, 14 days rule.

How WebToAPK Free fits in

This is our blog, so a word on our tool. WebToAPK Free is a browser-based WebView builder: you enter a complete HTTPS address, set the app name, package name, icon, colour and navigation, and it produces a signed APK for testing and an AAB for a store submission. Packaging and signing run in your browser, and the project and private signing key aren’t uploaded to a build server. It’s free, with no account and no vendor ads or watermark in the app. The website to APK guide walks through the screens.

The limitation: it’s a WebView wrapper, so it inherits everything above. Sign-in, downloads, permissions and external links can behave differently than in Chrome, generated apps need Android 8.0 or newer, and there are no push notifications or iOS builds. It also stores your projects and key backups only in that browser, so export the encrypted key backup and keep it somewhere safe.

My take

Finish Steps 1 to 5 before you spend anything on Google Play. A week of using your own app on your own phone tells you more than any converter’s feature list: whether logins stick, whether checkout survives, whether the back button feels right. If the site needs fixes, fix them on the website, because every user of the app gets them at once without a new build. Only the name, icon, navigation and any bundled pages need a rebuild.

FAQ

What is the easiest way to convert a website into an Android app?

A WebView builder: you give it your site’s address, a name and an icon, and it produces a signed APK you can install. If your site is already a Progressive Web App, a Trusted Web Activity built with Bubblewrap is the other common route.

Should I use a WebView or a Trusted Web Activity?

Use a Trusted Web Activity if your site is a working PWA and you control the domain, because the page is rendered by the user’s browser exactly as it appears there. Use a WebView when the site isn’t a PWA or you want the app to hold its own navigation and pages.

Can I install the app without Google Play?

Yes. You can host the APK on your site or send it directly. Users have to allow installs from that source first; on Android 8.0 and higher this is the Install unknown apps setting.

What file does Google Play need?

An Android App Bundle (AAB). Since August 2021, new apps on Google Play must be published as app bundles, and Play builds the device-specific APKs from it.

What happens if I lose my signing key?

If you sign the app yourself and lose the key, you can’t publish updates to that app; the key can’t be regenerated. With Play App Signing, a lost upload key can be reset through Play Console.

Sources