Sunday, January 10, 2010

iPhone Offline Web App Creator (Data URI Base64 Encoder)

Here's an online tool to quickly create iPhone Web Apps that are stored entirely in the URL so that they can be run offline. It encodes the entire web app in a base 64 encoded data URI. Be warned, it might not work for very large Web Apps, it all depends on the iPhone's URL limit.


Data to encode:

Prefix:
Name (optional):


Instructions:
  • You need JavaScript enabled for this to work.
  • If you want it to automatically generate the link for you, enter a name that will be used as the link text.
  • Once you encoded the Web App, simply set it as the href target of a link on your website so that people with iPhones can click on it (e.g. <a href="data:text/html;charset=utf-8;base64,dGVzdA==">My Web App</a>). Then once they opened up the data: url in Safari, they simply need to press the Add button in Safari and choose to add it to their home screen.

1 comment:

  1. This is a really cool idea, but I can't think of what I would want to use this for. Can you give any examples?

    ReplyDelete