How can I convert a wallet.aes.json file from Blockchain.info to a wallet.dat file? I'd like to convert my Blockchain.info wallet to a local Bitcoin-qt wallet. How can I do that? (I am fine with using command line tools.)
The way I go about it is as follows:


Login to Blockchain.info and choose export
Export data as BITCOIN QT
Note the private key in the form 5Hxxxx or 5Kxxxx or 5Lxxxxx. Copy and paste this string (or hand write it to be safer; it's case sensitive and has no 0/O, l/I)
Open Bitcoin QT; click help>Console
Type importprivkey PRIVKEY NAME where PRIVKEY is what was copied and pasted and name is the name for the address eg MAIN1
If wallet.dat is encrypted you'll need to type: walletpassphrase PASSWORD 180
Be sure to encrypt your wallet again
Move funds from Blockchain wallets to a new address in case you're concerned about malware monitoring copy/paste