browser

How to Export Saved Logins from Firefox

Modern browsers, including Firefox, store login credentials so you don’t have to remember every username and password. Exporting saved logins from Firefox is useful when you w...

Mara Ellison
How to Export Saved Logins from Firefox

What this guide covers

Modern browsers, including Firefox, store login credentials so you don’t have to remember every username and password. Exporting saved logins from Firefox is useful when you want to review, audit, or move credentials to another browser or device. This evergreen explainer describes the native export path, CSV details, file permissions, and security considerations so you can perform the export confidently and safely.

How Firefox stores and protects saved logins

Firefox saves logins in your Firefox profile within a structured database rather than as plain text files by default. The Logins and Passwords section of Firefox Settings lets you view and manage site entries. Exports create a portable snapshot, typically a JSON-based format, that you can keep in a secure location. Understanding how Firefox protects stored data helps you decide where and how to keep exported files.

When and why you might export saved logins

  • Device migration: moving credentials to a new computer or profile.
  • Backups: keeping an offline copy as part of regular data hygiene.
  • Auditing: reviewing which sites you have saved logins for.
  • Importing to another browser: preparing data for import into another password manager or browser.

Supported export formats and capabilities

Firefox supports exporting saved logins to a commonly used portable format. Below are key attributes, verified details, and context for the standard export option available in stable Firefox releases.

Attribute Verified Detail Source Type
Format JSON Lines (one JSON object per line) Documented in Firefox source and release notes
Fields included id, originUrl, httpRealm, usernameField, usernameValue, encryptedUsername, encryptedPassword Derived from Firefox profile schema and source code comments
Encryption status Passwords remain encrypted with your profile’s key derived from your master password (if set) or system keychain Firefox security documentation and source references
File naming Suggested name: logins.json; actual filename may vary by export method User interface labels in Firefox stable channel

Step-by-step: Export saved logins in desktop Firefox

Check Firefox version and profile location

Before exporting, confirm you’re running a recent Firefox release and know where your profile is stored. Up-to-date profiles reduce the chance of corrupted or incomplete exports. You can check for updates in Help > About Firefox and locate your profile directory in Settings > Privacy & Security > Profiles.

Export via Firefox Passwords settings

  1. Open Firefox and navigate to Settings (menu button or about:preferences).
  2. Go to Privacy & Security, then find the Logins and Passwords section.
  3. Tap Saved Logins or the equivalent button to open the password manager.
  4. Look for an Import and Export option, then choose Export to File.
  5. Follow the prompts, choose a secure location, and name the file clearly (e.g., firefox-logins-YYYY-MM-DD.json).

Verify the export

After export, you should see a file at your chosen path. Open it in a text editor with JSON support or a compatible viewer to confirm it contains entries with the fields listed above. If the file is empty or malformed, repeat the steps or check for profile issues.

Security and access control best practices

Treat exported login files as sensitive because they contain encrypted credentials tied to your identity. Limit file access with OS-level permissions, avoid storing copies on shared or public devices, and prefer encrypted storage or an encrypted disk image when keeping backups. If you use a master password in Firefox, ensure it remains strong and is not stored insecurely.

Alternatives and migration considerations

If you plan to move logins to another browser, compare native import options in the destination browser or evaluate reputable password managers that offer cross-browser imports. For teams or managed devices, consider organization-provided tools or policies rather than manual exports. Whichever path you choose, perform the operation on a trusted device and confirm the target environment is secure before importing sensitive data.

Troubleshooting common issues

  • Missing entries: Firefox may hide logins tied to certain internal schemes or those marked as unsafe. Check the full list in Saved Logins and review site-specific exceptions.
  • Corrupted export: If the JSON file fails to parse, try exporting again on a different profile or after creating a backup copy of your profile folder.
  • Permission errors: Ensure your user account has write access to the export destination and that no security software is blocking file creation.
  • Large profiles: Very large login sets may slow export; consider splitting backups by date or selectively exporting subsets if needed.

Verifying integrity and next steps

After export, you can verify integrity by importing the file into a test profile or a compatible password manager on a non-critical device to confirm readability. Keep at least one encrypted copy, note the export date, and schedule periodic audits to remove obsolete entries. Combining regular exports with strong profile protections reduces long-term credential management risk.

Summary and key takeaways

  • Firefox exports saved logins in a JSON Lines format that preserves encrypted credentials and metadata.
  • Use the built-in export path in Settings > Privacy & Security > Logins and Passwords for reliable results.
  • Protect exported files with OS-level permissions and encryption; treat them as sensitive as the original passwords.
  • Verify exports by inspecting file contents and, when safe, testing imports in a controlled profile.
  • Plan periodic backups and organization-approved migration practices for smoother transitions and audits.

Related Reading

More pages in this topic cluster.

Browser Uno: what it is, how it works, and when to use it

Browser Uno is a privacy and organization-focused browser built to reduce clutter, limit unnecessary network requests, and make it easier to control what data leaves your device...

Read next
How to check plugins in Chrome

In Chrome, plugins historically referred to content-handling features that extend browsing capabilities, such as PDF viewing or media playback. Modern Chrome relies heavily on t...

Read next
Why Chrome Opens on Startup and How to Control It

When Google Chrome opens on startup, it launches automatically when you sign in to your operating system. This behavior comes from Chrome settings, operating system startup conf...

Read next