BTC Logo

BTCVanity

Custom Address Generator

Buy us a coffee

Our free tools run entirely on donations. Your support helps maintain the website and develop the tools. Generation runs locally on your device. If we helped you today, a small donation helps keep this service free for everyone.

ETH · Ethereum network
0xcf5777b71c31146bd396cece6d3128e42d0ad9f7

Thank you for keeping us running! ❤️

Wallets

Import a Bitcoin Vanity WIF Key into Electrum

Electrum imports a vanity WIF only into a new wallet without a seed. Steps, the sweep alternative, Sparrow, Bitcoin Core and the checks to run.

By Updated 4 min readRead as Markdown

WIF is a secret format. WIF: An encoded private key with format information; Import: Wallet uses the existing key it accepts; Sweep: Moves available funds in a transaction.
Electrum can import the WIF into its own wallet or sweep its funds. WIF: An encoded private key with format information; Import: Wallet uses the existing key it accepts; Sweep: Moves available funds in a transaction.Open full-size diagram (SVG)Download diagram (PNG)About these visual guides
Short answer: Create a separate Electrum wallet with File > New/Restore, choose Import Bitcoin addresses or private keys and paste the WIF. Electrum cannot add a key to a wallet that has a seed.

How do I import a Bitcoin vanity WIF key into Electrum?

Create a new Electrum wallet only for the vanity key, choose Import Bitcoin addresses or private keys and paste the WIF. Electrum cannot import keys into a wallet that has a seed, so the key cannot join your existing seed wallet.

1. Open Electrum and select File > New/Restore.

2. Enter a name for a new wallet. Keep your existing seed wallet as it is.

3. Choose Import Bitcoin addresses or private keys and continue.

4. Paste the WIF private key that the BTCVanity generator returned, then finish creating the wallet.

5. Compare every character of the address Electrum lists with the complete address BTCVanity showed. Stop if a single character differs.

What the WIF string controls

Wallet Import Format is a Base58 encoding of one private key. A WIF starting with 5 belongs to an uncompressed key; one starting with K or L belongs to a compressed key. BTCVanity returns a compressed legacy result, so expect K or L.

One WIF controls one address only: the legacy P2PKH address beginning with 1 that the generator returned. It is not a seed phrase and does not derive further receiving addresses.

Sweep instead when you only want the funds

From your existing Electrum wallet, Wallet > Private keys > Sweep moves the funds held by the vanity key into that wallet in an on-chain transaction. The key does not become part of the wallet, so later payments to the vanity address are not covered by it.

Sparrow offers the same operation under Tools > Sweep Private Key. Import keeps the vanity address in use; a sweep only collects what it currently holds.

Bitcoin Core: a pkh() descriptor

Bitcoin Core imports a single key with importdescriptors. Wrap the WIF in a pkh() descriptor, run getdescriptorinfo to obtain its checksum, then import the descriptor with that checksum appended after #.

Use "now" as the timestamp only for an address that has never received funds. Otherwise give an earlier Unix time so the wallet rescans. A terminal may keep these commands in its history, so treat that history as containing the key.

bitcoin-cli getdescriptorinfo "pkh(YOUR_WIF)"
# copy the "checksum" value from the output
bitcoin-cli -rpcwallet=vanity importdescriptors '[{"desc":"pkh(YOUR_WIF)#CHECKSUM","timestamp":"now"}]'

Verify the import before relying on it

A matching pattern is not a matching address. Run these checks before publishing the address or receiving larger amounts.

  • Compare the full address in Electrum with the generated result, then look it up on a block explorer such as mempool.space or Blockstream. Only the address goes into an explorer, never the WIF.
  • Send a small test amount and spend it once from the imported wallet. That shows the key really controls the address.
  • Expect higher fees when spending. Legacy P2PKH inputs are larger than SegWit inputs, so moving coins out of the vanity address costs more than spending from a bc1 address. See how fees relate to vanity addresses.
  • If a service only works with bc1 addresses, confirm that it accepts a legacy address beginning with 1 before you share yours.

Back up the imported key on its own

An imported key is not covered by any HD seed, including the seed of your main wallet. Back up the WIF itself offline, then test recovery by importing it into a fresh Electrum wallet before the address holds real funds.

Hardware wallets cannot import an external private key. If you use one, receive payments on the vanity address and sweep larger amounts to the device.

All addresses and private keys are generated entirely client-side in your browser, directly on your device. Your private keys never leave your device. Paste the WIF only into wallet software on your own device. We will never ask for your private key or seed phrase.

Explore the related mechanism

Sources and editorial method

The technical references below support the concepts discussed in this article. Examples and comparison worksheets are explanatory, not measured service benchmarks.

Read how these articles are prepared.