If you find this library useful, please consider a donation to show your support!

Paypal address:


Base58 is hosted by Please make sure you have added them to your gem sources.

$ sudo gem install base58


require 'rubygems'
require 'base58'

# Int to Base58
Base58.encode(12345) # => 4ER

# Base58 to Int
Base58.decode('A2Ph') # => 6639914

RDoc Documentation

You can view the rdoc documentation online.

Problems, Comments, Suggestions?

All of the above are most welcome.


Douglas F Shearer -

Test examples courtesy Fraser Speirs' Base58Encoder Objective-C class,