How to recover your Secret Recovery Phrase
Does this article need to be translated?
Submit translations, corrections, and suggestions on GitHub, or reach out on our Community forums.
MetaMask provides you with a unique 12-word Secret Recovery Phrase on the very first launch. If you did not write it down, or you lost it, you can unlock MetaMask and reveal your Secret Recovery Phrase.
Are you in a situation where you don't have access to your Secret Recovery Phrase?
This can happen, for example, if your computer broke and you didn't back up your SRP. Because the SRP is the tool that creates and controls all your accounts, it might be that you've lost access to them forever. Or maybe not.
If you can plug that old hard drive into your computer and access it, or if you have a cloud backup of your system, or some other method of accessing the system data, you may be able to recover the SRP.
If, for whatever reason, you cannot unlock MetaMask using your password, there may still be a possibility of recovering your Secret Recovery Phrase.
Follow these instructions, and if you get stuck, start a conversation with our Support agents.
This article is to be used under the following circumstances:
-
You do not know your Secret Recovery Phrase
-
You do know your password
-
For some reason you are unable to unlock MetaMask with your password
-
You are using MetaMask Extension in a desktop browser.
- Vault recovery on Android and iOS mobile devices is not currently possible.
- If you have uninstalled the MetaMask extension, your data has likely been deleted. However, you may attempt the method below, under the heading "What if you no longer have access to the browser...?," especially if you have a backup of your computer's data.
If you're not sure if this situation applies to you,consult the various scenarios here to help you determine which is right for you.
A few things before we begin...
- We know that potentially losing access to MetaMask and your assets is stressful — that's why we've put this content together, so that you might be able to resolve that stress. We wish we could do more, but MetaMask is self-custodial by design. We're rooting for you though!
- We do our best to keep these instructions up to date, but since they depend in part on the back end of third-party platforms (the browsers), sometimes things may have changed relative to what we describe below. If so, please let us know by getting in touch with Support.
- This is not a simple process, so make sure you set aside roughly 30 minutes and that you're in a location where you can focus. If you get stuck, get in touch.
- The final step of the process, once you've recovered your SRP, will be to restore your wallet. Keep in mind that MetaMask stores only one SRP per browser profile at a time, and importing an SRP into an existing MetaMask installation wipes any SRP data already present in that profile's vault.
- If you're only managing one SRP, then this isn't really an issue; if you're managing multiple SRPs, however, we strongly recommend you follow our best practices outlined here.
- Extension
- iOS
- Android
Vault extraction and decryption instructions
If you're here, you probably want to get straight to solving the issue. However, if you get stuck, it might help to understand what's going on. We 've provided an in-depth explanation of how this all works further down, in case you need it now, or want to read it another time.
Chrome-based browsers (includes Chrome, Brave, Edge, and Opera)
Firefox
Recovering an old SRP after importing another one (Chrome-based)
Manual extraction method
We've recently become aware that the iOS recovery method is no longer working. We're investigating the cause and will update this page when we have updated instructions.
However, and like Android, iOS devices now have an automated vault recovery method built-in. With v6.3.0 or later, if MetaMask detects any kind of problem with the vault files required to load MetaMask, the app will initiate an automatic recovery sequence.
Note that this is not like the vault extraction method described above for Chrome-based browsers, and cannot be initiated manually.
In order to recover your vault data, you will need:
- You must have had iCloud backup enabled in your iCloud settings while the app was being used.
- The password that was used on MetaMask Mobile when the vault was created (or restored on that device)
- MacOS running on a separate computer or laptop, other than the mobile device in question
- An app capable of displaying JSON data in a readable fashion. You may need to download one, for example: https://imazing.com/download/macos
- A WiFi connection or the appropriate cable to sync your phone and your computer
Procedure
-
Connect the mobile device to the computer, either via wifi or a physical cable, so that the mobile device appears in your Finder.
- Search for the word "KeyringController"
- Copy and paste that JSON object into a new document. It will look something like this:
{\\\\\\\\\\\\\\\\\\\\\\\\"cipher\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\"JaX8Z80QMzzqA4XMgPsUuleNLIuxvchXZ5q1SO9GO1kuNUmokUke06op9EF0ZU4WXsILfUZ0yKI5kjzYY9H12t5aGb43BOAWJwlKuC8neXWeL5enoD/L05eDC9tzZEBupLwF7cGG6JdPHHQKdRDWWbQM+TUo6EvZv7LClPZQVJ17uowGvPMPB0UwfPea7DP/dE5DYleHmX1rhxAJr1YN4HUPAYpCCReU4W4/2QsaM+E=\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\"iv\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\"dcabe6ed590ae3ee8e056c7844c58047\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\"salt\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\"h6IkHlWjloB9c9+KiGgYvQ==\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\"lib\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\"original\\\\\\\\\\\\\\\\\\\\\\\\"}
- Back up the mobile device as per the instructions here under 'Backup your iPhone using your Mac'. We recommend using the encrypted option, and making a note of the password for later.
- Select Manage Backups
- Show in Finder
- Drag the backup folder into the iMazing app, or whichever app you're using to read the backup. This is the point at which you'll need your password if you encrypted the backup.
- In the backup tool, navigate to Apps->MetaMask->Documents->persistStore->persist-root
- Open the persist-root file. It will be a lengthy file in JSON format.
- Modify the object to reflect the example below (manually remove all \\\ and ensure there are no white spaces):
{"cipher":"JaX8Z80QMzzqA4XMgPsUuleNLIuxvchXZ5q1SO9GO1kuNUmokUke06op9EF0ZU4WssILfUZ0yKI5kjzYY9H12t5aGb43BOAWJwlKuC8neXWeL5enoD/L05eDC9tzZEBupLwF7cGG6JdPHHQKdRDWWbQM+TUo6EvZv7LClPZQVJ17uowGvPMPB0UwXPea7DP/dE5DYleHmX1rhxAJr1YN4HUPAYpCCReU4W4/2QsaM+E=","iv":"dcabe6ed590ae3ee8e056c7844c583d7","salt":"h6IkHlWjloBgc9+KiGTYvQ==","lib":"original"}
- Now you can copy the vault payload into the mobile app.
- Start up the MetaMask app on your iPhone and go to the Wallet Setup screen select “Import using Secret Recovery Phrase”
- In the Import using Secret Recovery Phrase screen, you can paste the vault into the seed phrase text box and then the password you want to try to unlock the vault in the password text boxes (passwords have to be the same). This is the password that was used when this vault was created or restored on this device. If the vault can be decrypted by the password, your wallet will be successfully set up.
- Import using Secret Recovery Phrase (example image):
-
- On successful setup of your wallet you should REMEMBER to back up your seed phrase after your wallet is set up.
We are currently working on a solution for Android; as soon as it is available, we will post it here.
However, and like iOS, MetaMask for Android now has an automated vault recovery method built-in. With v6.3.0 or later, if MetaMask detects any kind of problem with the vault files required to load MetaMask, the app will initiate an automatic recovery sequence.
Note that this is not like the vault extraction method described above for Chrome-based browsers, and cannot be initiated manually.
We urge you strongly to make sure that you always backup your Secret Recovery Phrase, and any manually imported private keys, so this never happens again.