How to Export and Import Firefox Bookmarks
Firefox makes it straightforward to move your bookmarks between computers, create backups, or migrate to a new browser. But the process isn't a single button — there are different formats, different use cases, and a few details worth understanding before you start.
Why Exporting and Importing Bookmarks Matters
Bookmarks accumulate over years of browsing. Losing them to a failed hard drive, a fresh OS install, or a browser switch is genuinely frustrating. Firefox gives you two main ways to handle bookmark portability: HTML export (for sharing with other browsers or archiving) and JSON backup (for full Firefox-to-Firefox restoration, including folder structure and metadata). Knowing the difference matters.
The Two Bookmark File Formats Firefox Uses
| Format | Best For | Preserves Folder Structure | Compatible with Other Browsers |
|---|---|---|---|
| HTML | Cross-browser migration, general archive | Yes | ✅ Yes |
| JSON | Full Firefox backup and restore | Yes (including tags and metadata) | ❌ Firefox only |
HTML is the universal format. Chrome, Edge, Safari, and most other browsers can read a Firefox-exported HTML bookmark file. It captures your bookmarks and their folder organization, but not Firefox-specific extras like tags.
JSON is Firefox's native backup format. It preserves everything — folder hierarchy, tags, visit counts, and timestamps. If you're moving from one Firefox installation to another, JSON is the more complete option.
How to Export Firefox Bookmarks
Exporting as HTML
- Open Firefox and click the bookmarks icon (☆) in the toolbar, or press
Ctrl+Shift+O(Windows/Linux) orCmd+Shift+O(Mac) to open the Bookmarks Manager. - In the Bookmarks Manager, click Import and Backup in the toolbar.
- Select Export Bookmarks to HTML.
- Choose a save location and confirm. Firefox saves a
.htmlfile containing all your bookmarks.
Exporting as JSON (Backup)
- Open the Bookmarks Manager using the same shortcut above.
- Click Import and Backup.
- Select Backup.
- Choose a save location. Firefox saves a
.jsonfile with a date-stamped filename likebookmarks-2024-06-01.json.
💡 Saving this JSON file to cloud storage or an external drive is a practical habit, especially before a major OS update or device change.
How to Import Firefox Bookmarks
Importing from an HTML File
- Open the Bookmarks Manager (
Ctrl+Shift+OorCmd+Shift+O). - Click Import and Backup.
- Select Import Bookmarks from HTML.
- Browse to your saved
.htmlfile and open it.
Firefox adds the imported bookmarks into a new folder inside Other Bookmarks, so your existing bookmarks aren't overwritten.
Restoring from a JSON Backup
- Open the Bookmarks Manager.
- Click Import and Backup.
- Select Restore, then choose either a listed date-stamped backup or Choose File to browse for your
.jsonfile.
⚠️ Important: Restoring from JSON replaces your current bookmarks entirely. This is a full restore, not a merge. If you have bookmarks you want to keep from your current session, export them first before running a restore.
Importing from Another Browser
Firefox can also pull in bookmarks directly from Chrome, Edge, or IE without needing an intermediate file:
- Go to Bookmarks > Import and Backup > Import Data from Another Browser.
- Select the source browser and follow the prompts.
This works well when both browsers are installed on the same machine, but it depends on the source browser being present and its profile data being accessible.
Syncing vs. Manual Export: Understanding the Difference
Firefox Sync is a separate feature that automatically keeps bookmarks (and history, passwords, and tabs) in sync across devices using a Firefox account. It's not a replacement for manual export — sync is live and continuous, meaning if you delete a bookmark on one device, it disappears on others.
Manual export/import is a point-in-time snapshot. It's the right tool when:
- You're setting up a new machine without signing into an account
- You're switching to a different browser entirely
- You want a static backup that won't change if you accidentally delete something later
The two approaches serve different purposes and aren't interchangeable.
Variables That Affect Your Process
A few factors shape which method makes sense:
- Operating system: The keyboard shortcuts and file dialog behavior differ slightly between Windows, macOS, and Linux, but the core steps are the same across platforms.
- Firefox version: The Bookmarks Manager interface has been consistent across recent versions, but very old installations may show slightly different menu labels.
- Destination browser: If you're moving to a non-Firefox browser, HTML is your only option — JSON won't work outside Firefox.
- Bookmark volume: Very large bookmark libraries (thousands of entries) can produce HTML files that some older browsers struggle to import cleanly.
- Tags and metadata: If you rely heavily on Firefox's tagging system to organize bookmarks, only JSON preserves those tags. HTML export drops them.
What Doesn't Transfer
Neither export format carries over:
- Browser history (separate from bookmarks)
- Saved passwords
- Extensions or settings
- Reading list or open tabs
Each of those requires its own export or sync process.
Understanding which format fits your situation — and what each one preserves or loses — is what determines whether your bookmarks land exactly where you expect them to on the other side.