Dev.to WebDev 🛠 Dev 👁 0 📖 12 min read

How to Convert a Website Into an App: 5 Real Ways and the Best One

"Can you turn my website into an app?" is one of the questions I get most from clients. The honest answer is yes, almost always, but "app" can mean five very different things. One costs nothing and takes ten minutes. Ano

"Can you turn my website into an app?" is one of the questions I get most from clients. The honest answer is yes, almost always, but "app" can mean five very different things. One costs nothing and takes ten minutes. Another means rebuilding the front end from scratch. Most of the bad advice online comes from mixing them up, or from "free website to app converter" pages that sell you the most expensive one dressed up as the cheapest.

Below are the five genuine ways to do it, what each one actually gives you, what the App Store and Google Play will and won't accept, and which one I'd pick for a normal business website.

The five ways, side by side

Method Where it lives Work involved Best for
1. Installable web app (PWA) Home screen, desktop. No store. A manifest file and icons. Hours. Almost every website, as the first step
2. Trusted Web Activity (TWA) Google Play (Android only) A PWA plus a generated Android package. A day or two. Being findable in Google Play
3. WebView wrapper (Capacitor and similar) Google Play and the App Store A native shell, plus real native features to pass review. Days to weeks. Needing the App Store
4. No-code converter service Both stores A form and a subscription. Days. Content sites with no developer
5. Native or cross-platform rebuild Both stores A new app on your site's API. Weeks to months. Apps people use daily, heavy device features

Every option except the last one reuses your existing website. That matters: one codebase means one place to fix a bug, one design to update, and content that changes in the app the moment it changes on the site.

Can you turn any website into an app?

Technically, yes. Any site that works in a mobile browser can be shown inside an app. Whether it's accepted anywhere is a different question, and the answer depends on the method:

  • Home screen install (PWA): no one approves it. If the site meets the browser's checks, it installs.
  • Google Play: its spam policy rejects apps that are just a website in a WebView, and apps that wrap a website you don't own without the owner's permission. A TWA is Google's own supported route for your own site.
  • Apple App Store: guideline 4.2 (Minimum Functionality) is the one that bites. Apple wants an app to be more than "a repackaged website". A plain wrapper is the classic 4.2 rejection.

So "is it possible" is easy. "Is it easy" depends on which store you need, which is the real decision.

1. Make the website installable (a PWA)

A progressive web app is just your website with a few extra files that let the browser install it like an app: its own icon on the home screen, its own window with no address bar, its own entry in the app switcher. On a laptop, Chrome and Edge install it as a desktop app too.

The minimum is a web app manifest, a small JSON file linked from every page:

{
  "name": "Your Business Name",
  "short_name": "YourBiz",
  "start_url": "/",
  "display": "standalone",
  "background_color": "#ffffff",
  "theme_color": "#4f46e5",
  "icons": [
    { "src": "/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" },
    { "src": "/android-chrome-512x512.png", "sizes": "512x512", "type": "image/png" }
  ]
}
<link rel="manifest" href="/site.webmanifest">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">

The icons are the fiddly part. Our free favicon generator makes the 192 and 512 px icons, the Apple touch icon and a ready site.webmanifest from one logo, in your browser.

What I found when I tested it

Older guides say a PWA also needs a service worker before the browser will offer to install it. I checked that on this site. I opened knowledgemarkg.com in Chrome 157 and asked Chrome directly for its installability errors (the same check its install button uses):

  • knowledgemarkg.com: no errors, so it can be installed. It has a manifest like the one above and no service worker at all.
  • example.com, for comparison: no-manifest. No manifest, no install.

So for the install prompt in current Chrome, the manifest and icons are what count. A service worker is still worth adding for what it does: it's what lets the app open without a connection, and it's required for push notifications. Without one, an installed app is still online-only.

How people install it

  • Android (Chrome): menu → Install app (or Add to Home screen).
  • iPhone and iPad (Safari): Share → Add to Home Screen. There's no automatic prompt on iOS, so tell people where the button is.
  • Windows and Mac (Chrome or Edge): the install icon at the right of the address bar.

Limits worth knowing

  • No store listing. People can't find it by searching Google Play or the App Store.
  • Push on iPhone needs the app installed. Since iOS 16.4, web push works for web apps added to the Home Screen, not for the site in a normal Safari tab, and only after the user taps something like a "Turn on notifications" button.
  • Device access is narrower than a native app (no access to contacts, limited background work, especially on iOS).

