Skip to tool

Base58 and Base58Check Encoder and Decoder

Encode bytes with Bitcoin-alphabet Base58 or Base58Check, or decode them back. Supports optional Base58Check version-byte validation.

Runs in your browser — your input is processed on this device and never uploaded.

Input

Enter text or upload a file to encode. To decode, enter the encoded text.

Result

Results appear here.

About this tool

On this page

What are Base58 and Base58Check?

Base58 writes bytes with a 58-character alphabet that leaves out the characters people confuse: zero, capital O, capital I and lowercase l. Base58Check adds a version byte and a four-byte checksum, which is how Bitcoin addresses catch typing mistakes before money moves.

Base58 options

Operation
Encode Base58 (the default), Decode Base58, Encode Base58Check or Decode Base58Check.
Input
Text or a file to encode, or Base58 text to decode.
Base58Check version byte (optional)
A number from 0 to 255, used by Base58Check only. On encode it goes in front of the payload before the checksum is computed. On decode it is checked against the value in the string.
  • Decoded Base58Check output includes the version byte when one is present.
  • Plain Base58 is limited to 1 MiB of decoded data and 3 MiB of encoded text. Base58Check is limited to 4 KiB and 8 KiB.

Why Base58 leaves characters out

The alphabet is 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz. Satoshi Nakamoto chose it for Bitcoin, and a comment in the original Bitcoin source gives the reasons: 0, O, I and l look alike in some fonts, a string with no punctuation is more readily accepted as an account number, email will not break the line inside it, and a double-click selects the whole string as one word.

Base58Check adds protection against typing mistakes. Its last four bytes are the start of a double SHA-256 hash of the version byte and payload, so a mistyped character almost always fails the check instead of producing a different, valid value.

Base58 alternatives

Base64 and Base32 are block-based standards from RFC 4648 and handle large data well. Base58 is not block-based: it converts the whole input as one large number, which is why this tool caps it at 1 MiB.

Bech32 and Bech32m is the newer Bitcoin address format, with a stronger checksum and a single-case alphabet. Multibase does not accept its Base58 form (prefix z), so decode the part after the z here instead.

Things to know about Base58

Leading zero bytes become leading 1 characters, one per byte, so the bytes 00 00 01 encode as 112. That is why Bitcoin addresses with version byte 0 start with a 1.

Warning

A valid checksum catches accidental changes. It does not prove who made the value, and neither format encrypts anything.

Browse

Find similar tools by category or tag.