<p>The easiest way is to export your private keys using the dumpprivkey functionality. </p>

<blockquote>
  <p>DumpPrivKey: returns the wallet-import-format (WIP) private key corresponding to an address. (But does not remove it from the wallet.) <a href="https://bitcoin.org/en/developer-reference" rel="nofollow">Bitcoin Developer Reference</a></p>
</blockquote>

<p>Do this for each address that is storing bitcoin (use listreceivedbyaddress to view all addresses with funds) </p>

<blockquote>
  <p>ListReceivedByAddress: lists the total number of bitcoins received by each address. <a href="https://bitcoin.org/en/developer-reference" rel="nofollow">Bitcoin Developer Reference</a></p>
</blockquote>

<p>Then create a backup copy of your wallet.dat file and then remove it.  The next time bitcoin-qt runs it will create a new empty unencrypted wallet.  Now you can use importprivkey to restore your funds. </p>

<blockquote>
  <p>ImportPrivKey: adds a private key to your wallet. The key should be formatted in the wallet import format created by the dumpprivkey RPC. <a href="https://bitcoin.org/en/developer-reference" rel="nofollow">Bitcoin Developer Reference</a></p>
</blockquote>

CC BY-SA 3.0
2015-01-07T06:39:32.690Z
I don't understood, how to "Do dumpprivkey on each address that is storing coins"
R2D4
CC BY-SA 3.0
2015-01-08T00:13:45.127Z
I edited my answer to include information about listreceivedbyaddress which will list all of your addresses that currently hold funds
Mark S.
CC BY-SA 3.0
2015-01-08T20:40:46.237Z
It won't list change addresses, though, will it? Be careful you don't lose those, probably should make sure to keep that back up in case.
morsecoder
CC BY-SA 3.0
2015-01-11T11:39:19.427Z
listreceivedbyaddress shows all received coins. But I need only unspent (remaining) coins. I found <b>listunspent</b> command
R2D4
CC BY-SA 3.0
2015-01-11T11:45:47.690Z
And before printing keys, the wallet should be unlocked with [b]walletpassphrase[/b] command
R2D4
CC BY-SA 4.0
2019-03-08T05:45:54.457Z
Wouldn't dumpwallet be faster? `dumpwallet "filename" -- Dumps all wallet keys in a human-readable format.`
Sun
CC BY-SA 3.0
2015-01-06T18:55:38.337Z
2015-01-08T00:21:29.443Z
2015-01-08T00:21:29.443Z
Mark S.
<p>You can make a paper wallet from actual addresses, then delete wallet.dat, create new one and import paper wallets on created unencypted wallet.dat file.</p>

<p>But you must to remember about the "change address" mechanism because you can lose your bitcoins forever.</p>

CC BY-SA 3.0
2015-01-05T15:57:11.843Z
What do you mean by "rest mechanism?"
Nick ODell
CC BY-SA 3.0
2015-01-06T07:35:32.053Z
This doesn't seem directly useful to the OP since bitcoin-qt doesn't provide the ability to either create or import paper wallets.  Perhaps you should explain in detail how to achieve these steps.
Nate Eldredge
CC BY-SA 3.0
2015-01-07T09:06:40.630Z
rest mechanism I mean "change address" mechanism - sorry I am not english native speaker
Sebastian Xawery Wiśniowiecki
CC BY-SA 3.0
2015-01-07T09:10:02.677Z
Nate - it is enought to have installed QR code software and use your brain a little bit (ctrl+c ctrl+v) to have this ability in bitcoin-qt also.
Sebastian Xawery Wiśniowiecki
CC BY-SA 3.0
2015-01-05T14:58:58.347Z
2015-01-07T09:05:49.343Z
2015-01-07T09:05:49.343Z
Sebastian Xawery Wiśniowiecki
<p>I don't want to spend transaction fee for transferring coins to unencrypted wallet.dat.</p>

<p>What should I do?</p>

CC BY-SA 3.0
2015-01-05T15:32:42.400Z
Are you using the Bitcoin Core client,  or something else?
Nate Eldredge
CC BY-SA 3.0
2015-01-06T07:26:55.580Z
I use bitcoin-qt-0.8.5.ebuild and it's integrated console in debug window
R2D4
CC BY-SA 3.0
2015-01-08T20:43:40.100Z
Seems like there should be an easier way to do this than what Mark S proposed. Maybe it's on the core dev's to-do list.
morsecoder
<wallet>
How to convert encrypted wallet.dat to decrypted? (Yes, I know the password)
R2D4
# How to convert encrypted wallet.dat to decrypted? (Yes, I know the password)

(Asked by: username_0 on 2015-01-05)

I don't want to spend transaction fee for transferring coins to unencrypted wallet.dat.

What should I do?

**Tags:** wallet

> **Comments:**
> **username_1**: Are you using the Bitcoin Core client,  or something else?  
> **username_0**: I use bitcoin-qt-0.8.5.ebuild and it's integrated console in debug window  
> **username_2**: Seems like there should be an easier way to do this than what username_3 proposed. Maybe it's on the core dev's to-do list.  

---

## 2 answers

### Answer by username_3 on 2015-01-06. Score: 3 | Accepted answer

The easiest way is to export your private keys using the dumpprivkey functionality.

> DumpPrivKey: returns the wallet-import-format (WIP) private key corresponding to an address. (But does not remove it from the wallet.) [Bitcoin Developer Reference](https://bitcoin.org/en/developer-reference)

Do this for each address that is storing bitcoin (use listreceivedbyaddress to view all addresses with funds)

> ListReceivedByAddress: lists the total number of bitcoins received by each address. [Bitcoin Developer Reference](https://bitcoin.org/en/developer-reference)

Then create a backup copy of your wallet.dat file and then remove it. The next time bitcoin-qt runs it will create a new empty unencrypted wallet. Now you can use importprivkey to restore your funds.

> ImportPrivKey: adds a private key to your wallet. The key should be formatted in the wallet import format created by the dumpprivkey RPC. [Bitcoin Developer Reference](https://bitcoin.org/en/developer-reference)

> **Comments:**
> **username_0**: I don't understood, how to "Do dumpprivkey on each address that is storing coins"  
> **username_3**: I edited my answer to include information about listreceivedbyaddress which will list all of your addresses that currently hold funds  
> **username_2**: It won't list change addresses, though, will it? Be careful you don't lose those, probably should make sure to keep that back up in case.  
> **username_0**: listreceivedbyaddress shows all received coins. But I need only unspent (remaining) coins. I found <b>listunspent</b> command  
> **username_0**: And before printing keys, the wallet should be unlocked with [b]walletpassphrase[/b] command  
> **username_4**: Wouldn't dumpwallet be faster? `dumpwallet "filename" -- Dumps all wallet keys in a human-readable format.`  

---

### Answer by username_5 on 2015-01-05. Score: -1

You can make a paper wallet from actual addresses, then delete wallet.dat, create new one and import paper wallets on created unencypted wallet.dat file.

But you must to remember about the "change address" mechanism because you can lose your bitcoins forever.

> **Comments:**
> **username_6**: What do you mean by "rest mechanism?"  
> **username_1**: This doesn't seem directly useful to the OP since bitcoin-qt doesn't provide the ability to either create or import paper wallets.  Perhaps you should explain in detail how to achieve these steps.  
> **username_5**: rest mechanism I mean "change address" mechanism - sorry I am not english native speaker  
> **username_5**: username_1 - it is enought to have installed QR code software and use your brain a little bit (ctrl+c ctrl+v) to have this ability in bitcoin-qt also.  

---

