What is Base58 for?
Base58 rewrites bytes using 58 letters and digits. Compared with Base64, it drops the + and / signs, as well as the characters that are easily confused when read: zero, capital O, capital I and lower-case l. A code can be selected with a double click and copied by hand with fewer mistakes.
It was born with Bitcoin, to write addresses and keys; it also shows up in short identifiers and photo URLs.
The three alphabets
- Bitcoin: the digits 1 to 9, then upper-case letters, then lower-case letters. It is the most widespread.
- Flickr: the same characters, with lower case before upper case.
- XRP (Ripple): a shuffled order, in which the letter r stands for zero.
Base58Check
Base58Check appends to the data the first four bytes of a double SHA-256. When the box is ticked, the checksum is added during encoding and verified during decoding: a copying mistake is then almost always detected. The details show the version byte, the data and the checksum.
The tool checks how a code is written, not whether an account exists or a transaction is valid.
Limits
Base58 treats the data as a single large number: computing time grows with the square of the size. The tool accepts up to 10,000 bytes, which is plenty for keys, hashes and identifiers.
Frequently asked questions
Does Base58 encrypt my data?
No. It is a notation that anyone can decode. A private key written in Base58 is still a secret in plain sight.
Can I paste a private key here?
The calculation runs in your browser and nothing is sent. To be safe, still only handle a key that protects money on a secure device, preferably offline.
What do the 1s at the start of a code mean?
With the Bitcoin alphabet, each zero byte at the start of the data becomes a 1.
Why does the size not follow a fixed rule?
Because 58 is not a power of two. Expect about 37% more characters than bytes.