Convert places.sqlite to a bookmarks HTML file
Firefox keeps your bookmarks and your whole browsing history in one file, places.sqlite. Drop a copy here to get the bookmarks back as an HTML file that Chrome, Edge, Firefox and Safari import, and your history as a spreadsheet. Firefox doesn’t need to start, so it works with a profile from a broken install, an old computer or a backup drive.
1Add places.sqlite
2Check what was found
3Download
Find places.sqlite
It sits in your Firefox profile folder. If Firefox still opens, type about:support in the address bar and click Open Folder next to Profile Folder (Show in Finder on a Mac). If it doesn’t, go there by hand:
| System | Where the profile folders are |
|---|---|
| Windows | Press Win+R, type %APPDATA%\Mozilla\Firefox\Profiles\ and click OK |
| Windows, Microsoft Store version | In %LOCALAPPDATA%\Packages, the folder starting Mozilla.Firefox, then LocalCache\Roaming\Mozilla\Firefox\Profiles |
| macOS | ~/Library/Application Support/Firefox/Profiles |
| Linux | ~/.mozilla/firefox, or ~/snap/firefox/common/.mozilla/firefox for the Snap and ~/.var/app/org.mozilla.firefox/.mozilla/firefox for the Flatpak |
Each profile is a folder named like a1b2c3d4.default-release; with a single profile, it’s the one with default in its name. Close Firefox if it’s running, copy places.sqlite to your desktop, along with places.sqlite-wal if it’s there, and drop the copies here. The folders for every system are in where Firefox stores bookmarks.
Add places.sqlite-wal if you have it
Firefox writes changes to places.sqlite-wal first and copies them into places.sqlite every so often and when it closes normally. After a crash, the bookmarks you saved last may exist only in the -wal file. Choose both files at once, or drop the -wal file in after the first, and the converter reads them together the way SQLite does. You don’t need places.sqlite-shm.
What you get
| Download | What’s in it |
|---|---|
| Bookmarks file (.html) | Bookmarks Menu, Bookmarks Toolbar, Other Bookmarks and Mobile Bookmarks as folders, every subfolder in Firefox’s order, with titles and the dates you saved them. |
| Stackboard backup (.json) | The same folders for Stackboard in Chrome or Brave (more below). |
| Bookmarks as CSV (.csv) | One row per bookmark with its folder, title, address, date added and tags. Chrome has no tags, so this is where they go. |
| History as CSV (.csv) | Every page in your history, newest first, with your last visit and how many times you went there. |
Separators are left out, and so are smart folders such as Most Visited, which are searches Firefox runs on the fly. Passwords aren’t in places.sqlite: Mozilla keeps them in key4.db and logins.json.
If Firefox said the file was damaged
When Firefox finds places.sqlite damaged, it keeps the old file as places.sqlite.corrupt, starts a new one and fills it from your latest bookmark backup. Mozilla’s fix for bookmarks that won’t save also replaces the file by hand. Either way your history is gone from Firefox, because Firefox keeps no backup of history. The old file often still holds most of it. Drop places.sqlite.corrupt here: the converter reads every part it can, skips the damaged parts and says so above the preview.
Put them back into Firefox
Open the Library (Ctrl+Shift+O, or Cmd+Shift+O on a Mac), choose Import and Backup, then Import Bookmarks from HTML and pick the file. Firefox adds it to the Bookmarks Menu, next to what you already have.
Import the file into Chrome
- Open
chrome://bookmarks(or press Ctrl+Shift+O, Cmd+Option+B on a Mac). - Click the three-dot menu at the top right of the Bookmark Manager and choose Import bookmarks.
- Pick the
.htmlfile you downloaded. Chrome adds everything in a new folder, usually called Imported at the end of your bookmarks bar (look under Other bookmarks if it isn’t there), and your existing bookmarks stay as they are.
Edge, Brave, Firefox and Safari read the same file. Step-by-step versions: Chrome, Edge, Brave, Firefox and Safari.
Why not copy places.sqlite into a new profile?
That’s Mozilla’s method: with Firefox closed, copy the old places.sqlite into a profile and start it. It needs a working Firefox, it replaces that profile’s bookmarks and history, and Mozilla warns it can bring back the problem you were trying to leave. Converting gives you an ordinary bookmarks file for any browser and leaves every profile as it is.
Zen and other browsers built on Firefox
Zen’s profile guide says it keeps bookmarks and history in places.sqlite too, so its file converts the same way. Any browser built on Firefox that has a places.sqlite in its profile folder should work. The converter reads bookmarks and history only.
Moving to Chrome?
If you’re switching to Chrome or Brave, the Stackboard backup (.json) above puts the same folders on your new tab page. Install Stackboard, open a new tab and go to Settings, Backup, Import JSON: Bookmarks Menu, Bookmarks Toolbar and Other Bookmarks each become a space, with a stack for every folder inside. Everything is saved as ordinary Chrome bookmarks.
Questions
How do I open places.sqlite?
It’s an SQLite database, so a text editor shows nothing useful. Drop it into the converter above to see your bookmarks as a folder tree, then download them as an HTML or CSV file. Nothing is installed and nothing is uploaded.
Can I get my bookmarks out of Firefox without opening it?
Yes. Copy places.sqlite from your profile folder (%APPDATA%\Mozilla\Firefox\Profiles on Windows) and convert it here. The .jsonlz4 files in its bookmarkbackups folder work too, in the Firefox backup converter.
Can I export my Firefox history to CSV or Excel?
Firefox’s Library exports bookmarks only, but your history is in places.sqlite. Drop the file in and choose History as CSV: one row per page with your last visit and the number of visits. Excel opens it directly.
What is places.sqlite-wal?
Firefox’s write-ahead log: changes wait there until Firefox copies them into places.sqlite. Add it together with places.sqlite so your latest bookmarks are included.
Is my file uploaded anywhere?
No. The page reads the file with your browser’s own file reader and builds the new file on your computer. You can load the page, turn off Wi-Fi and it still works.
Your bookmarks, on every new tab
Stackboard is a free Chrome extension that lays out your bookmarks as a board on the new tab page. It stores everything as ordinary Chrome bookmarks, with no account.
Add to Chrome, it’s freeSources
- Mozilla Support: Profiles, where Firefox stores your bookmarks, passwords and other user data
- Mozilla Support: Install Firefox on Linux (Snap and Flatpak profile folders)
- Mozilla Support: Can't add, change or save bookmarks (a new places.sqlite loses your history; no history backups)
- Mozilla Support: Restore bookmarks, passwords and data from an old Firefox profile
- Mozilla Support: Export Firefox bookmarks to an HTML file to back up or transfer bookmarks
- Mozilla Support: Import Bookmarks from an HTML file
- Firefox source: places.sqlite runs in WAL mode, and a damaged one is kept as places.sqlite.corrupt (Database.cpp)
- Firefox source: a new or damaged places.sqlite gets bookmarks from the latest backup (PlacesBrowserStartup.sys.mjs)
- Firefox source: the bookmark, page and keyword tables (nsPlacesTables.h)
- Firefox source: HTML imports go to the Bookmarks Menu (BookmarkHTMLUtils.sys.mjs)
- SQLite: Write-Ahead Logging (changes wait in the -wal file until a checkpoint)
- Zen docs: Manage profiles (places.sqlite holds bookmarks and history)