Finding the HTML5 localStorage file on OS X and Windows 7

Just a quick tip if you’re ever doing iPhone development with the iPhone Simulator in Max OS X.

If your webapp is using HTML5 localStorage, then you can find the SQLite file available for your review by navigating to:

[UserName]\Library\Application Support\iPhone Simulator\[iPhone OS Version]\Library\WebKit\LocalStorage\[url].localstorage

You can then quickly drag and drop it onto the SQLite data browser for your viewing pleasure.

On Windows 7 with desktop Safari, you can do the same thing by going to:

C:\Users\[UserName]\AppData\Local\Apple Computer\Safari\LocalStorage\[url].localstorage

2 thoughts on “Finding the HTML5 localStorage file on OS X and Windows 7

  1. For Google Chrome / Windows 7 (the perfect combination 🙂 it can found at:
    C:\Users\[UserName]\AppData\Local\Google\Chrome\User Data\Default\Local Storage\

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.