What a .bak file is and why your browser created one
A .bak file is a backup copy your browser made of your bookmarks before something changed them. When Firefox, Chrome, or Edge updates, crashes, or you manually export bookmarks, it often saves the old version with a .bak extension so you can go back if something went wrong. The file contains the exact same bookmark data as the original — just frozen at a moment in time.
You'll find .bak files in your browser's profile folder, usually alongside your active bookmarks file. They're plain text files that store bookmark names, URLs, and folder structure. If you accidentally deleted bookmarks, imported the wrong file, or a browser update scrambled your collection, restoring from a .bak file gets you back to where you were.
Key Takeaways
- A .bak file is a backup copy of your bookmarks that your browser created automatically, stored in your profile folder.
- The exact location of the .bak file depends on your browser — Firefox stores it in AppData\Roaming\Mozilla\Firefox, while Chrome uses AppData\Local\Google\Chrome.
- Restoring bookmarks means copying the .bak file, renaming it to remove the .bak extension, and replacing the active bookmarks file.
- Before you restore, export your current bookmarks to an HTML file so you don't lose any bookmarks added after the backup was made.
Finding your .bak file on Windows
Open File Explorer and navigate to your user folder. In the address bar, type %AppData% and press Enter — this takes you directly to the hidden AppData folder where browsers store their data. From there, the path depends on which browser you use.
For Firefox, go to Roaming > Mozilla > Firefox > Profiles. You'll see a folder with a random name like "abc123.default-release". Open it. Inside, look for a file called bookmarkbackups — this is a folder containing multiple .bak files, each labeled with a date. Pick the date closest to when your bookmarks were correct.
For Chrome, go to Local > Google > Chrome > User Data > Default. Look for a file called Bookmarks.bak — there's usually only one. For Edge, go to Local > Microsoft > Edge > User Data > Default and look for Bookmarks.bak in the same way.
Finding your .bak file on Mac
Open Finder and press Command + Shift + G to open the "Go to Folder" dialog. Type ~/Library/Application Support and press Enter.
For Firefox, navigate to Firefox > Profiles, then open the folder with a random name. Look for the bookmarkbackups folder inside. For Chrome, go to Google > Chrome > Default and look for Bookmarks.bak. For Edge, go to Microsoft Edge > Default and find Bookmarks.bak the same way.
Backing up your current bookmarks before restoring
Before you restore from a .bak file, save your current bookmarks in case you've added new ones since the backup was made. Open your browser and look for the bookmark manager — in Firefox it's Ctrl+Shift+B, in Chrome and Edge it's Ctrl+Shift+B as well. Once the manager opens, look for a menu (usually three dots or lines) and find the export or save option.
Choose "Export Bookmarks to HTML File" and save it somewhere you'll remember, like your Desktop. Give it a name like "Bookmarks_Before_Restore_[Today's Date]". This HTML file is a complete snapshot of your bookmarks right now. If the restore goes wrong or you realize you needed a bookmark from after the backup date, you can import this file back in.
Restoring bookmarks in Firefox
The easiest way in Firefox is to use the built-in restore feature. Open Firefox, press Ctrl+Shift+B to open the bookmark manager, then click the menu icon (three horizontal lines) in the top right. Select "Restore" and you'll see a list of backup dates. Click the date you want to restore to, and Firefox will reload your bookmarks from that backup.
If that menu option doesn't appear, you can restore manually. Close Firefox completely. Navigate to your bookmarkbackups folder (see the section above for the exact path). Find the .bak file with the date you want. Copy it, paste it into the same Profiles folder, and rename the copy to bookmarks.jsonlz4 (remove the .bak and the date). Close any open Firefox windows, then open Firefox again — it will load the restored bookmarks.
Restoring bookmarks in Chrome and Edge
Chrome and Edge don't have a built-in restore feature like Firefox does, so you'll restore manually. Close the browser completely — this is important because the browser locks the bookmarks file while it's running. Navigate to your User Data > Default folder (see the section above for the exact path).
Find the file called Bookmarks (no extension). Rename it to Bookmarks.old so you keep a copy of the current version. Then find Bookmarks.bak, copy it, and rename the copy to Bookmarks (remove the .bak extension). Open Chrome or Edge — it will now load bookmarks from the .bak file you just restored.
If something goes wrong and you need your current bookmarks back, close the browser, delete the Bookmarks file you just created, and rename Bookmarks.old back to Bookmarks. This is why backing up to HTML first matters.
What to do if you don't see a .bak file
If you can't find a .bak file in the locations above, your browser may not have created one yet, or it may have been deleted. Check that you're looking in the right profile folder — if you have multiple Firefox profiles or Chrome user accounts, the .bak file will only be in the one you were actually using.
You can also search your entire computer for "*.bak" to find any backup files. Open File Explorer, click in the search box at the top right, type *.bak, and press Enter. Windows will search your whole drive. If nothing appears, the backup may not exist — in that case, your only option is to manually rebuild your bookmarks or import from an HTML export if you have one from an earlier date.
Frequently Asked Questions
Can I restore bookmarks from a .bak file that's several months old?
Yes, but you'll lose any bookmarks added after that backup date. Before you restore, export your current bookmarks to HTML so you have a record of what you had. After restoring, you can manually re-add important bookmarks from the HTML file, or import the HTML file as a new folder.
What if I restore and my bookmarks are still wrong?
Close the browser, undo the restore by swapping the filenames back, and try a different backup date. Firefox's bookmarkbackups folder usually contains multiple dated backups, so you can pick an earlier one. For Chrome and Edge, there's typically only one .bak file, so if that doesn't work, your best option is to import from an HTML export you made earlier.
Is a .bak file the same as an HTML export?
No. A .bak file is the browser's internal backup format and only works with that specific browser. An HTML export is a text file that any browser can read and import. If you're switching browsers, export to HTML instead of trying to restore a .bak file.
Do I need to delete the .bak file after restoring?
No, you can leave it there. It takes up very little space and doesn't interfere with your bookmarks. If you want to clean up, you can delete it, but there's no harm in keeping it as an extra backup.
Why does my browser have multiple .bak files with different dates?
Firefox creates a new backup every time it closes, so the bookmarkbackups folder fills up with many dated versions. You can delete old ones you don't need, but keep the most recent one that has the bookmarks you want. Chrome and Edge typically keep only one .bak file, which they overwrite each time.