Free HTML to APK

Twine to APK

Publish a Twine story (Harlowe, SugarCube, Chapbook) as a single HTML file and convert it into a signed Android APK and AAB for free.

Free HTML to APK turns the HTML5 export of a Twine game into a signed Android app. A Twine story is a single HTML file, which makes it the easiest kind of game to turn into an app. Publish the story, upload the file, pick an icon, and you have an Android app of your interactive fiction in a minute.

Step 1: export from Twine

  1. In Twine 2, open your story and choose Build → Publish to File.
  2. Save the .html file. It contains the whole story and the story format.
  3. If the story uses images or sounds, put the HTML file and the media folders together, rename the HTML file to index.html and upload them as a ZIP.
  4. If it is text only, upload the single HTML file.

Step 2: build the APK

  1. Open the HTML to APK converter and choose ZIP (or HTML for a single file).
  2. Upload your export, then type the app name and a package name such as com.yourstudio.game.
  3. On the display step, turn on Full screen and lock the orientation your game uses.
  4. Create a signing key (or upload yours), press Build, and download the APK to test and the AAB for Google Play.

The website is free, with no account and no watermark. You can also build on your phone with the Android app, which has no file size limit.

Tips for Twine games on phones

  • SugarCube's saves and Harlowe's (save-game:) use browser storage, which stays on the phone between launches.
  • Increase the base font size in your stylesheet for phone screens: 18 px or more reads well.
  • Turn on pull to refresh only if you want readers to restart easily; most stories are better without it.
  • Use the builder's dark mode setting if your story has a dark theme, so the status bar matches.

Test before you publish

Install the APK on a phone (allow Install unknown apps for the app you open it with), then play a full session: start, lose, restart, go to the home screen and come back, and check that saves and sound survive. When it all works, upload the AAB to Google Play. The publishing guide walks through Play Console, and new personal accounts need a 12-tester closed test first.

Questions

Which story formats work?

All of them: Harlowe, SugarCube, Chapbook and Snowman are plain HTML and JavaScript.

Can readers continue where they stopped?

Yes, with the story format's save feature. Saves are kept on the phone.

Can I publish a story on Google Play?

Yes. Google Play accepts interactive fiction apps; complete the content rating questionnaire honestly.

Other engines