Skip to content

Base58 encoder and decoder

Free, no sign-up Runs in your browser

Encode and decode Base58 in the Bitcoin alphabet, and validate a Base58Check string: checksum, version byte and payload. Runs in your browser.

What to do

The Bitcoin alphabet: digits and letters without 0, O, I and l.

The input is
Base58
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

  1. Choose to encode, decode, or validate Base58Check.
  2. When encoding, say whether the input is text or hex bytes.
  3. Paste the input.
  4. 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

What is Base58?

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.

What is Base58Check?

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.

Why does Bitcoin use Base58 and not Base64?

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.

Does a valid checksum mean an address is safe to pay?

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.

Related tools