<ol>
<li><p>Start Bitcoin Core with the <code>wallet.dat</code> you want to export</p>
</li>
<li><p>Dump all wallet keys via Bitcoin Core's Console using <code>dumpwallet wallet.dump</code>, where <code>wallet.dump</code> is the name of the dump file to be created.</p>
</li>
</ol>
<p>If you get an error, try specifying an absolute file path with a dir to which Bitcoin Core has the permission to write to, e.g. you can specify the same dir as the one where your <code>wallet.dat</code> is located.</p>
<ol start="3">
<li>You'll get a list of private key to address pairs in the following format:</li>
</ol>
<blockquote>
<pre><code>L4ysibEFMBQc3hfr7tvUyV4nBP1YQ3AgDewszoYq5czMtXotmmro 2020-08-21T14:36:58Z change=1 #addr=bc1qpw40dkvcj23zt3efvdwqr7ddfunwktx11f3tjf
</code></pre>
</blockquote>
<ol start="4">
<li>Extract all the private keys (they are in the first column, e.g. <code>L4ysi..mmro</code>).</li>
</ol>
<p>I remove unnecessary stuff at the beginning and at the end of the dump file manually, then use <code>cut -c -52 wallet.dump &gt; private_keys.dump</code> to leave out everything except of the private keys.</p>
<ol start="5">
<li>Create a new Electrum wallet, select &quot;Import Bitcoin addresses or private keys&quot;, <a href="https://bitcoin.stackexchange.com/a/115766/4334">convert your keys according to the rules available by clicking on &quot;Info&quot; button</a> (you may not need to convert them if your <code>wallet.dat</code> is quite old) and you're good to go!</li>
</ol>
<p>The above is tested on Bitcoin Core 0.21.1.0 and Electrum 4.1.5.</p>

CC BY-SA 4.0
2020-08-30T22:09:53.880Z
2024-12-21T03:34:29.287Z
2024-12-21T03:34:29.287Z
Aliaksandr Adzinets
<p>According to <a href="http://docs.electrum.org/en/latest/faq.html#can-i-import-private-keys-from-other-bitcoin-clients" rel="nofollow noreferrer">this FAQ</a>:</p>
<blockquote>
<p>In Electrum 2.0, you cannot import private keys in a wallet that has a seed. You should sweep them instead.</p>
<p>If you want to import private keys and not sweep them you need to create a special wallet that does not have a seed. For this, create a new wallet, select “restore”, and instead of typing your seed, type a list of private keys, or a list of addresses if you want to create a watching-only wallet.</p>
</blockquote>
<p>You can get the private keys from Bitcoin Core using <code>dumpprivkey</code> as described in <a href="https://bitcoin.stackexchange.com/questions/5614/using-dumpprivkey-to-make-a-paper-backup">Using dumpprivkey to make a paper backup</a>.</p>

CC BY-SA 3.0
2015-06-16T16:45:55.013Z
2017-05-17T23:32:02.810Z
2020-06-16T11:10:03.350Z
Nate Eldredge
<p>If you export the private keys for the addresses you want to keep then you are literally your own bank, most wallets allow you to import private keys in some way. I don't know the specifics of doing it on Electrum though.</p>

<p>To export from bitcoin-qt go into the debug console from the menus, and enter</p>

<pre><code>dumpprivkey "1bitcoinaddresshere"
</code></pre>

<p>Keep that key safe - it is the key to all coins in that address now, past &amp; future. Don't leave it on your desktop or dropbox, preferably carefully copy and paste it into the other wallet without writing to disk.</p>

CC BY-SA 3.0
2015-03-18T01:12:05.350Z
2015-03-18T01:12:05.350Z
George
<p>This question is already answered in the Electrum tutorials <a href="http://electrum.org/tutorials.html#switching-to-electrum" rel="nofollow noreferrer">http://electrum.org/tutorials.html#switching-to-electrum</a></p>
<blockquote>
<p><strong>What to do with my old addresses and wallet when switching to Electrum?</strong></p>
<p>The best way to switch to Electrum is to send all the bitcoins you have on your old wallet to one of the addresses on your Electrum wallet. This way you'll have all your bitcoins secured with your seed.</p>
<p>You could import the private keys from your old client, but you will have to keep a backup of those keys separately as they won't become part of your Electrum seed.</p>
</blockquote>
<p>Remember not to totally delete your wallet.dat if you gave your addresses for the deposite to other people</p>

CC BY-SA 3.0
2013-08-20T09:04:46.120Z
2013-08-20T09:12:00.093Z
2020-06-16T11:10:03.350Z
rdymac
<p>I have to disagree with the other 2 answers at the time of this writing. While indeed wallet.dat contains all the critical information, and <em>in theory</em> you could just use it with another application, in practice the wallet file format is not consistent between applications, and AFAIK you cannot use that file elsewhere.</p>

<p>Your best course of action depends on your needs, but it's probably to export your private keys, import them elsewhere (such as blockchain.info), and send the coins to the wallet you want to use going forward.</p>

