To export Firefox bookmarks, press Ctrl+Shift+O (Cmd+Shift+O on a Mac) to open the Library, click Import and Backup, and choose Export Bookmarks to HTML. Firefox writes every bookmark and folder into one bookmarks.html file that Chrome, Edge, Safari and another copy of Firefox can all import.
That takes under a minute in a working Firefox on a computer. If Firefox won’t open, your bookmarks are still files in your profile folder, and there is a way to get them out of those. A phone is a third case, and there the menu doesn’t exist.
- The menu route: Ctrl+Shift+O, then Import and Backup, then Export Bookmarks to HTML. One file, every folder, readable by any browser.
- Backup is a different button. It saves a
.jsonfile that only Firefox can restore. Use HTML to move browsers and JSON to rebuild Firefox exactly. - Firefox will not open? The bookmarks are still files in your profile folder:
places.sqliteholds the live set andbookmarkbackupsholds up to 15 dated copies. Both turn back into an HTML file. - Phones cannot export. Firefox for Android and iOS have no export option. Sync to Firefox on a computer and export there, after moving the Mobile Bookmarks folder, which the export skips.
How to export Firefox bookmarks to an HTML file
- Open the Library. Press Ctrl+Shift+O on Windows or Linux, or Cmd+Shift+O on a Mac. With the mouse, open the Bookmarks menu in the menu bar (press Alt on Windows if the menu bar is hidden) and choose Manage Bookmarks, or open the ☰ menu, then Bookmarks, then Manage bookmarks.
- Click Import and Backup in the Library window’s toolbar.
- Choose Export Bookmarks to HTML…
- Save the file. Firefox fills in the name
bookmarks.html. If you are leaving this computer, save it straight to a USB stick or a cloud drive. - Open it once. Double-click the file and it renders in any browser as a nested list of links. Check your folders are there before you wipe or sell anything.
Some guides give Ctrl+Shift+B for this job. In Firefox that key shows or hides the bookmarks toolbar, and Ctrl+B opens the bookmarks sidebar. Neither reaches the export.
The export keeps your folder tree, every title and address, the date each bookmark was added, any tags, and any keyword shortcut you set. The Bookmarks Menu sits at the top level, and the Bookmarks Toolbar and Other Bookmarks come in as folders.
One folder is missing. Firefox’s export code leaves out Mobile Bookmarks, the folder that fills up when you sync a phone, with no warning. If that folder shows in the Library’s left panel, drag its contents into Other Bookmarks first, then export.
HTML or JSON: which Firefox export do you need?
Import and Backup offers two ways out, and the files do different jobs.
| You want to | Use | What you get |
|---|---|---|
| Move to Chrome, Edge, Brave or Safari | Export Bookmarks to HTML | bookmarks.html, which any browser imports |
| Keep a copy you can read anywhere | Export Bookmarks to HTML | bookmarks.html, which opens as a web page |
| Rebuild Firefox exactly, Mobile Bookmarks included | Backup | A dated .json file that Firefox restores |
| Rescue bookmarks from a profile that will not open | The bookmarkbackups folder | Dated .jsonlz4 files that Firefox restores with Choose File |
| Get the newest bookmarks with no Firefox at all | places.sqlite and a script | An HTML file any browser imports |
The difference shows on the way back in. Import Bookmarks from HTML adds the file’s bookmarks to what Firefox already holds. Restore replaces every bookmark in that Firefox with the backup’s contents, after one confirmation dialog. Restore a JSON file into a Firefox you still use and anything saved since the backup date is gone, so export to HTML before you restore anything.
How to export Firefox bookmarks when Firefox won’t open
Bookmarks are files in your Firefox profile folder. They survive a crashing Firefox, an uninstall, and often a dead computer whose drive still reads.
If Firefox runs at all, open the ☰ menu, then Help, then More Troubleshooting Information, and click the button beside Profile Folder. Without Firefox, look here:
- Windows:
C:\Users\<you>\AppData\Roaming\Mozilla\Firefox\Profiles\, then the folder ending in.default-release. - macOS:
~/Library/Application Support/Firefox/Profiles/, then the folder ending in.default-release. - Linux:
~/.mozilla/firefox/, or~/.config/mozilla/firefox/on newer installs.
Inside, places.sqlite is the live database, holding every bookmark up to the last time Firefox ran. The bookmarkbackups folder holds up to 15 dated copies, because 15 is the default of the browser.bookmarks.max_backups setting in Firefox’s own preference file.
Route 1: restore a backup in a fresh Firefox
This needs no command line, only Firefox installed on any computer.
- Copy the newest
.jsonlz4file out ofbookmarkbackups. The date is at the start of its name. - Open Firefox with a new, empty profile. Use a fresh one, because step 3 replaces every bookmark in the profile you run it in.
- Press Ctrl+Shift+O, click Import and Backup, then Restore, then Choose File…, and pick the backup. Confirm the warning.
- Click Import and Backup again and choose Export Bookmarks to HTML. You now hold the same file the menu route makes.
The filename tells you what is inside before you open it. Our test profile’s backup was named bookmarks-2026-11-06_42_….jsonlz4, and the 42 counts every item in it: 34 bookmarks plus 8 folders, Firefox’s built-in ones included. A backup stops at the moment it was written, so anything bookmarked later exists only in places.sqlite. If you are digging for an older day, the guide to Firefox bookmarks that disappeared reads these files in detail.
Route 2: read places.sqlite with a script
places.sqlite is always the newest copy, because Firefox writes to it as you browse. It is an ordinary SQLite database, and Python 3 can read SQLite without extra installs. Close Firefox, copy places.sqlite to another folder, and save this as firefox_bookmarks_to_html.py beside the copy:
# Usage: python3 firefox_bookmarks_to_html.py places.sqlite bookmarks.html
# Run it on a COPY of places.sqlite, taken while Firefox is closed.
import html, sqlite3, sys
db = sqlite3.connect(sys.argv[1])
ROOTS = {"toolbar_____": "Bookmarks Toolbar", "menu________": "Bookmarks Menu",
"unfiled_____": "Other Bookmarks", "mobile______": "Mobile Bookmarks"}
def write_folder(folder_id, out, depth):
pad = " " * depth
rows = db.execute("""SELECT b.id, b.type, b.title, p.url FROM moz_bookmarks b
LEFT JOIN moz_places p ON p.id = b.fk
WHERE b.parent = ? ORDER BY b.position""", (folder_id,))
for item_id, kind, title, url in rows.fetchall():
if kind == 1 and url: # a bookmark
name = html.escape(title or url)
out.write(f'{pad}<DT><A HREF="{html.escape(url)}">{name}</A>\n')
elif kind == 2: # a folder
out.write(f"{pad}<DT><H3>{html.escape(title or '')}</H3>\n{pad}<DL><p>\n")
write_folder(item_id, out, depth + 1)
out.write(f"{pad}</DL><p>\n")
with open(sys.argv[2], "w", encoding="utf-8") as out:
out.write("<!DOCTYPE NETSCAPE-Bookmark-file-1>\n"
'<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">\n'
"<TITLE>Bookmarks</TITLE>\n<H1>Bookmarks</H1>\n<DL><p>\n")
for guid, label in ROOTS.items():
root = db.execute("SELECT id FROM moz_bookmarks WHERE guid = ?", (guid,)).fetchone()
if root and db.execute("SELECT 1 FROM moz_bookmarks WHERE parent = ?", root).fetchone():
flag = ' PERSONAL_TOOLBAR_FOLDER="true"' if guid == "toolbar_____" else ""
out.write(f"<DT><H3{flag}>{label}</H3>\n<DL><p>\n")
write_folder(root[0], out, 1)
out.write("</DL><p>\n")
out.write("</DL><p>\n")
Then run python3 firefox_bookmarks_to_html.py places.sqlite bookmarks.html (on Windows, py in place of python3). On our test profile it wrote all 34 links into their three folders, and a brand-new Firefox profile rebuilt all 34 bookmarks from the file. Unlike the built-in export, the script keeps Mobile Bookmarks. It leaves out tags, keyword shortcuts and dates, so use Route 1 when those matter.
Make Firefox export bookmarks.html every time it closes
Firefox has a setting that writes a fresh bookmarks.html into the profile folder at every shutdown. It ships switched off. The comment beside it in Firefox’s preference file says that when it is on, “at shutdown the bookmarks in your menu and toolbar will be exported as HTML to the bookmarks.html file.”
- Type
about:configin the address bar and accept the warning. - Search for
browser.bookmarks.autoExportHTML. - Click the toggle so it reads
true. - Restart Firefox. It reads the setting at startup, so the first file appears at the close after that.
The file is rewritten at every close, so it mirrors today and keeps no history. Copy it somewhere else now and then. Leave the similar-looking browser.places.importBookmarksHTML alone: set to true, it makes Firefox load bookmarks.html at the next start and replace your bookmarks with it.
Export Firefox bookmarks and passwords together
The bookmarks file never holds passwords. They have their own export:
- Open the ☰ menu and choose Passwords, or type
about:loginsin the address bar. - Open the menu at the top right of that page and choose Export Passwords…
- Confirm with your computer’s login on Windows or a Mac. Firefox saves
passwords.csv.
That CSV is plain text, so anyone who opens it reads every password. Import it into the new browser or password manager, then delete it the same day.
Exporting Firefox bookmarks on Android or iPhone
Neither Firefox for Android nor Firefox for iOS can write a bookmarks file. Mozilla’s tracker has carried the Android request, titled “Import/Export bookmarks to local fileystem”, as bug 1806482 since 19 December 2022. It was still marked NEW when we checked on 6 November 2026.
The way out runs through a computer:
- In the phone app, sign in to your Mozilla account and turn on bookmark sync.
- Sign in to the same account in Firefox on a computer and let it sync.
- Bookmarks made on the phone usually arrive in the Mobile Bookmarks folder. Drag them into Other Bookmarks, because the HTML export skips Mobile Bookmarks.
- Export as in the first section.
Recall any post you ever saved.
Instant search across every page you save and every bookmark you've made on X, Reddit and LinkedIn. Free up to 150 bookmarks. Personal MCP endpoint on Pro for $6/mo.
Import the file into Chrome, Edge or Brave
In Chrome, open the three-dot menu, then Bookmarks and lists, then Import bookmarks and settings, and pick bookmarks.html. Google’s Chrome help page says the bookmarks land on the bookmarks bar when Chrome has none yet, and in Other bookmarks when it does. Edge, Brave and Safari take the same file from their own import menus. The guide to moving bookmarks between browsers covers each of those, plus the duplicate folders an import can leave behind.
Keep the export on a different device from the one you are protecting, since a copy in the Downloads folder of the same laptop dies with the laptop. The guide to backing up your bookmarks covers where each browser’s copy should live.
What a bookmarks file leaves out
The file holds addresses and titles, and only what you starred in Firefox on that computer. When a page moves or disappears, its bookmark turns into a name with nothing behind it, which is link rot. The posts you saved on X, Reddit and LinkedIn were never in the file.
If you are moving to Chrome, Edge or Brave, ContextBolt Bookmarks fills both gaps from there on. It is a Chrome extension, so it runs in those browsers and not in Firefox. Its toolbar icon has a Save this page button that stores the page with its text. It also captures your X, Reddit and LinkedIn saves as you make them and sorts everything into topics automatically. Basic is free up to 150 bookmarks. Pro is $6 a month and removes the cap, adds cloud sync and the MCP connection for Claude, and exports the whole library as CSV, JSON or XLSX.