A Base58 calculator workflow
Below is a workflow that converts the bytes 00112233445566778899AABBCCDDEEFF and the string "Hello NodeCrypto!" into Base58 strings. It uses the Bitcoin alphabet, and you can switch to another format in the node properties.
Press the "Open in app" button below to run it yourself!

base58-calculator.ncw Open in app Download .ncw
How Base58 works, and its variants
In the workflow output, the 16 bytes 00112233445566778899AABBCCDDEEFF become 1UoWww8DGaVGLtea7zU7p (21 characters), and "Hello NodeCrypto!" becomes gTazoqFhrJTKqzzuATPH9MS (23 characters). Compared with the results in the Base64 calculator post, a few things stand out. There is no = padding at the end, there are no symbols such as + or /, and the first result starts with the digit 1. Switch the same bytes to the Flickr alphabet and you get 1tNvWW8dgzugkTDz7Zt7P: the digits stay the same, but the letters change. Let's look at where each of these differences comes from.
What is Base58?
Base58 is an encoding that represents any byte array using only 58 letters and digits, leaving out the ones that are easy to confuse. The easiest way to think of it is the 64 Base64 characters minus these six:
- The digit
0and the capitalO: in many fonts they are almost impossible to tell apart. - The capital
Iand the lowercasel: these also blend in with the digit1. - The symbols
+and/: they are not letters or digits, so a double-click does not select the whole string, and they cause trouble in URLs and file names.
Satoshi Nakamoto designed Base58 for Bitcoin so that addresses would be easy for people to read and copy. A comment in the Bitcoin source code gives the same reasons: dropping characters that look alike on screen cuts down on misreadings, using only letters and digits means a double-click selects the whole value, and without punctuation an email client is less likely to break the string across lines.
One thing to know up front is that Base58 has no official specification such as an RFC. Base64 is defined by RFC 4648, but for Base58 the Bitcoin Core implementation serves as the de facto standard. A specification draft was once submitted to the IETF, but it never became an RFC. That is why the alphabet options in NodeCrypto are labelled by where they are used, such as Bitcoin (BTC / IPFS), instead of by a specification number.
And just like Base64, Base58 is a way of writing data, not encryption. There is no key, so anyone can recover the original bytes. A Bitcoin private key written as a Base58 WIF string is the private key itself and must never be shared.
Why Base58 instead of Base64?
If Base64 already exists, why use something else? Base64 is designed for data that machines exchange, while Base58 is designed for short identifiers that people look at, read and copy by hand. Picture writing a wallet address on paper, reading it out over the phone or printing it under a QR code: not having to tell 0 from O alone removes a lot of mistakes.
That is why Base58 is used mostly for identifiers in cryptocurrencies and distributed systems:
- Bitcoin: legacy addresses starting with
1or3, the WIF format for private keys, and BIP32 extended keys (xpub...,xprv...) - IPFS: CIDv0 content addresses starting with
Qm... - Solana: account addresses and transaction signatures
- Decentralized identifiers (DIDs): public keys with the Multibase prefix
z, as indid:key:z6Mk...
There is a price, though. The size is about 1.37 characters per byte, slightly more than Base64 (about 1.33) and much less than hexadecimal (2). The bigger drawback is how it is computed. As the next section shows, Base58 treats the whole input as one big number, so the time it takes grows with the square of the input length. That is no problem for addresses and keys of a few dozen bytes, but for large data such as files or images, Base64 is the better choice.
Dividing a big number by 58
Base64 could pick characters by cutting the bits into 6-bit pieces, because 64 is 2⁶. But 58 is not a power of two, so the bits cannot be cut evenly. Instead, Base58 reads the whole byte array as one big-endian integer and rewrites that number in base 58. It is the same idea as converting the decimal 1234 to hexadecimal by dividing by 16 again and again. Here is how the string "Hi" becomes 6Wc.

