How to migrate from Internet Explorer to Firefox - gHacks Tech News

How to migrate from Internet Explorer to Firefox

A reader was asking me if there was an easy way to migrate data - that is cookies and bookmarks - from Internet Explorer to Firefox. I can see that this could pose a problem for some users that want to use Firefox but don't want to manually add all their bookmarks again. The process of exporting and importing cookies and bookmarks on the other hand is relatively easy and can be done in a matter of minutes.

The first thing that we have to do is export the cookies from Internet Explorer. To do that press the Alt-key, and click on File > Import and Export > Export Cookies afterwards. All cookies will be saved in a file called cookies.txt by default, leave it that way and finish the operation. Navigate to the folder where cookies.txt was created and open it in a text editor. The next step is the most important one so be extra careful.

Place a "." before each line that starts with a domain. Example, the line "ghacks.net .." should look like ".ghacks.net .." afterwards. You do not need to do this for domains that look like "www.ghacks.net.."

Save cookies.txt and move it into your Firefox profile folder. Make sure Firefox is closed and you have not been using Firefox before. Firefox uses the file cookies.txt as well which means that it is populated if you have been using Firefox before.

internet explorer export data

I have not tested the following method to merge cookies but you can try it if you like. Backup cookies.txt first before you continue. Just append the lines at the end of the cookie information that are already in the cookies.txt file.

Migrating Bookmarks:

This is not complicated as well. Select File > Import and Export again and choose to export your favorites. Save the file as bookmarks.html and open up Firefox.

Click on Bookmarks > Organize (Manage) Bookmarks. A new windows with all your Firefox bookmarks should show up. Click again on File > Import from File and select the saved bookmarks.html file. Bookmarks should be imported automatically from then.

You can try and import them directly from Internet Explorer using the Import from IE option as well but this only works if both browsers are installed on the same computer.





  • We need your help

    Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

    We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats (video ads) or subscription fees.

    If you like our content, and would like to help, please consider making a contribution:

    Comments

    1. netking said on February 27, 2007 at 8:45 pm
      Reply

      An other alternative would be to install google browser sync extension.

      This extension stores all your firefox related stuff like cookies, saved passwords, cache, history on google servers… The only sync it doesn’t store is your local settings (extensions).

      This is really practical, as you just have to install the extension to “feel at home” on any Firefox, just by installing the extension.

      You have to have a google account to use this and if your concerned about privacy with Google storing personal data, just skip the tip !

      1. Martin said on February 27, 2007 at 10:13 pm
        Reply

        I suppose this is only working with firefox settings ? Nice idea though, will be taking a look at it soon.

        Thanks for all your tips and recommendations, they are really valuable to me..

    2. Nathan said on February 28, 2007 at 5:45 am
      Reply

      Well, if you install FF for the first time, you are prompted to transfer your settings: cookies, bookmarks, etc. So, I guess you could reinstall firefox or delete your current profile/reinstall to import everything automatically.

    3. Frank Huber said on March 13, 2007 at 7:09 pm
      Reply

      I could not migrate my cookies from IE5.5 to FF2.0, even though I did everything according to Martin’s recipe. The cookies.txt file exported from IE contained hex 0D 0A 0D 0A (CR LF CR LF) between every pair of lines, and my text editor (Kedit) retained that structure.

      I placed a “.” before each cookie description that didn’t start with “www.” and deleted a few descriptions for cookies that I no longer wanted.

      I had just installed FF 2.0, and had used it only once (to search for how to migrate my cookies), so I renamed the existing cookies.txt as cookies.jnk and copied the edited cookie file to my profile folder.

      The upshot: No cookies are visible to FF.

      P.S.: Nathan, FF 2.0 did NOT prompt me to transfer my cookies, only my bookmarks.

    4. Martin said on March 13, 2007 at 7:21 pm
      Reply

      Frank I only tested it with IE 6.0 and that browser did not add hex values to the cookies.txt file.

    5. Frank Huber said on March 14, 2007 at 6:05 am
      Reply

      I guess I confused everyone by using 0D for CR and 0A for LF = line feed = newline code. I should’ve said that most DOS-oriented editors (like Kedit) default to terminating each line with a carriage return AND a line feed.

      After posting, I examined Firefox’s cookie.txt file and saw only line feeds (newline codes to Unixheads ;) ). Also, I saw tabs representing whitespace.

      Once I told my editor to output only line feeds — and just to be sure, I also told it to output all whitespace as tabs — Firefox accepted my edited cookie.txt file as if it was its own child. Success! Thanks, Martin, for getting me started.

    Leave a Reply