<p>Use <a href="https://github.com/joric/pywallet">pywallet</a> to extract the private keys and copy the output to <a href="http://blockchain.info">blockchain.info</a>'s Import Backup page.</p>

<p>To use pywallet, you open a command prompt/terminal window at the folder where you saved it and type <code>./pywallet --dumpwallet --password="Whatever your passphrase is"</code>. NOTE: this will output everything in plain text, so if you do this on a public computer or with somebody looking over your shoulder, some of your bitcoins may be stolen.</p>

CC BY-SA 3.0
2012-08-17T17:24:14.500Z
I did that but its saying pywallet.py: error: no such option: --password
Danny
CC BY-SA 3.0
2012-08-17T17:30:43.693Z
I was using a different one to the one you gave its doing something now ill post an update if it works, Thanks
Danny
CC BY-SA 3.0
2012-08-17T17:36:48.700Z
That worked i had to create a bat to dump to a file
Danny
CC BY-SA 3.0
2012-08-17T21:49:18.380Z
So you have everything uploaded now?
Daniel H
CC BY-SA 3.0
2012-09-16T05:26:28.667Z
I just installed pywallet: In Mountain Lion I get the error "no module names _bsddb" ... Do you have any suggestions?
makerofthings7
CC BY-SA 3.0
2012-08-17T17:11:53.190Z
2012-08-17T17:11:53.190Z
Daniel H
<p>I have encrypted my bitcoin wallet. I know the passphrase, that's not the issue.</p>

<p>I want to transfer my bitcoins to blockchain.info but it's asking me for the private key. I cannot find it nor can I find how to find it. I have searched around on google; a few sites say that pywallet will extract the private key, but I have used this and all I get is the address I have created.</p>

<p>Where is my private key(s)?</p>

CC BY-SA 3.0
2012-08-17T18:03:40.373Z
Is it important for you to keep your old addresses? Otherwise it might be simpler to just send the bitcoins to a new address that you generate at blockchain.info.
D.H.
CC BY-SA 3.0
2012-08-17T22:07:00.957Z
Welcome to the site! By the way, I'm wondering if it's just coincidence that the three people involved with this question are Danny, D.H., and me (Daniel H.).
Daniel H
CC BY-SA 3.0
2012-08-17T22:07:57.463Z
@D.H. That is true, and I thought of that, but there are transaction fees, waiting, and lack of anonymity involved with that which aren't involved with simply importing the keys.
Daniel H
<bitcoin-core><private-key><blockchain.info><import>
Extract private keys from Bitcoin Wallet
Danny
# Extract private keys from Bitcoin Wallet

(Asked by: username_0 on 2012-08-17)

I have encrypted my bitcoin wallet. I know the passphrase, that's not the issue.

I want to transfer my bitcoins to blockchain.info but it's asking me for the private key. I cannot find it nor can I find how to find it. I have searched around on google; a few sites say that pywallet will extract the private key, but I have used this and all I get is the address I have created.

Where is my private key(s)?

**Tags:** bitcoin-core, private-key, blockchain.info, import

> **Comments:**
> **username_1**: Is it important for you to keep your old addresses? Otherwise it might be simpler to just send the bitcoins to a new address that you generate at blockchain.info.  
> **username_2**: Welcome to the site! By the way, I'm wondering if it's just coincidence that the three people involved with this question are username_0, D.H., and me (username_2 H.).  
> **username_2**: @D.H. That is true, and I thought of that, but there are transaction fees, waiting, and lack of anonymity involved with that which aren't involved with simply importing the keys.  

---

## 1 answers

### Answer by username_2 on 2012-08-17. Score: 6 | Accepted answer

Use [pywallet](https://github.com/joric/pywallet) to extract the private keys and copy the output to [blockchain.info](http://blockchain.info)'s Import Backup page.

To use pywallet, you open a command prompt/terminal window at the folder where you saved it and type `./pywallet --dumpwallet --password="Whatever your passphrase is"`. NOTE: this will output everything in plain text, so if you do this on a public computer or with somebody looking over your shoulder, some of your bitcoins may be stolen.

> **Comments:**
> **username_0**: I did that but its saying pywallet.py: error: no such option: --password  
> **username_0**: I was using a different one to the one you gave its doing something now ill post an update if it works, Thanks  
> **username_0**: That worked i had to create a bat to dump to a file  
> **username_2**: So you have everything uploaded now?  
> **username_3**: I just installed pywallet: In Mountain Lion I get the error "no module names _bsddb" ... Do you have any suggestions?  

---