CC BY-SA 3.0
2015-02-14T21:57:15.023Z
What do you mean "import them elsewhere (such as blockchain.info)"?
Geremia
CC BY-SA 3.0
2015-02-15T12:08:37.403Z
@Geremia: After you've exported your private key, you can import it to another wallet. Once the key is imported, you can spend the coins it controls using this wallet. Every wallet has its own interface for importing. An example for a wallet to which you can import the key is blockchain.info.
Meni Rosenfeld
CC BY-SA 3.0
2013-08-20T07:55:41.227Z
2013-08-20T07:55:41.227Z
Meni Rosenfeld
<p>I am switching from bitcoin-qt to Electrum, and it seems as if I will need to download the blockchain again. Can I copy and paste my wallet.dat into Electrum's files?</p>

<bitcoin-core><electrum><private-key-import><wallet-import>
How can I transfer a Bitcoin-qt wallet to Electrum?
tom
# How can I transfer a Bitcoin-qt wallet to Electrum?

(Asked by: username_0 on 2013-08-19)

I am switching from bitcoin-qt to Electrum, and it seems as if I will need to download the blockchain again. Can I copy and paste my wallet.dat into Electrum's files?

**Tags:** bitcoin-core, electrum, private-key-import, wallet-import


---

## 5 answers

### Answer by username_1 on 2020-08-30. Score: 8

1. Start Bitcoin Core with the `wallet.dat` you want to export
2. Dump all wallet keys via Bitcoin Core's Console using `dumpwallet wallet.dump`, where `wallet.dump` is the name of the dump file to be created.

If you get an error, try specifying an absolute file path with a dir to which Bitcoin Core has the permission to write to, e.g. you can specify the same dir as the one where your `wallet.dat` is located.

3. You'll get a list of private key to address pairs in the following format:

> ```
> L4ysibEFMBQc3hfr7tvUyV4nBP1YQ3AgDewszoYq5czMtXotmmro 2020-08-21T14:36:58Z change=1 #addr=bc1qpw40dkvcj23zt3efvdwqr7ddfunwktx11f3tjf
>
> ```

4. Extract all the private keys (they are in the first column, e.g. `L4ysi..mmro`).

I remove unnecessary stuff at the beginning and at the end of the dump file manually, then use `cut -c -52 wallet.dump > private_keys.dump` to leave out everything except of the private keys.

5. Create a new Electrum wallet, select "Import Bitcoin addresses or private keys", [convert your keys according to the rules available by clicking on "Info" button](https://bitcoin.stackexchange.com/a/115766/4334) (you may not need to convert them if your `wallet.dat` is quite old) and you're good to go!

The above is tested on Bitcoin Core 0.21.1.0 and Electrum 4.1.5.


---

### Answer by username_2 on 2015-06-16. Score: 6

According to [this FAQ](http://docs.electrum.org/en/latest/faq.html#can-i-import-private-keys-from-other-bitcoin-clients):

> In Electrum 2.0, you cannot import private keys in a wallet that has a seed. You should sweep them instead.
>
> If you want to import private keys and not sweep them you need to create a special wallet that does not have a seed. For this, create a new wallet, select “restore”, and instead of typing your seed, type a list of private keys, or a list of addresses if you want to create a watching-only wallet.

You can get the private keys from Bitcoin Core using `dumpprivkey` as described in [Using dumpprivkey to make a paper backup](https://bitcoin.stackexchange.com/questions/5614/using-dumpprivkey-to-make-a-paper-backup).


---

### Answer by username_3 on 2015-03-18. Score: 4

If you export the private keys for the addresses you want to keep then you are literally your own bank, most wallets allow you to import private keys in some way. I don't know the specifics of doing it on Electrum though.

To export from bitcoin-qt go into the debug console from the menus, and enter

```
dumpprivkey "1bitcoinaddresshere"

```

Keep that key safe - it is the key to all coins in that address now, past & future. Don't leave it on your desktop or dropbox, preferably carefully copy and paste it into the other wallet without writing to disk.


---

### Answer by username_4 on 2013-08-20. Score: 3

This question is already answered in the Electrum tutorials <http://electrum.org/tutorials.html#switching-to-electrum>

> **What to do with my old addresses and wallet when switching to Electrum?**
>
> The best way to switch to Electrum is to send all the bitcoins you have on your old wallet to one of the addresses on your Electrum wallet. This way you'll have all your bitcoins secured with your seed.
>
> You could import the private keys from your old client, but you will have to keep a backup of those keys separately as they won't become part of your Electrum seed.

Remember not to totally delete your wallet.dat if you gave your addresses for the deposite to other people


---

### Answer by username_5 on 2013-08-20. Score: 3

I have to disagree with the other 2 answers at the time of this writing. While indeed wallet.dat contains all the critical information, and *in theory* you could just use it with another application, in practice the wallet file format is not consistent between applications, and AFAIK you cannot use that file elsewhere.

Your best course of action depends on your needs, but it's probably to export your private keys, import them elsewhere (such as blockchain.info), and send the coins to the wallet you want to use going forward.

> **Comments:**
> **username_6**: What do you mean "import them elsewhere (such as blockchain.info)"?  
> **username_5**: @username_6: After you've exported your private key, you can import it to another wallet. Once the key is imported, you can spend the coins it controls using this wallet. Every wallet has its own interface for importing. An example for a wallet to which you can import the key is blockchain.info.  

---

