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.
In This Guide
- Exact Firefox Password File Location (All Windows Versions)
- Manual Method: Find Firefox Password Location (8 Complex Steps)
- Why Finding Firefox Password Location Isn't Enough
- The Simple Solution: How PC Trek Automates Password Recovery
- Step-by-Step: Extract Firefox Passwords In Seconds
- Manual vs Automated: Time & Complexity Comparison
- Frequently Asked Questions
- Conclusion: Stop Digging, Start Extracting
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
- Step 1: Navigate to %APPDATA%\Mozilla\Firefox\Profiles\ (hidden folder - must enable "Show hidden files")
- Step 2: Identify which profile folder is your active profile (check profile.ini)
- Step 3: Locate logins.json and key4.db files
- Step 4: Realize these files are encrypted - you can't just open them in Notepad
- Step 5: Search for a "logins.json decoder" tool online
- Step 6: Download third-party decryption tool (risk of malware)
- Step 7: Run decryption tool with command line parameters
- 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
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 TrialStep 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
C:\Users\[YourUsername]\AppData\Roaming\Mozilla\Firefox\Profiles\[random-profile-name]\logins.jsonThe 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.
- Easy: Type
about:profilesin Firefox address bar - shows exact location of each profile - Quick: Press Win+R, type
%APPDATA%\Mozilla\Firefox\Profiles\ - Manual: Navigate to C:\Users\[Username]\AppData\Roaming\Mozilla\Firefox\Profiles\ (enable hidden files)
- 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.
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