<p>You can also import the <code>wallet.dat</code> directly into <a href="https://electrum.org/" rel="nofollow">Electrum</a>. Bitcoin Core needs to download the whole chain (as you mentioned) so that'll take a while. Without the chain, your transaction are indeed illegal/conflicted. Since you have the wallet, you can just install Electrum and import it there. Electrum doesn't need to download the chain, so your balance would be visible (and accessible, even more important) immediately. </p>

CC BY-SA 3.0
2014-05-14T10:26:02.683Z
2014-05-14T10:26:02.683Z
Mathias711
<ol>
<li>Start Bitcoin Core with the <code>wallet.dat</code> you want to export</li>
<li>Dump your private keys via Bitcoin Core's Console using <code>dumpwallet</code></li>
<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 private keys (they are in the first column, e.g. <code>L4ysi..mmro</code>)</li>
<li>Create a new Electrum wallet, select &quot;Import Bitcoin addresses or private keys&quot;, convert your keys according to the rules available by clicking on &quot;Info&quot; button (you may not need to convert 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.20.1 and Electrum 4.0.2.</p>

CC BY-SA 4.0
2020-08-30T22:23:26.333Z
2020-08-30T23:01:50.677Z
2020-08-30T23:01:50.677Z
Aliaksandr Adzinets
<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>

<p><a href="https://electrum.org/tutorials.html#switching-to-electrum" rel="nofollow">https://electrum.org/tutorials.html#switching-to-electrum</a></p>

CC BY-SA 3.0
2014-05-14T22:24:59.960Z
I downloaded `bootstrap.dat` and placed it in `~/.bitcoin`. After loading Bitcoin Core, it began importing blocks from disk and has been importing ever since.<br>I can use the command line to extract the private keys from Bitcoin Core.
RasterVector
CC BY-SA 3.0
2014-05-14T22:51:03.690Z
I tried the instructions for switching. The example they gave was for OS X, but under Linux I ran `electrum -w ~/path/to/wallet.dat`.  It says `File "/path/to/wallet.py", line 123, in read`  `raise IOError("Cannot read wallet file.")`. Any thoughts?
RasterVector
CC BY-SA 3.0
2014-05-15T05:45:27.810Z
Unless you're going to wait for the blocks to be synchronized from the beginning you better export the private keys, import them to Electrum, go to the Send tab, in amount hit ! (exclamation) key and send to one of your Electrum addresses. Make sure you have the Seed properly written in paper and in a safe place.
rdymac
CC BY-SA 3.0
2014-05-14T18:12:22.503Z
2014-05-14T18:12:22.503Z
rdymac
<p>My primary PC died last month due to what I believe is a motherboard error. My EVGA board displays "FF". The fans, drives, everything powers up as usual. But I don't hear any beep, no POST, no BIOS, just nothing.</p>

<p>Since then I've taken up residence on a box much more modest than what I'm used to, but I've used it as an opportunity to learn Linux. Nothing like jumping in head first.</p>

<p>Luckily I have a backup wallet.dat file taken at some point after my last known transaction. I changed the filename of the file in the directory, then renamed my backup as wallet.dat and loaded up Bitcoin Core on Linux Mint 13 Maya.</p>

<p>It was partially successful. I could view and export a list of every transaction I've ever made with my desktop wallet. I opened my CSV file in Calc and found the total sum of transactions left the balance equal to what I remember last having in the wallet.</p>

<p>However, the wallet has no balance and all the transactions have a "conflicted" status. Do I need to download the blockchain first? Is it worth my time to download bootstrap.dat?</p>

<p>After my funds are accessible in Bitcoin Core, how do I then move them to Electrum?</p>

<bitcoin-core><wallet.dat><electrum><bootstrap.dat>
How do I load wallet.dat on new PC and import everything into Electrum?
RasterVector
# How do I load wallet.dat on new PC and import everything into Electrum?

(Asked by: username_0 on 2014-05-14)

My primary PC died last month due to what I believe is a motherboard error. My EVGA board displays "FF". The fans, drives, everything powers up as usual. But I don't hear any beep, no POST, no BIOS, just nothing.

Since then I've taken up residence on a box much more modest than what I'm used to, but I've used it as an opportunity to learn Linux. Nothing like jumping in head first.

Luckily I have a backup wallet.dat file taken at some point after my last known transaction. I changed the filename of the file in the directory, then renamed my backup as wallet.dat and loaded up Bitcoin Core on Linux Mint 13 Maya.

It was partially successful. I could view and export a list of every transaction I've ever made with my desktop wallet. I opened my CSV file in Calc and found the total sum of transactions left the balance equal to what I remember last having in the wallet.

However, the wallet has no balance and all the transactions have a "conflicted" status. Do I need to download the blockchain first? Is it worth my time to download bootstrap.dat?

After my funds are accessible in Bitcoin Core, how do I then move them to Electrum?

**Tags:** bitcoin-core, wallet.dat, electrum, bootstrap.dat


---

## 3 answers

### Answer by username_1 on 2014-05-14. Score: 2

You can also import the `wallet.dat` directly into [Electrum](https://electrum.org/). Bitcoin Core needs to download the whole chain (as you mentioned) so that'll take a while. Without the chain, your transaction are indeed illegal/conflicted. Since you have the wallet, you can just install Electrum and import it there. Electrum doesn't need to download the chain, so your balance would be visible (and accessible, even more important) immediately.


---

### Answer by username_2 on 2020-08-30. Score: 1

1. Start Bitcoin Core with the `wallet.dat` you want to export
2. Dump your private keys via Bitcoin Core's Console using `dumpwallet`
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 private keys (they are in the first column, e.g. `L4ysi..mmro`)
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 (you may not need to convert if your `wallet.dat` is quite old) and you're good to go!

The above is tested on Bitcoin Core 0.20.1 and Electrum 4.0.2.


---

### Answer by username_3 on 2014-05-14. Score: 1

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.

<https://electrum.org/tutorials.html#switching-to-electrum>

> **Comments:**
> **username_0**: I downloaded `bootstrap.dat` and placed it in `~/.bitcoin`. After loading Bitcoin Core, it began importing blocks from disk and has been importing ever since.<br>I can use the command line to extract the private keys from Bitcoin Core.  
> **username_0**: I tried the instructions for switching. The example they gave was for OS X, but under Linux I ran `electrum -w ~/path/to/wallet.dat`.  It says `File "/path/to/wallet.py", line 123, in read`  `raise IOError("Cannot read wallet file.")`. Any thoughts?  
> **username_3**: Unless you're going to wait for the blocks to be synchronized from the beginning you better export the private keys, import them to Electrum, go to the Send tab, in amount hit ! (exclamation) key and send to one of your Electrum addresses. Make sure you have the Seed properly written in paper and in a safe place.  

---

