> For the complete documentation index, see [llms.txt](https://docs.polkagate.xyz/polkagate/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.polkagate.xyz/polkagate/polkagate-extension-user-guide/import-account/restore-from-file.md).

# Restore from File

If you have a JSON file containing your account information exported from a Polkadot-supported wallet, you can import these accounts into the extension.&#x20;

You’ll first encounter this option on the onboarding page after installing the extension — simply click the **Already have accounts** button and then click the **Restore from File** button, as shown below.

<figure><img src="/files/l1WhMkkTX3zfkHgbVsnz" alt=""><figcaption><p>Already have accounts (full-screen)</p></figcaption></figure>

<figure><img src="/files/FiD6kNPVd19MyMEiJMW9" alt="" width="234"><figcaption><p>Already have accounts (extension)</p></figcaption></figure>

If you already have accounts in the extension and want to restore additional accounts from a file, simply open the **Account Menu** in the top corner and select **Import Account** (this will redirect you to the **Already have accounts** page).

<figure><img src="/files/wY0blr6ahvlegAN6aVFq" alt=""><figcaption><p>Account Menu (full-screen)</p></figcaption></figure>

Alternatively, you can go to **Settings**, open **Account Settings**, and then click **Import Account**.

<figure><img src="/files/HVZQ00GWDfMPg2anpCpN" alt=""><figcaption><p>Account Settings (full-screen)</p></figcaption></figure>

<figure><img src="/files/FfsBlUffCFIgpzNPVrZe" alt="" width="235"><figcaption><p>Account Settings (extension)</p></figcaption></figure>

When you click **Restore from File**, you’ll see a page where you can either drag and drop your JSON file or click the **Browse** button to select the file.

<figure><img src="/files/mjSWy8TrRVTudMhjk9vs" alt=""><figcaption><p>Restore from File (full-screen)</p></figcaption></figure>

Once you select the JSON file, all accounts stored in it will be displayed. Check the accounts you want to import, enter the file password, and then click the **Restore** button to add them to your extension.

<figure><img src="/files/4v0kC7TdzQ4tGRUtNubr" alt=""><figcaption><p>Restore from File (full-screen)</p></figcaption></figure>

**Important Note:**

The way passwords work during account import depends on your situation:

1. **If this is your first time using the extension:**
   * **If you import a batch file (multiple accounts):**\
     You will be redirected to **set a master password** right away.
   * **If you import a single account (not a batch file):**\
     The password you enter for that account will automatically become your **master password**.
2. **If you already have accounts in the extension:**
   * When importing new accounts, **if the passwords of the new accounts are different from your current master password**, you will be redirected to **migrate those new accounts to your existing master password**.

This system ensures all accounts are protected under one secure master password.

If you experience any issues with passwords, please refer to the [**Master Password** ](/polkagate/polkagate-extension-user-guide/master-password.md)documentation page.
