Browser Passwords

Firefox Saved Passwords Location: Where Firefox Stores Your Login Files on Windows

Firefox Password Location Firefox Login File logins.json key4.db

Quick answer: Firefox saved passwords are located in your Firefox profile folder. The main files are logins.json (encrypted passwords) and key4.db (encryption keys). The default location is: C:\Users\[YourUsername]\AppData\Roaming\Mozilla\Firefox\Profiles\[profile-name]\

If you're searching for "firefox saved passwords location" or "firefox login file", you probably need to backup these passwords before reinstalling Windows or transfer them to a new computer. This guide shows you exactly where Firefox stores passwords AND how to extract them without the manual complexity.

Exact Firefox Saved Passwords Location on Windows 10/11

Firefox stores all saved passwords, login credentials, and encryption keys in your Windows user profile. Here is the complete path breakdown:

Primary Firefox Password Location:
C:\Users\[YOUR_USERNAME]\AppData\Roaming\Mozilla\Firefox\Profiles\

Firefox Login File Names:
└── logins.json # Contains encrypted usernames and passwords
└── key4.db # Master encryption keys (Firefox 58+)
└── key3.db # Legacy encryption keys (older Firefox)
└── cert9.db # Certificate database

Example Actual Path:
C:\Users\JohnDoe\AppData\Roaming\Mozilla\Firefox\Profiles\a1b2c3d4.default-release\logins.json

Quick Access Shortcut

Press Win + R, type %APPDATA%\Mozilla\Firefox\Profiles\ and press Enter. This opens the folder containing all your Firefox profiles where password files are stored.

Why People Search For Firefox Password Location

  • Before reinstalling Windows
  • Moving data to a new computer
  • Recovering passwords from a non-bootable PC
  • Backing up browser credentials
  • Extracting logins from an old hard drive

Knowing the folder alone does not recover passwords because Firefox encrypts credentials using the NSS security library. The files must be decrypted to become usable.

Firefox Password Files Explained

  • logins.json: The main Firefox login file. Contains all saved website credentials in encrypted format.
  • key4.db: The encryption key database. Without this file, logins.json is unreadable.
  • profile.ini: Tells Firefox which profile is active (not password data).

Manual Method: Finding and Extracting Firefox Passwords (8 Complex Steps)

Most online guides stop at telling you the Firefox saved passwords location. But knowing WHERE the files are is only 10% of the solution. Here's what they don't tell you:

The Manual Process - 8 Painful Steps

  1. Step 1: Navigate to %APPDATA%\Mozilla\Firefox\Profiles\ (hidden folder - must enable "Show hidden files")
  2. Step 2: Identify which profile folder is your active profile (check profile.ini)
  3. Step 3: Locate logins.json and key4.db files
  4. Step 4: Realize these files are encrypted - you can't just open them in Notepad
  5. Step 5: Search for a "logins.json decoder" tool online
  6. Step 6: Download third-party decryption tool (risk of malware)
  7. Step 7: Run decryption tool with command line parameters
  8. Step 8: Manually copy each password one by one or figure out export format

⚠️ HIGH COMPLEXITY - 15-30 minutes

The Hidden Danger

Simply copying logins.json and key4.db to a new Firefox installation DOES NOT WORK for password recovery. These files are tied to your Windows user account and Firefox installation. You need proper decryption tools.

Why Knowing the Firefox Password Location Isn't Enough

This is the critical insight most articles miss. The Firefox login file (logins.json) is heavily encrypted using multiple layers of security:

Firefox Password Encryption Process:

1. Master Password (optional) → PBKDF2 derivation
2. Triple-DES encryption (3DES)
3. Base64 encoding
4. Stored in logins.json

Without the correct key4.db and decryption method,
logins.json looks like this:
{
"nextId": 12,
"logins": [
{
"hostname": "https://example.com",
"encryptedUsername": "MDoEEPgAAAA...",
"encryptedPassword": "MDoEEPgAAAA..."
}
]
}

Why Manual Decryption Fails Most Users

Firefox uses the Mozilla NSS (Network Security Services) library for encryption. Decrypting logins.json requires calling the same NSS functions Firefox uses - something that requires programming knowledge or specialized tools.

The Simple Solution: How PC Trek Automates Firefox Password Recovery

Browser Password Recovery Tool

Instead of manually hunting for Firefox saved passwords location, decrypting logins.json, and exporting credentials one by one - let our tool do it automatically in a few seconds.

What It Does Automatically:

  • ✓ Finds Firefox profile folders instantly
  • ✓ Locates logins.json & key4.db files
  • ✓ Decrypts all saved passwords
  • ✓ Displays usernames & passwords in plain text
  • ✓ Exports to CSV, HTML, or text file
  • ✓ Works with Firefox 58+ and older versions

What You Don't Need To Do:

  • ✗ No need to enable hidden files
  • ✗ No profile hunting
  • ✗ No decryption tools
  • ✗ No command line
  • ✗ No manual copying
Decrypt and Export Firefox Saved Passwords

Free trial available - No registration required

Step-by-Step: Extract Firefox Passwords in a few Seconds with PC Trek

