Base58 encoder and decoder
Encode and decode Base58 in the Bitcoin alphabet, and validate a Base58Check string: checksum, version byte and payload. Runs in your browser.
The result appears here.Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.
How to use the base58 encoder and decoder
- Choose to encode, decode, or validate Base58Check.
- When encoding, say whether the input is text or hex bytes.
- Paste the input.
- Copy the result, or read the checksum verdict, the version byte and the payload.
About this tool
Base58 is Base64 with the troublesome characters taken out. It drops 0, capital O, capital I and lower-case l, which look alike in many fonts, and the symbols + and /, so a value can be selected with a double click and read over the phone. It was introduced with Bitcoin for addresses and is now also used for IPFS content identifiers, Solana keys and other identifiers people copy by hand.
Unlike Base64 it does not work in fixed groups. The whole input is treated as one large number and converted to base 58, with each leading zero byte written as a 1. Base58Check adds protection against typing mistakes: a version byte goes in front and the first four bytes of a double SHA-256 hash go at the end. A wallet recomputes the hash and refuses an address with one wrong character.
The validator here decodes a Base58Check string, recomputes that checksum with the Web Crypto API and shows the version byte and the payload. A valid checksum says the string was copied correctly. It says nothing about whether the address belongs to who you think, so compare the whole address with a trusted source, not only the first and last characters.
Sources
Questions
An encoding that writes bytes with 58 characters: the digits and letters except 0, O, I and l. It was designed for values that people read and copy, such as Bitcoin addresses.
Base58 with a version byte in front of the data and a four-byte checksum behind it, taken from a double SHA-256 hash. The checksum catches typing and copying errors before money is sent to an address that does not exist.
Base64 includes characters that look alike and the symbols + and /, which break double-click selection and URLs. Base58 removes them, at the cost of slightly longer text.
No. It means the string is well formed. Malware that swaps a copied address for the attacker’s inserts a perfectly valid one, so always compare the full address with the one you were given.