- The ASCII bytes of "Hi" are
0x48 0x69. - Read together as one number, the two bytes are
0x4869, or 18537 in decimal. - 18537 divided by 58 is 319, remainder 35.
- 319 divided by 58 is 5, remainder 29.
- 5 divided by 58 is 0, remainder 5. The quotient is now 0, so we stop.
- Reading the remainders backwards from the last one gives 5, 29, 35. In the alphabet table, index 5 is
6, index 29 isWand index 35 isc.
To check: 5 × 58² + 29 × 58 + 35 = 16820 + 1682 + 35 = 18537, the original number. Decoding runs the calculation in reverse: it turns each character into its index, then from the left repeats "value so far × 58 + next index", and finally turns the result back into bytes.
The Bitcoin alphabet is 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz. The digits 1 to 9 are indexes 0 to 8, the capitals are 9 to 32 (without I and O), and the lowercase letters are 33 to 57 (without l). Because it follows ASCII order, sorting Base58 strings of the same length alphabetically also sorts them by numeric value.
This approach gives Base58 two properties that Base64 does not have:
- The output length depends on the value. With Base64 the output length follows from the input length alone, but with Base58 it depends on how big the number is. For example, 16 bytes of
0xFFbecomeYcVfxkQb6JRzqk5kF2tNLv(22 characters), while the example value without its first0x00byte, 15 bytes, becomes 20 characters. - One input byte affects the whole output. In Base64 each 3-byte group maps to its own 4 characters, so changing a byte near the start only changes characters near the start. In Base58 the whole input is one number, so changing any byte changes most of the characters. This is also why you cannot cut out part of a Base58 string and decode it on its own.
Leading zero bytes and the digit 1
Turning bytes into a big number has one catch. As numbers, 00 00 48 69 and 48 69 are both 18537, because leading zeros do not change a number's value. Left alone, the two leading 0x00 bytes would disappear, and the decoder could not get the original length back.
So Base58 has a rule: for each leading 0x00 byte, add one copy of the alphabet's index-0 character (1 in the Bitcoin alphabet). When decoding, every leading 1 turns back into a 0x00 byte.

