Skip to main content

Base58 Encoder / Decoder

Base58 encoding with Bitcoin and Flickr alphabets.

Base58 encodes binary data using 58 characters chosen to avoid look-alikes (no 0, O, I, or l). The Bitcoin variant puts digits first then upper- and lower-case letters; the Flickr variant swaps the case order. Leading zero bytes in the input map to leading 1 characters (Bitcoin) or leading 1 (Flickr first char).