Firefox does not have a built-in export button, but you can access your password file through your computer's file system
Firefox stores passwords in an encrypted file on your computer rather than offering a one-click export option. To get your passwords out, you need to locate this file directly and copy it to a location you can access. The process differs slightly depending on whether you use Windows, Mac, or Linux, but the core idea is the same: find the Firefox profile folder, locate the password database file, and move it somewhere you can work with it.
Before you start, understand what you are doing. Firefox passwords live in a file called logins.json, which is encrypted with a master password if you set one. If you have a master password, you will need to remember it — there is no way around this. If you do not have one, the file is still encrypted but in a way that is easier to read once you have the file itself.
Key Takeaways
- Firefox passwords are stored in a file called logins.json inside your Firefox profile folder, not in a menu you can access from the browser itself.
- You must locate your profile folder manually — on Windows it is usually in AppData, on Mac it is in Library, and on Linux it is in a hidden .mozilla folder in your home directory.
- If you set a master password in Firefox, you will need it to read the exported passwords; without it, the file remains locked.
- Once you have the logins.json file, you can use a password manager or online decoder to read the contents, or import it directly into another browser if that browser supports Firefox imports.
Finding your Firefox profile folder on Windows
Open File Explorer and paste this path into the address bar: %APPDATA%\Mozilla\Firefox\Profiles. Press Enter. You will see a folder with a name like abc123de.default-release — the exact name varies, but there is usually only one. Open that folder.
Inside, look for a file called logins.json. This is your password file. You will also see a file called key4.db next to it — this is the encryption key, and you need both files together if you want to read the passwords later. Copy both files to a folder on your desktop or another location where you can find them easily.
Finding your Firefox profile folder on Mac
Open Finder and press Command + Shift + G to open the Go to Folder dialog. Paste this path: ~/Library/process Support/Firefox/Profiles. Press Enter. You will see a folder with a name like abc123de.default-release.
Open that folder and locate logins.json and key4.db. Right-click on each file, select Copy, then navigate to your Desktop or another folder and paste them there. Keep both files together in the same folder.
Finding your Firefox profile folder on Linux
Open your file manager and press Ctrl + H to show hidden files. Navigate to your home folder and look for a folder called .mozilla. Open it, then open firefox, then Profiles. You will see a folder with a name like abc123de.default-release.
Inside that folder, find logins.json and key4.db. Copy both files to a location you can access easily, keeping them in the same folder together.
What to do once you have the files
Now that you have logins.json and key4.db, you have several options. The simplest is to import them directly into another browser if that browser supports Firefox imports. Most modern browsers — including Chrome, Edge, and Brave — can read Firefox password files if you place them in the right location during import.
If you want to read the passwords yourself before moving them, you will need a tool designed to decode Firefox password files. Search for "Firefox password decoder" or "logins.json decoder" — several free tools exist online. Upload your logins.json file (and key4.db if the tool asks for it), and if you do not have a master password, the tool will display your saved passwords in plain text. If you do have a master password, the tool will ask you to enter it before decoding.
Do not leave these files sitting around unencrypted. Once you have read them or imported them elsewhere, delete the copies from your desktop or temporary folder. The originals remain in your Firefox profile folder and are still encrypted there.
Importing Firefox passwords into another browser
Most browsers have an import function that can read Firefox password files directly. In Chrome or Edge, go to Settings, then Passwords, then look for an option to import passwords. Select Firefox as the source. The browser will ask you to navigate to your Firefox profile folder — point it to the Profiles folder where logins.json and key4.db live, and the browser will handle the rest.
In Brave, the process is similar: go to Settings, then Passwords, then Import. Select Firefox and navigate to your profile folder. Brave will read the files and import your passwords automatically.
If you have a master password set in Firefox, the importing browser will ask you to enter it during the import process. This is normal and expected — the browser needs it to unlock the encrypted file.
What happens if you cannot find your profile folder
If you followed the path above and do not see a Profiles folder, Firefox may not have created one yet, or it may be in a non-standard location. Open Firefox itself and go to about:support in the address bar. Press Enter. You will see a page with technical information about your Firefox installation. Look for the line that says Profile Folder and click the button next to it that says Open Folder. This will open your profile folder directly in File Explorer or Finder.
From there, you can locate logins.json and key4.db the same way as described above. This method works regardless of your operating system or Firefox configuration.
Frequently Asked Questions
Do I need both logins.json and key4.db to read my passwords?
Yes, if you have a master password set. The key4.db file contains the encryption key needed to unlock logins.json. If you do not have a master password, logins.json alone is usually enough for most decoder tools, but keeping both files together is safer and more reliable.
What if I forgot my Firefox master password?
If you have a master password and forgot it, there is no way to read the logins.json file without it. Firefox does not have a recovery option for master passwords. You would need to reset Firefox, which deletes all saved passwords, or use a tool that can bypass the encryption — but such tools are not widely available or recommended.
Can I import Firefox passwords directly into a password manager like Bitwarden or 1Password?
Most password managers have an import function that can read Firefox password files. Check your password manager's documentation for the specific steps, but the process usually involves uploading your logins.json file or pointing the manager to your Firefox profile folder. Some managers can read the file directly; others require you to export it first.
Is it safe to upload my logins.json file to an online decoder?
Online decoders carry some risk because you are sending encrypted password data to a third-party server. If you have a master password, the data remains encrypted during upload, which is safer. If you do not have a master password, consider using a desktop decoder tool instead, which runs on your computer without sending data anywhere.
Will exporting my passwords delete them from Firefox?
No. Exporting or copying your password files does not remove them from Firefox. Your passwords remain in Firefox exactly as they were. You are only making a copy of the file for use elsewhere.