48 69→6Wc00 00 48 69→116Wc- The example's 16 bytes
00 11 22 ...→1+UoWww8DGaVGLtea7zU7p - Sixteen
0x00bytes →1111111111111111
This is exactly why the result at the top of this post starts with 1. It is also why every legacy Bitcoin address starts with 1: the version byte at the front of the address is 0x00.
Thanks to this rule, Base58 needs no padding. Base64 adds = to show how many bytes were left in the last group, but Base58 has no groups. It converts the whole number at once and counts the leading zeros separately, so no length information is lost.
Base58 formats
Base58 also comes in a few variants depending on where it is used. They differ in two main ways: the order in which the 58 characters are arranged (the alphabet) and whether a checksum is added to catch typos. As mentioned above, none of them is specified by an RFC; each project's implementation and documentation is the reference.
| Format | Defined by | Alphabet order | Checksum | Typical use |
|---|---|---|---|---|
| Bitcoin Base58 | Bitcoin Core | digits → uppercase → lowercase | none | IPFS CIDv0, Solana addresses and signatures |
| Base58Check | Bitcoin Core | digits → uppercase → lowercase | double SHA-256, 4 bytes | legacy Bitcoin addresses, WIF, BIP32 extended keys |
| Flickr Base58 | Flickr short URLs | digits → lowercase → uppercase | none | flic.kr short links |
| Ripple Base58 | XRP Ledger | its own order (rpshnaf39w...) |
yes | XRP addresses |
| Multibase base58btc | Multibase (prefix z) |
same as Bitcoin | none | DID did:key, IPFS CIDv1 |
The Bitcoin alphabet
This is the most widely used format, and it uses the alphabet described above. When people say "Base58" without further detail, this is usually what they mean. IPFS and Solana encode raw bytes with this alphabet and no checksum. For example, an IPFS CIDv0 is a SHA-256 multihash (0x12 0x20 + a 32-byte hash) written in Base58, which is why it always starts with Qm.
Base58Check (Bitcoin addresses)
Plain Base58 gives no way to notice that one character of an address was copied wrong, because the mistyped address still decodes to some other valid-looking value. For a payment address, that kind of mistake means lost money, so Bitcoin uses Base58Check, which adds a checksum before encoding.
- Join a version byte and the data. For a legacy address this is
0x00+ the public key hash (RIPEMD-160(SHA-256(public key)), 20 bytes). - Apply SHA-256 twice to the result of step 1 and take the first 4 bytes as the checksum.
- Append the 4-byte checksum to the result of step 1 and encode it in Base58.
Let's check this with the reward address of Bitcoin's very first block, the genesis block. Put 00 in front of the public key hash 62e907b15cbf27d5425399ebf6f0fb50ebb88f18 and apply SHA-256 twice, and the first 4 bytes are c29b7d93. Append them and encode the 25 bytes in Base58, and out comes the well-known address 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa. The receiver decodes the address and recomputes the checksum, so the chance of a random typo passing the check is only about 1 in 4.3 billion (2⁻³²).
For reference, newer Bitcoin addresses starting with bc1 (SegWit) use Bech32, defined in BIP 173, instead of Base58Check. It does not mix upper and lower case, which suits QR codes and reading aloud better, and it detects errors more reliably.
The Flickr alphabet
The photo-sharing service Flickr used Base58 for its flic.kr short links and chose an alphabet that puts lowercase letters before uppercase (123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ). It uses exactly the same 58 characters as the Bitcoin alphabet, only in a different order. The digits 1 to 9 sit at indexes 0 to 8 in both alphabets, so when the same bytes are encoded, the digits stay the same and only the letters change. The example's 16 bytes turn from 1UoWww8DGaVGLtea7zU7p into 1tNvWW8dgzugkTDz7Zt7P.
Also worth knowing: the Ripple alphabet and Multibase
The XRP Ledger (Ripple) uses its own order (rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz), with r at index 0 so that addresses start with r, and like Bitcoin it adds a checksum.
Where several encodings are mixed, Multibase puts one character in front of the string to say which format it is. In Multibase, Base58 with the Bitcoin alphabet starts with the prefix z. The Ed25519 public keys of the form z6Mk... that you often see in DID documents use this format.
Setting the Base58 format in NodeCrypto
In NodeCrypto, the Bytes to Base58 node produces Base58 strings. Double-click the node (or select it and press F4) to open the properties window, which has one setting.
- Alphabet: choose
Bitcoin (BTC / IPFS)orFlickr. The default isBitcoin (BTC / IPFS).
After changing the setting, press Apply & Close or Ctrl+Enter to apply it to the canvas, then run the workflow again to see the new result. Here are the two example inputs encoded with each alphabet.

Pick the setting that fits the job:
- IPFS, Solana and ordinary Base58 values:
Bitcoin (BTC / IPFS)(keep the default) - Matching a system that uses the Flickr alphabet, such as Flickr short links:
Flickr - DIDs or the Multibase format: in the Bytes to Multibase node, set
Multibase FormattoBase58BTC (prefix: z). For the example's 16 bytes this givesz1UoWww8DGaVGLtea7zU7p.
The Base58 to Bytes node, which goes the other way, has the same Alphabet setting. The Base64 to Bytes node could tell +// from -/_ by itself, but the two Base58 alphabets use the same characters in a different order, so the string alone does not reveal which one was used. This leads to an important pitfall: if you pick the wrong alphabet, you get the wrong bytes with no error. For example, decoding the Flickr string 1tNvWW8dgzugkTDz7Zt7P with the Bitcoin alphabet does not fail, because every character is valid; it simply returns completely different bytes. For formats without a checksum, always make sure you use the same alphabet as the encoder. On the other hand, if the string contains characters that are not in Base58, such as 0, O, I or l, the node raises an INVALID_BASE58_CHAR error and tells you which character is at fault.
There is no dedicated Base58Check node, but you can build one from existing nodes. Chain two Cryptographic Hash nodes (SHA-256) to hash twice, cut out the checksum with a Byte Slicer node (offset 0, length 4), append it to the original data with a Byte Concatenator node, and feed the result to a Bytes to Base58 node. Put in the genesis address values from above and you can see 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa for yourself.
To try it, open the workflow above in the app, change the alphabet of the Bytes to Base58 node in the first group to Flickr, and run it. The result changes to 1tNvWW8dgzugkTDz7Zt7P. Notice that the leading 1 stays the same: both alphabets have 1 at index 0.