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)?

  • 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.
    Aug 17, 2012 at 18:03
  • 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
    Aug 17, 2012 at 22:07
  • @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
    Aug 17, 2012 at 22:07

1 Answer 1


Use pywallet to extract the private keys and copy the output to 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.

  • I did that but its saying pywallet.py: error: no such option: --password
    – Danny
    Aug 17, 2012 at 17:24
  • I was using a different one to the one you gave its doing something now ill post an update if it works, Thanks
    – Danny
    Aug 17, 2012 at 17:30
  • That worked i had to create a bat to dump to a file
    – Danny
    Aug 17, 2012 at 17:36
  • So you have everything uploaded now?
    – Daniel H
    Aug 17, 2012 at 21:49
  • I just installed pywallet: In Mountain Lion I get the error "no module names _bsddb" ... Do you have any suggestions? Sep 16, 2012 at 5:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.