Base58: Bitcoin Alphabet, Base58Check and Checksum Failures

Open Tool Base58 Encoder and Decoder

How it differs from Base64

Base58 keeps 58 characters and drops 0, uppercase O, uppercase I and lowercase l because they look alike. It also drops +, / and =, which break double-click selection and copy-paste. The result is a string you can double-click, that a chat app will not truncate as a link, and that survives line wrapping. Bitcoin addresses, Ripple addresses, some IPFS identifiers and short links use it. The cost is that 58 is not a power of two, so conversion loops over division and remainder and is harder to implement than Base64.

Three alphabets

The Bitcoin alphabet is 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz, the familiar order without 0OIl. Ripple uses a different ordering, so identical bytes produce different strings. Flickr uses yet another order and is common in short links. Choosing the wrong alphabet does not raise an error; it silently decodes to garbage, because each table can mathematically decode something.

How Base58Check adds a checksum

Base58Check appends four check bytes: hash the payload with SHA-256 twice, take the first four bytes, append them, then Base58-encode the whole thing. On decode, the last four bytes are recomputed and compared. A mismatch means a character was mistyped. Bitcoin addresses starting with 1 are exactly that: a version byte plus a hash, wrapped in Base58Check.

Steps and troubleshooting

  1. Choose the direction, then the alphabet. On decode the alphabet is decisive.
  2. Set input format to text or hex bytes. Getting this wrong guarantees unreadable output.
  3. Enable the Base58Check checksum when needed; the tool appends and verifies it for you.
  4. Group output inserts spaces at fixed intervals for manual comparison; use line-by-line mode for bulk data.

A failed checksum usually means O versus 0 or I versus l confusion, or a dropped chunk of the address, since Base58Check reacts sharply to single-character errors. Garbled decode has only two common causes: the wrong alphabet, or the wrong input format treating text as hex. Also remember that leading zero bytes encode as leading 1s, and that mapping must be restored on decode or the result comes out several bytes short.

⏫︎