Base58 Encoder And Decoder

Encode UTF-8 text to Base58, or decode Base58 back to UTF-8 text.



Question

What is Base58?

Base58 is a binary-to-text encoding that represents bytes with 58 printable, alphanumeric characters. It is similar in purpose to Base64, but it leaves out punctuation and visually ambiguous characters such as zero, capital O, capital I, and lowercase l. That makes Base58 strings easier to copy, paste, print, read aloud, and use in identifiers where punctuation can be inconvenient.

This tool encodes the UTF-8 bytes of plain text into Base58 and decodes Base58 input back to UTF-8 text. Choose the Bitcoin alphabet for strings that use 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz, or the Flickr alphabet for strings that use 123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ. The decoder rejects characters that are not present in the selected alphabet, reports bytes that are not valid UTF-8 text, and preserves leading zero bytes with the first alphabet character.

Base58 is commonly seen in cryptocurrency addresses and keys, peer-to-peer content identifiers, short links, and other compact tokens that need to stay URL-friendly and human-readable. This page performs raw Base58 conversion only; it does not add or verify Base58Check version bytes, checksums, wallet formats, signatures, encryption, or address validity. Do not treat a successful decode as proof that a cryptocurrency address, private key, or other security-sensitive value is valid or safe to use.


Code

Supported Alphabets

This Base58 Encoder And Decoder supports two common alphabets:

Choose Bitcoin for most cryptocurrency and multibase examples, or Flickr for Flickr-style short URL values.

Bitcoin: 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz

Flickr: 123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ


Books

References