Skip to content
Jellykit

Base58, Base62 & Base85 Codec

Encode and decode Base58 (Bitcoin alphabet), Base62, Ascii85 and Z85, from text or raw hex bytes, in your browser.

  • Runs on your device
Loading tool

About Base58, Base62 & Base85 Codec

Some systems need binary data written in a compact alphabet that Base64 does not suit. Base58 drops the characters people misread (0, O, I and l) and is how Bitcoin addresses and many content identifiers are written. Base62 keeps only letters and digits, which is common for short links and database IDs. Ascii85 and Z85 pack every four bytes into five characters, so they are about 7% shorter than Base64.

Type or paste text to encode it, or switch to Decode. Encode raw bytes by writing them in hex, and see decoded bytes as hex when they are a key or a hash rather than words.

How it works

  1. Encoding reads your input as UTF-8 text, or as bytes if you choose hex, and writes those bytes in the alphabet you pick.
  2. Base58 and Base62 treat the bytes as one large number and write it in base 58 or 62. Each leading zero byte becomes one leading zero digit, as Bitcoin does, so nothing is lost.
  3. Ascii85 writes each group of four bytes as five characters from ! to u, with z standing for four zero bytes. Z85 does the same with ZeroMQ’s alphabet of printable characters that are safe in source code.
  4. Decoding ignores spaces and line breaks, stops at the first character outside the alphabet and tells you where it is.

Questions

Is this Base58Check, with the checksum Bitcoin addresses carry?

No. This is plain Base58 in the Bitcoin alphabet. Decoding an address gives you the version byte, the payload and the four checksum bytes as they are; the checksum is not verified or added.

Why is Base58 limited to 16 KB?

Base58 and Base62 treat the whole input as one number, so the work grows with the square of its length. They are meant for keys and identifiers. For larger data, Ascii85 and Z85 work in fixed blocks and accept up to 5 MB.

Why does Z85 reject my text?

The ZeroMQ specification only defines Z85 for data whose length is a multiple of four bytes, and this tool follows it rather than inventing padding. Add bytes, or use Ascii85, which handles any length.

Which Base62 alphabet should I choose?

There is no single standard. Many libraries put capitals before small letters (0–9, A–Z, a–z), others the reverse. If a decoded value looks wrong, try the other order.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.