How to recover your Secret Recovery Phrase

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

If your MetaMask was uninstalled or otherwise removed, and you can no longer unlock it 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:
1. You do not know your Secret Recovery Phrase
2. You know your password
3. You have uninstalled the MetaMask extension, or in some other way are no longer able to unlock using your password

This article provides instructions for Secret Recovery Phrase recovery on the desktop (MetaMask Browser Extension) and MetaMask Mobile on iOS.

Note: Vault recovery on Android mobile devices is not currently possible.

Extension iOS Android

Vault Extraction Instructions

Chrome-based browsers:

(includes Chrome, Brave, Edge, and Opera)

  • Right-click on the MetaMask Extension window (or on the extension opened in Expand view in a tab: chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/home.html) and click on 'Inspect' to open the Web Inspector.
  • Go to the Console tab to type this command, and press enter or return (you can copy+paste the command below):
chrome.storage.local.get('data', result => {
var vault = result.data.KeyringController.vault
console.log(vault)
})
  • This should return a result that begins " {"data": ". This is the vault data (which is in JSON format).
  • Copy it to your clipboard.
  • Proceed to the Vault Decryptor that you can find in the link below and also see the open-source code at GitHub:

https://metamask.github.io/vault-decryptor/ 

This Vault Decryptor tool can also be used offline, you just need to use your browser's tool bar > File > Save page as... > MetaMask Decryptor.htm. Then open the MetaMask Decryptor.htm file in your browser with your computer disconnected from the Internet.

 

  • On the Vault Decryptor page, paste the {"data":} part of the vault data and use the password you set for your wallet in the MetaMask Extension and click the "Decrypt" button.
  • If successful, you'll see the result below the Decrypt button showing the "mnemonic" 12 Word English Secret Recovery Phrase, along with any other imported "Simple Key Pair" (private key).

    You can now use the Secret Recovery Phrase (and private keys) to restore your MetaMask wallet. 

 

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.

 

Firefox:

In Firefox you may need to have the MetaMask extension opened in 'Expanded view' to be able to open the 'Inspect Element' or Web Inspector. Check out this video and follow the instructions below:



Open a new tab in Firefox and enter the following in order to find the extension's UUID (Universally Unique Identifier): 

about:debugging#addons

You should be able to see the UUID of the MetaMask extension. Copy it to add it to the following URL (without the spaces):

moz-extension://<your-UUID-here>/home.html

This will open the MetaMask wallet in a browser tab in Firefox. 

  • Right-click on the MetaMask wallet that's opened in the full-view tab to see the options
  • Click the 'Inspect Element' option
  • In the opened window, go to the Console tab
  • Enter this command in the Console and click enter or return (you can copy+paste the following command):
chrome.storage.local.get('data', result => {
var vault = result.data.KeyringController.vault
console.log(vault)
})
  • This should return a result that begins " {"data": ". This is the vault data (which is in JSON format).
  • Copy it to your clipboard.
  • Proceed to the Vault Decryptor that you can find in the link below and also see the open-source code at GitHub:

https://metamask.github.io/vault-decryptor/ 

This Vault Decryptor tool can also be used offline, you just need to use your browser's tool bar > File > Save page as... > MetaMask Decryptor.htm. Then open the MetaMask Decryptor.htm file in your browser with your computer disconnected from the Internet.

 

  • On the Vault Decryptor page, paste the {"data":} part of the vault data and use the password you set for your wallet in the MetaMask Extension and click the "Decrypt" button.
  • If successful, you'll see the result below the Decrypt button showing the "mnemonic" 12 Word English Secret Recovery Phrase, along with any other imported "Simple Key Pair" (private key).

    You can now use the Secret Recovery Phrase (and private keys) to restore your MetaMask wallet. 
    •  

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.

 

What if you no longer have access to the browser but still have access to the computer's files? (Chrome-based browser and Windows or Mac)

If your computer has crashed and you no longer are able to use Chrome browser or if you've been able to recover your computer files using some backup software, you may still be able to get the encrypted Vault from that backup.

In Windows 10, you should be able to find the location of the Vault by going to this folder location (you need to be able to see the hidden files):

C:\Users\USER_NAME\AppData\Local\Google\Chrome\User Data\Default\Local Extension Settings\nkbihfbeogaeaoehlefnkodbefgpgknn

On a Mac, the location of the folder should be: 
Library>Application Support>Google>Chrome>Default>Local Extension Settings>nkbihfbeogaeaoehlefnkodbefgpgknn

  • If you're having trouble finding this location, try the following:
    • Open a Finder window.
    • Select Go -> Go to Folder... in the menu bar.
    • Type ~/Library in the input field and click Go.

In that folder you'll see a file called 000003.ldb or something similar--the number doesn't matter, you're looking for .ldb files. Open that file with a text editor or code editor software like Atom (https://atom.io/) or sublimetext.   Note: The screenshot below says file type 'text document' because it was already opened with a text editor.

screenshot_vault_location.PNG

Once you've opened the file, search for the word "vault" and copy this part that looks like the one pasted below:

{"vault":"{\"data\":\"wwpXXtFCqZkYsWfeEwItZjJ0Cc7mRVjG47Dqh+ztL1PiCG6Izhg+zG0mM+H2ykyjz3X0RNhAE6IVsWFZamcZ47B4sVi4SvUxrMhARm5L3yHPxr3UsyGrOXmthyVMgEGmjwlmnFCNd2nMZ2o8/sRMra8FupurqevnBv57FiYpEEs7gPpFHv6587aL44MmKD8Snv4JLFqiqmlK82Waq5F+Iv9mw2sFVAL9mgZBSgFgbWdB3TsKVB2k\",\"iv\":\"rkUQlNcGTxBE0My7a/bCXw==\",\"salt\":\"HcKyNfGzaRALRQ0DlKgcIe5Uk30iI/M//oG6w8vX8Nk=\"}"}

Remove the two parts in bold. Now use the Search and Replace feature of the editor to change all the \" to (removing them).

You would now have something like this:

{"data":"wwpXXtFCqZkYsWfeEwItZjJ0Cc7mRVjG47Dqh+ztL1PiCG6Izhg+zG0mM+H2ykyjz3X0RNhAE6IVsWFZamcZ47B4sVi4SvUxrMhARm5L3yHPxr3UsyGrOXmthyVMgEGmjwlmnFCNd2nMZ2o8/sRMra8FupurqevnBv57FiYpEEs7gPpFHv6587aL44MmKD8Snv4JLFqiqmlK82Waq5F+Iv9mw2sFVAL9mgZBSgFgbWdB3TsKVB2k","iv":"rkUQlNcGTxBE0My7a/bCXw==","salt":"HcKyNfGzaRALRQ0DlKgcIe5Uk30iI/M//oG6w8vX8Nk="}

  • Note: upon opening the .ldb file in sublimetext, you may get thousands of lines of something that looks like the following:

    mceclip0.png

    If this is the case, click on File>Reopen with Encoding>UTF-8. At this point, you can search for "vault" and find the data you need.

 

You can now go to the Vault Decryptor (https://metamask.github.io/vault-decryptor/) and paste the vault data there, then enter the password you set for the extension when you created your MetaMask wallet. You should be able to see your secret Seed Phrase / Secret Recovery Phrase and any manually imported private key below if you click the Decrypt button.

 

 

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.

Was this article helpful?
55 out of 172 found this helpful

Articles in this section

See more
MetaMask Support on Twitter
Beware of scam Twitter accounts. Never give anyone your Secret Recovery Phrase!
MetaMask YouTube
Fow how-to and support videos please visit our channel