For a business site, a blog, a booking site or a shop, none of those are usually deal-breakers. That's why this is where I start every time.

2. Put the PWA in Google Play with a Trusted Web Activity

A Trusted Web Activity is an Android app whose whole screen is your website, rendered by the user's Chrome (or another supporting browser) instead of a WebView. It's Google's supported way to list your own PWA in Google Play. Because it uses the real browser, logins, cookies and payments behave exactly like the website.

The usual route:

  1. Get the PWA from step 1 working first. Chrome's TWA guide requires the site to meet the PWA install criteria.
  2. Generate the Android package with PWABuilder (a website: paste your URL, download the package) or Bubblewrap (Google's command-line tool, npx @bubblewrap/cli init --manifest=https://yoursite.com/site.webmanifest).
  3. Prove you own the site. The app is matched to the site with Digital Asset Links: a file at /.well-known/assetlinks.json on your domain containing your app's package name and the SHA-256 fingerprint of its signing key.
  4. Upload to a Google Play developer account (a one-time $25 registration fee charged by Google).
[{
  "relation": ["delegate_permission/common.handle_all_urls"],
  "target": {
    "namespace": "android_app",
    "package_name": "com.yourbusiness.app",
    "sha256_cert_fingerprints": ["AB:CD:EF:...:12"]
  }
}]

Two traps catch nearly everyone:

  • The address bar shows up in the app. That means the asset links check failed, and Chrome falls back to showing your site in a Custom Tab with browser UI. The usual cause is the fingerprint: if Google Play signs the app (Play App Signing), the fingerprint to use is the one from Play Console, not the key on your laptop.
  • The testing rule for new accounts. A personal developer account created after 13 November 2023 has to run a closed test with at least 12 testers, opted in for 14 days in a row, before it can publish to everyone. Plan two weeks for that.

There is no TWA for iPhone. Apple has no equivalent, which is why the App Store needs method 3, 4 or 5.

3. Wrap the site in a native shell (Capacitor)

A WebView app is a real native app, built in Android Studio and Xcode, whose screen is a web view showing your site or your site's built files. Capacitor (from the Ionic team) is the most common way to do it today. Cordova is the older option, and React Native or Flutter can host a WebView too.

Capacitor works two ways:

  • Bundle the front end inside the app. Your built HTML, CSS and JavaScript ship in the app and talk to your server's API. It opens instantly and partly works offline, but every front-end change means a new app release. This suits sites built with React, Vue or a static export of Next.js.
  • Point the app at your live URL (Capacitor's server.url setting). Changes on the site appear in the app at once. Capacitor's own docs describe this setting as meant for live reload during development, not for production, and an app that is only your URL is exactly what Apple's 4.2 review looks for.

The point of Capacitor is its plugins: native push notifications, camera, file access, biometrics, share sheet, haptics. Those are also what gets a wrapped website through App Store review.

Getting a wrapped site past Apple's 4.2 review

Reading the rejection threads on Apple's developer forums, the reasons repeat: the app shows the website's own header and menu, a "download our app" banner, browser-style dead ends and error pages, and nothing a user couldn't get in Safari. What tends to get through is an app that does at least a few things the site can't:

  • Native navigation (a bottom tab bar) instead of the site's hamburger menu, with the site's header and footer hidden inside the app.
  • Native push notifications for something that matters to the user: an order shipped, a booking confirmed.
  • Something that uses the device: scanning, camera upload, Face ID login, offline saved items.
  • A proper offline screen instead of a blank page or a browser error.

Apple's developer programme costs $99 a year, and you need a Mac (or a cloud Mac) to build and submit.

4. No-code website-to-app converters

Search "website to app converter" and you'll get two very different things:

  • Paid services that build and publish a WebView or native-shell app for you, with push notifications and a native menu, often with a WordPress or Shopify plugin. They're a reasonable choice for a content site with no developer, and the good ones handle the store submissions too. Check three things before paying: who owns the developer accounts (it should be you), what happens to the app if you cancel, and whether they'll show you an app they got through Apple review recently.
  • "Free" APK generators, including the ones behind "convert website to app mod apk" searches. These produce a basic WebView APK, often with their ads or branding inside, signed with a key you may never get. Losing the signing key means you can never update that Play listing. Never install a "mod" APK of one of these tools on your phone either: it's an unknown app asking for permissions.

5. Rebuild it as a native or cross-platform app

If people will open the app every day, need it to be fast and smooth, or need deep device features (background location, Bluetooth, heavy offline data), build a real app. React Native and Flutter give you iPhone and Android from one codebase, while Swift and Kotlin give you one each. It doesn't reuse your website's pages, but it can reuse your website's back end: the same database, the same logins, through an API.

This is also why I build websites with a separate API where a client might want an app later. The app then becomes a second front end, not a second system. A site with its logic locked inside the page templates (as many WordPress and page-builder sites are) needs that API written first.

WordPress, Shopify, Wix and Squarespace sites

People search for these by name, so briefly:

  • WordPress: any of the methods above work. A PWA plugin is the quick path. For a store app, the converter services with WordPress plugins (method 4) or a Capacitor app on the WordPress REST API are the usual routes.
  • Shopify: Shopify's App Store has mobile-app builder apps that turn a store into a store-listed app. That's method 4, built for Shopify.
  • Wix and Squarespace: site builders give you little control over the files at your domain's root, and a TWA needs one there (/.well-known/assetlinks.json). Check that before you start. Wix also has its own branded-app product. Otherwise, a converter service is the realistic choice.

Which one is best?

For most business websites, my order is:

  1. Always do the PWA first. It costs a manifest and some icons, it improves the website for everyone, and both later options need it anyway (a TWA requires it, and a wrapper benefits from it).
  2. Need to be in Google Play? Add a TWA. It's the cheapest store app there is, and it updates itself every time the website changes.
  3. Need the App Store? Use Capacitor with real native features, or a converter service if there's no developer. Budget for review rejections the first time.
  4. Is the app the product? Rebuild natively or with React Native or Flutter, on your site's API.

One thing before any of this: an app is only as good as the website inside it. A slow, clunky mobile site makes a slow, clunky app, and in a PWA, TWA or wrapper the speed is exactly the website's speed. Fix that first. Our website speed test and the Core Web Vitals guide are a good place to start, and this is what got this site to 100 on mobile.

Quick checklist

  • Manifest linked on every page, with name, start_url, display: standalone and 192 + 512 px icons.
  • Apple touch icon for iPhone home screens.
  • Service worker if you want offline pages or push.
  • For Google Play: a TWA, /.well-known/assetlinks.json with the Play signing fingerprint, and two weeks for closed testing on a new personal account.
  • For the App Store: native features, not just your URL in a frame.
  • You own the developer accounts and the signing keys, whoever builds the app.

FAQ

Can I turn my website into an app for free?

Yes, as an installable web app (PWA): add a web app manifest and icons, and people can install it from Chrome, Edge or Safari's Add to Home Screen at no cost. Getting into Google Play costs Google's one-time $25 developer fee, and the App Store needs Apple's $99 a year developer programme.

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

For most business websites: make it a PWA first, then add a Trusted Web Activity if you need Google Play, and a Capacitor app with real native features if you need the App Store. Rebuild natively only when the app itself is the product and people will use it daily.

Will Apple accept a WebView app?

Only if it does more than the website. Apple's guideline 4.2 (Minimum Functionality) rejects apps that are a repackaged website. Wrapped apps that pass usually add native navigation, push notifications, device features such as camera or Face ID, and a proper offline screen.

Does Google Play allow WebView apps?

Google Play's spam policy rejects apps that are only a website in a WebView, and apps that wrap someone else's website without permission. For your own site, a Trusted Web Activity is Google's supported route: it shows your PWA full screen through Chrome and is verified with Digital Asset Links.

Do I need a service worker to make my website installable?

Not for the install prompt in current Chrome. I checked this site in Chrome 157: it was installable with only a manifest and icons and no service worker. You still need a service worker for offline pages and push notifications.

Why does my TWA app show an address bar?

The Digital Asset Links check failed, so Chrome fell back to a Custom Tab. Check that /.well-known/assetlinks.json is reachable and that it holds the SHA-256 fingerprint of the key that actually signs the app. With Play App Signing, that is the key shown in Play Console.

Can a website app send push notifications on iPhone?

Yes, since iOS 16.4, but only after the user adds the web app to the Home Screen and then allows notifications from a button tap inside it. A website open in a normal Safari tab cannot ask for push permission on iPhone.

Originally published on knowledgemarkg.com.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.