html2apk Get the app

Converting an HTML template into an Android app

Templates from ThemeForest, HTML5 UP, Start Bootstrap and similar sites are a fast way to a polished app — once you strip the 30 demo pages and the website-only parts.

Updated 12 October 2026By HTML2APK Editorial Team7 min read
Short answer

To convert an HTML template into an APK, copy only the pages you use into a fresh folder with their CSS, JS, fonts and images, remove website-only parts (preloader, cookie bar, newsletter, PHP contact form), make paths relative, check the licence allows app use, then ZIP and build. A trimmed template is usually 1–3 MB, well within builder limits.

Key takeaways

  • Templates ship many demo pages and assets — copy only what you use.
  • PHP contact forms do nothing in an APK; use a form service or mailto.
  • Read the licence: some template licences cover one end product only.

1. Trim to what you use

A typical template folder has dozens of HTML variants, several colour skins, a scss/ source folder, documentation and unused plugins. Start a new folder and copy across: the pages you want (rename your main one index.html), the compiled CSS, the JS files those pages include, the fonts folder and only the images you show. The size of an HTML APK is driven almost entirely by images.

2. Remove website-only features

Template featureIn an appDo this
Page preloader / spinnerDelays every launchRemove, or use the builder's page loader
PHP contact form (mail.php)No PHP runs inside an APKPost to a form service or use mailto:
Google Maps iframeOnline onlyStatic map image + a link that opens the Maps app
Cookie bannerNot needed for bundled filesRemove (keep your app's privacy policy)
Back-to-top buttonFineOptional
Smooth-scroll and parallax librariesCan stutter on low-end phonesRemove or simplify

3. Make the contact form work

A form inside your APK can submit to any https endpoint that accepts it. Form back-ends such as Formspree or Basin take a normal POST and email you; your own API works too, as long as it allows cross-origin requests from https://appassets.androidplatform.net. Details in HTML forms in an Android app.

4. Fix paths and CDNs

Templates are usually written with relative paths already, but check the CSS for url(/ and the HTML for Google Fonts and CDN-hosted plugins (Font Awesome, AOS, Swiper). Bundle them — the offline fonts guide covers fonts.

5. Check the licence

HTML5 UP templates are under Creative Commons Attribution: free for any use, with a credit. ThemeForest's Regular Licence covers one end product that you don't charge users for; a paid app generally needs the Extended Licence. Free templates from Start Bootstrap are MIT. When in doubt, read the licence file in the download.

6. Build and test

ZIP the trimmed folder's contents and build it in HTML & ZIP to APK Builder. Tap every menu item: template menus often use hover dropdowns that need a tap handler on touchscreens.

Frequently asked questions

Can I sell an app made from a template?

Only if the template's licence allows it. Many marketplace licences require an extended licence for a product you sell; free licences such as MIT and CC BY allow it with attribution.

Why does my template's menu not open in the app?

Hover-only dropdowns do not trigger on touch. Use the template's mobile menu, or add a click handler that toggles the dropdown.

H2

HTML2APK Editorial Team
Written and checked against the app our builder actually produces. Found an error? Tell us.

Turn your HTML into an APK today

Install the free builder on your Android phone, add your HTML file, ZIP or website, and install a signed APK a few minutes later. No watermark, no card.