We can import account by importing private key of the account. While creating a new account we give passphrase to encrypt the private key. How to import an account in metamask using the mnemonic?
Importing a mnemonic can only be done when you are not logged in. It's best to backup any existing accounts in the current MetaMask instance before importing a mnemonic.
When logged out, you can click
Restore from seed phrase, right under the
Login button. There, enter your seed phrase and set a password.
Check out this tutorial