This article deals with lost or missing bookmarks, recovery methods and prevention.
- If you got a message that your profile was already in use, created a new profile and now your bookmarks and other data are missing, see Profile in use.
- If bookmarks are missing after upgrading to Firefox 3 and you have switched back and forth between Firefox 3 and Firefox 2 in the past, see Lost bookmarks after Firefox 3 upgrade.
- If changes you make to your bookmarks are not saved after restarting the browser, see Bookmarks not saved.
- If you use Firefox 3 and are having other issues (Firefox opens to a blank page, you can't edit or delete certain bookmarks, you can't add new bookmarks, your history is missing, the back/forward toolbar buttons are disabled) see Locked or damaged places.sqlite.
- 1 Step-by-step bookmark recovery
- 2 Multiple profiles and profile in use
- 3 Bookmarks Toolbar is completely missing from Firefox
- 4 Corrupt localstore.rdf
- 5 Finding your bookmarks
- 6 Restoring bookmarks from backup
- 7 Other methods of recovery
- 8 Bookmarks missing after restarting
- 9 Prevention
- 10 Related bug reports
Step-by-step bookmark recovery
Note: At the top of the Firefox window there should be a menu bar with a Bookmarks item, along with other menu items (File, Edit, View, etc.). On Windows, starting in Firefox 3.6, the menu bar can be hidden. If the menu bar is missing, press and release the "Alt" key to temporarily restore it. If you always want to show the menu bar, click "View -> Toolbars" and select "Menu Bar".
If you open 模板:Firefox or Mozilla Suite/SeaMonkey and don't see your bookmarks, as a first step you should close the browser and end any browser processes (or restart the computer) and then reopen the browser.  
If your bookmarks are still missing, even after restarting the computer, the bookmarks file may have been damaged or the contents deleted. Firefox automatically makes a bookmark backup every day you use it (up to 5 backups total), with newer backups replacing the older copies. If you use the profile, you must act quickly, before they are all overwritten.
However, there are other reasons why your bookmarks may be missing, so it is important that you follow all of these steps:
- Mozilla browsers store user data in a separate place for each user account on your computer. Make sure you are logged on to your computer with your usual logon name.
- Mozilla browsers allow you to store different sets of bookmarks and other user data in separate profiles. You may have created a new profile in the past for troubleshooting or other reasons. Make sure you are using the correct profile (see Multiple profiles and profile in use, below).
- If the Bookmarks Toolbar is completely missing from Firefox, make sure that "Bookmarks Toolbar" has a checkmark in the "View -> Toolbars" menu and that the "Bookmarks Toolbar Items" icon appears on the toolbar when you open the Customize Toolbar window (see below).
- If bookmarks appear in the Bookmarks Manager but not in the main menu, and they can't be edited, try the fix for a corrupt localstore.rdf file, given below.
- Check for problematic extensions.
- If your problem is still not solved after doing the above, see Finding your bookmarks and Restoring bookmarks from backup (below).
- Other methods of recovery
Preventing future problems
- You can minimize the likelihood of future problems by following these suggestions (below).
- If your Web browser is not properly shut down, your bookmarks may be lost after restarting..
- Do not switch back and forth between Firefox 2 and Firefox 3 using the same profile as this will cause what appears to be bookmark data loss, since the bookmarks.html file used in Firefox 2 will not be automatically imported into Firefox 3 a second time. .
Multiple profiles and profile in use
Mozilla browsers allow different users to have different settings and bookmarks. You may have inadvertently switched to another profile. Start the Profile Manager (If Mozilla Suite or SeaMonkey is running, click "Tools -> Switch Profile") and, if multiple profiles are listed, select the other profile. If you receive a message that the profile is "in use" or if you are unable to start the original profile, read this article.
Bookmarks Toolbar is completely missing from Firefox
If your bookmarks are missing from the Toolbar but can be found in the Bookmarks sidebar (Ctrl/Cmd+B):
- Make sure that the Bookmarks Toolbar is displayed. Go to "View -> Toolbars" and, if "Bookmarks Toolbar" does not have a check mark, click on it to select the toolbar. Note Firefox 4 (and above) users may use the "Alt" key to first make the Menu bar temporarily visible in order to see the View menu.
- Go to "View -> Toolbars -> Customize" and make sure that the "Bookmarks Toolbar Items" icon appears on the Firefox toolbar, as shown here. If the "Bookmarks Toolbar Items" icon is missing from the toolbar, drag the "Bookmarks" icon from the "Customize Toolbar" window to the Bookmarks toolbar. Note: There may be two different "Bookmarks" icons in the "Customize Toolbar" window; the other one is a Star and was introduced in Firefox 3 is for the Bookmarks sidebar (same as using Ctrl/Cmd+B).
(Firefox) If your bookmarks appear in the Bookmarks Manager (Ctrl/Cmd+Shift+B) but not in the main menu and can't be edited, this can be caused by a corrupt localstore.rdf file . You can fix this by either deleting the localstore.rdf file from the profile folder or, in Firefox 1.5 and later, by starting in Firefox Safe Mode and selecting the option to reset toolbars and controls, then clicking the "Make changes and restart" button, as explained in this article.
Finding your bookmarks
Important: Windows users should make sure they can view and search hidden files and folders as the profile folder containing your stored bookmarks is hidden by default. To locate bookmarks files anywhere on your computer, you can use your operating system’s file and folder search feature to find bookmarks* (be sure to include the asterisk, with no space). You can open any bookmarks file in HTML format from within your Mozilla browser, by using "File -> Open File" from the menu to check its contents; links in a bookmarks file opened in this way will be clickable (see this article for details).
- In Firefox 1.5 and above, five daily bookmark backup files are saved in the bookmarkbackups folder, located in the Firefox profile folder. You must recover one of these five backups before they are overwritten by newer versions.
- In Firefox 2 and below, and in other Mozilla browsers, bookmarks are stored in the file "bookmarks.html", located in the profile folder. There is also a "bookmarks.html" file in the program folder, but this one is only a template and does not hold your bookmarks. To make sure you have the right file, you can open the bookmarks.html file or any bookmark backup file using "File -> Open File" from the menu (see above).
- Starting in Firefox 3, bookmarks are stored in the places.sqlite file and bookmarks*.html files are only used for importing and exporting. As of Firefox 3 Beta 5 bookmarkbackup files are stored in JSON format. )
Restoring bookmarks from backup
Importing a bookmark backup file
The "Import from file" feature of the Bookmarks Manager will add the contents of any bookmarks file in HTML format to your current bookmarks. (Firefox users who wish to replace their current bookmarks, instead of adding to them, can start in Firefox Safe Mode, select the option, "Reset bookmarks to Firefox defaults", and choose "Make Changes and Restart", before importing the bookmarks file.)
You can import a bookmarks file from within your Mozilla browser as follows. (When the file picker appears, navigate to the folder that contains the bookmarks HTML file you wish to use and select that file.)
- Mozilla Suite/SeaMonkey: "Bookmarks -> Manage Bookmarks... -> Tools -> Import..."
- Firefox 2: "Bookmarks -> Organize (or Manage) Bookmarks... -> File -> Import... -> from File". Windows 2000/XP/Vista users can navigate to the Firefox profile folder by typing "%APPDATA%" in the file field and pressing Enter, going into Mozilla, then Firefox, then Profiles, then xxxxxxxx.default (where xxxxxxx is any sequence of numbers and characters) and then going into the bookmarkbackups folder and selecting the bookmarks-(date).html file you wish to import .
- Firefox 3 and above: "Bookmarks -> Organize Bookmarks (or Show All Bookmarks) -> Import and Backup -> Import HTML... -> from an HTML File". Only files in HTML format can be imported. To replace your current bookmarks with a bookmark backup file stored in JSON format, you should use the "Import and Backup -> Restore" feature in the Firefox Bookmarks Manager (see below).
Replacing bookmarks with a backup file
Mozilla Suite/SeaMonkey or Firefox 2: If your current bookmarks.html file is corrupt, it is better to completely close the browser, find a bookmark backup file, rename it "bookmarks.html" if necessary, and then replace the bookmarks.html file in the Firefox or Mozilla Suite/SeaMonkey profile folder with the bookmark backup.  In Firefox 2, you can rename one of the bookmarks-(date).html files from the bookmarkbackups folder to "bookmarks.html" and use it to replace the existing bookmarks.html file in the Firefox profile folder.
Firefox 3 and above: Starting in Firefox 3, Firefox no longer uses the "bookmarks.html" file to store bookmarks (although you can still import from and export your bookmarks to a bookmarks HTML file). In Firefox 3 and above, both bookmarks and browsing history are stored in the places.sqlite file and Firefox automatically stores bookmark backups as dated .JSON files in the bookmarkbackups folder. You can either replace the "places.sqlite" file with a saved places.sqlite backup (if you have one) or, to restore your bookmarks from a bookmark backup file, follow the below instructions for restoring bookmarks in Firefox 3 and above.
Restoring bookmarks in Firefox 3 and above
Starting in Firefox 3, you can replace your current bookmarks with a backup copy by opening the Firefox Library window and using the "Restore" feature ("Bookmarks -> Organize Bookmarks (or Show All Bookmarks) -> Import and Backup -> Restore..." ). You can select one of the ten (default was five in Firefox 3) dated backups that Firefox automatically creates or you can use the "Choose File..." option to select another bookmark backup file. See Backing up and restoring bookmarks - Firefox for more information. (If you see the error, Unable to process the backup file, read this.)
The automatic bookmark backups that Firefox creates are located under the Firefox profile folder, inside the bookmarkbackups folder. You can also create your own bookmark backups, by using the "Import and Backup -> Backup..." feature. All Firefox 3 and above bookmark backup files are stored in in JSON format. Any bookmarks saved in HTML format (such as exported bookmarks) must be imported (see above) rather than restored. 
Note: You can also restore your bookmarks by exiting Firefox and removing the places.sqlite file from the Firefox profile folder. Firefox will rebuild the Places database from the latest JSON backup or, if no JSON file is found, from a bookmarks.html file, as detailed here; however, you will lose your browsing history.
Note: You can set Firefox to automatically export your bookmarks at exit to the Firefox profile folder "bookmarks.html" file by setting browser.bookmarks.autoExportHTML to true but this may delay browser shutdown if you have a large number of bookmarks. 
Restoring bookmarks from external media
If you are restoring bookmarks (or an entire profile) from CD-Rom or other storage media that creates write-protected files, make sure that you remove the read-only attributes from any copied files. Otherwise, read-only bookmarks or other profile files can result in multiple numbered copies of the read-only files. See Multiple profile files created for details.
Other methods of recovery
- Check the Recycle Bin/Trash for a file called "bookmarks.html".
- (Windows) Run the error-checking tool Chkdsk (Windows 2000, XP) or ScanDisk (Windows 95, 98, ME) to see if you can recover any file fragments that contain your lost bookmarks. Look for files with names like FILE0001.chk or FILE0002.chk on the root directory (the files may be inside folders named FOUND.000 or similar). Open each file in Wordpad or Notepad and, if it contains bookmark data, rename it with an .html extension (for example, rename FILE0001.chk to bookmarks1.html). Finally, import the file using the Mozilla Suite/SeaMonkey or Firefox Bookmarks Manager .
- Use a file undelete utility to see if you can recover the file  
Bookmarks missing after restarting
This may occur on Windows systems if your Web browser is not properly shut down before you power down or restart the computer. Make sure you always close the browser before shutting down or restarting the computer.
The problem can also be caused by a faulty or misconfigured plugin or extension, or even malware, causing Firefox to remain in memory. To see if this is your problem, perform the following steps:
- Use Firefox to browse the web for a while, then open the Windows Task Manager, select the Processes tab and find firefox.exe in the list.
- Use "File -> Exit" from the Firefox menu to close Firefox, then wait for firefox.exe to disappear from the Task Manager Processes list (this may take a few seconds if many tabs were open, or Firefox was using a lot of memory). If the firefox.exe process disappears and doesn't come back, this is normal, so if your bookmarks are always missing whenever you restart the computer, it could be related to bug 333907 which may cause .rdf file corruption. To avoid it, exit Firefox before shutting down your PC.
- If firefox.exe remains in the Processes list, end the firefox.exe process by selecting it in the Windows Task Manager and clicking "End Process".
- If the process disappears and doesn't come back, you may have an extension or plugin issue causing Firefox to persist in memory (for example, firefox.exe may remain active after running a Java applet). You should make sure all plugins and extensions are up to date and seek support if the problem persists.
- If the process disappears but comes back, you probably have a virus, or some other malware. Anti-virus software may not be able to detect it. If yours doesn't, seek support. See also Firefox.exe always open.
- Do not power down your computer with Firefox/Mozilla Suite/SeaMonkey running.
- Be careful when using Firefox Safe Mode. If you use the option to reset bookmarks to Firefox defaults, this will delete your bookmarks.
- Be careful when organizing your bookmarks. You can lose your bookmarks by accidentally deleting them in the Bookmarks Manager or sidebar. In that case you can use "Edit -> Undo" or "Organize -> Undo" or the keyboard shortcut ("Ctrl+Z") to get them back.
- Periodically export your bookmarks to the backup location of your choice (especially important in Mozilla Suite and SeaMonkey, which don't include automatic bookmarkbackups):
- Mozilla Suite/SeaMonkey: "Bookmarks -> Manage Bookmarks... -> Tools -> Export..."
- Firefox 2 and earlier: "Bookmarks -> Organize (or Manage) Bookmarks... -> File -> Export..."
- Firefox 3 and above: "Bookmarks -> Organize Bookmarks (or Show All Bookmarks) -> Import and Backup -> Export HTML... (or Backup...)". Note: Use "Export HTML..." to save a bookmarks file in HTML format that can be imported by any browser. Use "Backup..." to save an additional bookmark backup file in JSON format that can be restored in Firefox 3 and above.
- You can increase the number of Firefox automatic bookmarkbackups by modifying the value of the browser.bookmarks.max_backups preference to the desired number, the default was increased to 10 in Firefox 4 (from 5 in Firefox 3).
- Instead of backing up just your bookmarks, you can also back up your entire profile.
- Some "computer clean-up" programs like System Wiper may delete your bookmarks. Make sure you do profile backups before using such programs.
Related bug reports
- Bug 193749 - bookmarks and personal preferences are lost after system crash due to power failure
- Bug 249150 - Bookmarks file is overwritten (deleted) randomly in Firefox versions without places
- Bug 260553 - Bookmarks disappear after power outage and/or crashes
- Bug 284099 - bookmarks lost when upgrading Firefox
- Bug 289615 - bookmark dataloss in abnormal windows shutdown, especially FAT32 systems
- Bug 305004 - Create a dated bookmark backup file periodically
- Bug 319196 - customized toolbar always reset to default on restart, bookmarks and search engines lost, unable to add search engines (localstore.rdf corruption on upgrade or crash)
- Bug 333907 – XRE quits too abruptly when Windows is shut down
- Bug 374528 – Provide backup and restore functionality for Places bookmarks
- Bug 384370 – use JSON as the on disk, lossless format for our bookmark backup
- Bug 403237 – when a user goes from fx 2 -> fx 3 beta -> fx 2 -> fx 3, should we import fx 2 bookmarks.html if it is newer than places.sqlite?
- Bug 422919 – Bookmark Import and Restore do not intelligently handle two different bookmark formats
- Bug 452469 - Symantec Norton360 locks sqlite files (Bookmarks are not visible, Users are not able to add bookmarks etc)