Export and Import Passwords in Firefox
In this article
Yes, you can export and import saved passwords in Firefox, but only using built-in tools on desktop versions. Firefox does not offer a direct export or import feature in its standard interface, so you must access stored passwords through a JSON file using the browser's internal password manager. This method works only on Firefox for Windows, macOS, and Linux. Mobile versions of Firefox do not support password export or import through user-accessible tools.
What You'll Need
- Firefox desktop browser (Windows, macOS, or Linux)
- Access to your Firefox profile folder
- A text editor (like Notepad, TextEdit, or VS Code)
- Backup of your current passwords (recommended)
- Optional: a secure location to store exported data
Step-by-Step
- Open Firefox and type
about:loginsin the address bar, then press Enter. This opens the saved logins manager. - On the logins page, click the three-dot menu (⋯) in the top-right corner.
- Select Export Logins from the dropdown. Firefox will prompt you to confirm the action due to security risks.
- Click Export in the confirmation dialog. Choose a secure location to save the
logins.jsonfile. Avoid public or shared folders. - To import passwords on another Firefox installation, open
about:loginson the target device. - Click the three-dot menu (⋯) and choose Import Logins.
- Select the
logins.jsonfile you exported earlier. Firefox will read the file and add the passwords to your saved logins. - After importing, verify that your passwords appear in the logins list. Try logging into one or two sites to confirm they work.
Common Mistakes
One of the most frequent errors is attempting to export passwords from Firefox for Android or iOS. These mobile versions do not support export or import functions. Another mistake is editing the logins.json file in a text editor without understanding its structure—doing so can corrupt the file or cause import failures. Some users save the file to insecure locations like desktops or cloud folders without encryption, risking exposure if the device is lost or compromised. Others forget to confirm the export action, missing the security warning prompt, which stops the process.
Tips
Always encrypt the logins.json file after exporting, especially if storing it long-term or transferring it between devices. Use a tool like 7-Zip or VeraCrypt to password-protect the archive. Before importing, ensure the target Firefox profile is not already filled with conflicting passwords—importing duplicates may overwrite existing entries. Use a consistent naming convention for exported files (e.g., firefox_passwords_2025-04.json) to avoid confusion. If you use Firefox Sync, consider that syncing may automatically transfer passwords between devices, making manual export unnecessary in many cases.
Troubleshooting
If the export option is missing, ensure you are using Firefox desktop and not a mobile or restricted version. Check that you are on a recent update—older versions may lack the about:logins export feature. If the import fails, verify that the logins.json file is not corrupted. Open it in a text editor to confirm it starts with {"logins": and ends with valid JSON syntax. If Firefox crashes during import, try restarting the browser first. If passwords do not appear after import, check that you are logged into the correct Firefox profile. If Sync is enabled, imported passwords may be overwritten during the next sync cycle—disable Sync temporarily if needed. If the three-dot menu does not appear, ensure you are on the about:logins page and not a website.
Frequently Asked Questions
Can I export passwords from Firefox Mobile?
No, Firefox for Android and iOS does not support exporting or importing passwords using built-in tools. You must use the desktop version.
Is exporting passwords safe?
It can be, if done carefully. The exported file is not encrypted by Firefox, so store it securely and delete it after import. Avoid email or unencrypted cloud storage.
Does importing passwords overwrite existing ones?
Yes, if a login for the same site already exists, the imported entry may overwrite it. Review duplicates before importing.
Why can't I see the Export option in about:logins?
Ensure you are using the latest desktop version of Firefox. Some enterprise or managed environments disable this feature for security.
Can I import passwords from other browsers into Firefox?
Yes, but not using the JSON method. Use Firefox’s built-in import tool: open Settings > Privacy & Security > Logins and Passwords > Import from Another Browser.
What happens if I lose the logins.json file?
If the file is lost and not backed up, you cannot recover the exported passwords from it. Always keep a secure backup if needed.