WIF

Wallet Import Format, wallet export format

A Base58Check-encoded string for importing or exporting a single Bitcoin private key.

WIF stands for Wallet Import Format. It is the standard Base58Check encoding for a single Bitcoin private key, used when a wallet needs to import, export, sweep, or recover one key directly.

A WIF string wraps the raw 32-byte private key with a network prefix, an optional compression marker, and a checksum. On mainnet, that prefix is 0x80. The checksum helps catch copy errors, and the compression marker tells software whether the key should be used with compressed public keys. That is why mainnet WIF strings often start with 5, K, or L, while testnet WIF strings often start with 9 or c.

WIF is a key format, not a wallet backup format. It works well for moving one standalone key between tools, but it does not describe derivation paths, script types, account structure, or multisig policies. Modern wallets usually exchange output descriptors or seed-based backups for that broader context.

Anyone who gets a WIF string controls the bitcoin locked to that key. Treat it like raw key material. If a wallet asks you to reveal a WIF, you are handing that wallet spending authority.

References