- Seed phrase: a 12- or 24-word recovery phrase that derives all HD accounts in MetaMask. Restore this and you restore all derived accounts.
- Private key: a 64-character hexadecimal string (32 bytes) tied to a single Ethereum-style EOA account. It can be exported, imported, or used to create a keystore JSON.
- Loose/imported account: an account you added to MetaMask by pasting a private key or uploading a keystore JSON. That private key is not part of your seed phrase-derived accounts.
Which should you rely on? Seed phrase for HD accounts, private key for imported single accounts. And remember: private keys are the exact secret that controls funds.
Export MetaMask private key (desktop) — step-by-step
If the account is present in your MetaMask extension and is not a hardware/contract account, you can export the private key via the UI.
Steps I followed on Chrome (extension):
- Open MetaMask extension and unlock with your password.
- Click the account avatar (top-right of the popup) and choose "Account details."
- Click "Export Private Key."
- Enter your MetaMask password when prompted and confirm.
- The private key appears as a hex string — copy it securely (do not paste into a web page).
What you’ll see (UI description): a modal asking for your password, then a single-line hex output. That hex is the private key. In my test it was a 64-character string (0x optional).
Security note: the password protects the action locally, not on-chain. Exporting reveals the raw key; treat it like cash.
Export private key (mobile iOS/Android)
Mobile steps are similar but use the account menu.
- Open the MetaMask mobile app and unlock.
- Tap the account icon (top-left/top-right depending on app version).
- Select "Account details" → "Export Private Key."
- Approve the request by entering your app password or biometric.
- Copy the displayed hex key (store offline).
I tested this on Android: the app requests biometric or password and then shows the full key. But be careful copying to clipboard — mobile clipboards are commonly synced.
Import / Add a loose account to MetaMask
If you want to add a private key or keystore JSON (a loose account) into MetaMask, here’s how:
- Desktop (extension): Account avatar → "Import Account" → choose "Private Key" or "JSON File" → paste key or upload file → confirm.
- Mobile: Menu → "Add account" → "Import using private key" or "Import using JSON" → follow prompts.
If you imported with JSON, remember the encryption password used when creating the JSON file. Missing that password means you cannot decrypt the JSON.
Reference: also see import-and-restore-wallet and import-export-accounts.
Export account as JSON (keystore) — how to create one safely
MetaMask does not always expose an explicit "export as keystore JSON" button for HD derived accounts. But you can create a keystore JSON from a private key using offline tooling (example using ethers.js).
Example (run offline, Node.js):
const { ethers } = require('ethers');
const wallet = new ethers.Wallet('0xYOUR_PRIVATE_KEY_HERE');
wallet.encrypt('StrongPassword123').then(json => {
console.log(json); // save this file to an offline drive
});
This returns a v3 keystore JSON that you can store offline and later import in wallets that accept JSON. Do this on an air-gapped machine if possible.
Retrieve a "loose" account — is there any way?
Short answer: it depends.
Scenario A — account still in MetaMask and you can unlock: export the private key as above.
Scenario B — you deleted the imported account but still have a browser profile backup (LocalExtensionSettings, IndexedDB): advanced and fragile recovery may be possible by extracting extension storage. This requires technical skill and carries risk.
Scenario C — you never saved the private key or seed phrase and the account is gone: there is no reliable, general-purpose way to recover it.
Any way to retrieve loose account MetaMask if you no longer have the key? If MetaMask still shows the account, yes. If not, check local backups or password managers where you might have stored the key. But do not trust random recovery tools you find (phishing risk). See phishing-address-poisoning and recovering-missing-funds for related techniques.
Manage loose accounts: remove, hide, rename
- Rename: Account details → Edit name. Useful to avoid sending to the wrong address.
- Hide: you can switch accounts to keep them out of view (useful for many addresses).
- Remove imported account: Account details → "Remove account" (only available for imported accounts). Removing deletes MetaMask’s record of the private key; ensure you have a backup first.
Remember: you cannot remove an account that is derived from your seed phrase without resetting/reinstalling the extension. See reset-delete-and-reinstall.
Security checklist & best practices
- Never paste a private key into a website or chat.
- Prefer moving funds to a hardware wallet for sizeable balances (see hardware-wallets-with-metamask).
- After exporting a key, consider rotating funds (move to a new address) rather than reusing the exported key long-term.
- Revoke unlimited token approvals after migration: token-allowances-and-revoke.
- Use seed phrase backups (offline, printed, or a secure metal backup) for HD accounts: seed phrase backup & recovery.
And do the export on a machine you trust. But if you must use a connected machine, at least disconnect from networks and close untrusted apps.
Quick comparison: recovery/export options
| Scenario |
UI export possible? |
Requires MetaMask password? |
Technical skill |
Risk |
| Account present & unlocked |
Yes |
Yes |
Low |
Medium |
| Restore from seed phrase |
No (use seed) |
No |
Low |
Low |
| Create JSON from key (offline) |
N/A |
N/A |
Medium |
Low |
| Browser storage extraction |
Sometimes |
No |
High |
Very High |
| Smart contract wallet |
No |
N/A |
High |
Very High |
FAQ
Q: Is it safe to keep crypto in a hot wallet?
A: Hot wallets are convenient for daily use and DeFi interactions. For larger holdings, move funds to a hardware wallet. See who-is-metamask-for for use-case guidance.
Q: How do I revoke token approvals after moving accounts?
A: Use a trusted revocation tool or see token-allowances-and-revoke. Don't paste private keys into unknown sites.
Q: What happens if I lose my phone?
A: If you have the seed phrase, restore on another device via import-and-restore-wallet. If you used only an imported private key and lost the phone without a backup, recovery is unlikely.
Q: Retrieve loose account MetaMask — is there any way if I deleted it?
A: Possibly, only if you have browser backups or the original private key/JSON. Otherwise there is no universal recovery path.
Conclusion & next steps
Exporting MetaMask private key or managing loose accounts is straightforward when you still control the MetaMask instance. The risky part is what you do next with that key. I believe the safest workflow is: export only when necessary, create an encrypted keystore JSON offline if you need a portable file, and move long-term funds to a hardware wallet.
Ready for the next step? If you want to secure accounts long-term, read our seed phrase backup & recovery guide and the hardware-wallets-with-metamask instructions.