Step 1: Download Browser Password Recovery Tool

Download and install BPRT. The free trial version can scan and display all recoverable Firefox passwords.

Download BPRT Free Trial

Step 2: Select Firefox Browser

Launch BPRT and click on "Firefox" from the browser selection screen. The tool automatically scans:

  • All Firefox profiles (default and custom locations)
  • Both logins.json and key4.db files
  • Firefox installations from external drives (for recovery after format)

Step 3: Automatic Decryption

BPRT uses Firefox's own NSS libraries to decrypt passwords exactly as Firefox does. Within seconds, all your saved credentials appear in a clean, organized table showing:

  • Website URL/domain
  • Username (decrypted)
  • Password (decrypted)
  • Creation date

Step 4: Export & Backup

Export your recovered Firefox passwords to multiple formats:

  • CSV: Open in Excel or import to password managers
  • HTML: Readable backup file with search functionality
  • TXT: Simple text backup
  • Copy to clipboard: Paste individual passwords

Manual vs Automated: Time & Complexity Comparison

Task Manual Method PC Trek BPRT
Find Firefox profile folder 5-10 minutes
Enable hidden files, browse folders
1 second
Auto-detected
Locate logins.json file 2-5 minutes
Search through profiles
Auto
Instant scanning
Decrypt passwords 15-30 minutes
Find tools, learn commands, risk of malware
3 seconds
Automatic decryption
Export credentials 10 minutes
Manual copy/paste each password
1 seconds
One-click export
TOTAL TIME 30-50 minutes 5 seconds
Technical skill required Intermediate to Advanced None - Beginner friendly

Frequently Asked Questions

Windows 11 Firefox password location: C:\Users\[YourUsername]\AppData\Roaming\Mozilla\Firefox\Profiles\[random-profile-name]\logins.json

The AppData folder is hidden by default. To access it, press Win+R, type %APPDATA% and navigate to Mozilla\Firefox\Profiles\. This is the Firefox login file location for all modern Windows versions.

No, copying logins.json alone is NOT enough. Firefox passwords are encrypted with a master key stored in key4.db. You need both files AND they must be decrypted properly. Simply copying these files to a new installation often fails because the encryption keys are tied to your Windows user profile. This is why manual backup is complex and why automated tools like BPRT are recommended.

Three methods:
  1. Easy: Type about:profiles in Firefox address bar - shows exact location of each profile
  2. Quick: Press Win+R, type %APPDATA%\Mozilla\Firefox\Profiles\
  3. Manual: Navigate to C:\Users\[Username]\AppData\Roaming\Mozilla\Firefox\Profiles\ (enable hidden files)
Each profile folder has a random name ending in .default-release or .default.

You may still recover them! If you have access to the old hard drive (as an external or secondary drive), connect it to your current computer. PC Trek's Browser Password Recovery Tool can scan the old Windows installation and extract Firefox passwords directly from the old profile folders. The tool doesn't require the old Windows to be bootable - just filesystem access.

Yes. If you set a master password in Firefox, your logins.json and key4.db are encrypted with that password. PC Trek's BPRT tool will prompt you for the master password during recovery. Without the master password, even specialized tools cannot decrypt Firefox passwords - this is by design for security. Always remember your master password!

  • logins.json: Stores the actual encrypted usernames and passwords for each website. This is the main Firefox login file.
  • key4.db: Contains the master encryption keys used to decrypt logins.json. Without this file, logins.json is unreadable.
Firefox versions before 58 used key3.db (legacy format). Modern Firefox (58+) uses key4.db.

Conclusion: Stop Digging for Firefox Password Files

Now you know exactly where Firefox saved passwords are located and what the Firefox login file is. But more importantly, you understand why knowing the location is only the first step in a complex, multi-step manual process.

The reality: Manually recovering Firefox passwords involves:

  • ✓ Finding hidden profile folders
  • ✓ Identifying encrypted JSON files
  • ✓ Sourcing decryption tools
  • ✓ Learning command-line operations
  • ✓ Risking malware from unknown tools
  • ✓ 30-50 minutes of your time

The smart solution: Let PC Trek's Browser Password Recovery Tool handle all the complexity automatically. In a few seconds, you'll have a complete, decrypted backup of every Firefox password - ready to export, transfer, or store securely.

Ready to Recover Your Firefox Passwords?

Stop hunting for files and fighting with encryption. Download the free trial and see every Firefox password on your system in under 5 seconds.

✓ Free trial shows all recoverable passwords ✓ No registration ✓ 100% local - your data never leaves your PC

Share This Guide

Recommended Tool

Browser Password Recovery Tool

Browser Password Recovery Tool

Specifically designed for Firefox, Chrome, Edge password recovery

  • Finds Firefox profile folders
  • Decrypts logins.json instantly
  • Exports all passwords
  • Works with Firefox 58-121+

Related Browser Password Guides

Find Your Firefox Passwords Now

See every saved Firefox password in a few seconds

Free Download

✓ No registration ✓ 100% local

Stop Searching for Firefox Password Files

You know where Firefox stores passwords. Now let our tool do the hard work of decrypting and exporting them.