Base58 Encode / Decode

Encodes and decodes Base58 (Bitcoin alphabet).

Base58 Encode / Decode converts text to and from Base58 using the Bitcoin alphabet, the same character set used for Bitcoin addresses and keys. Switch between encode and decode modes to turn a string into a Base58 representation or read it back into the original text. It is handy whenever you need a compact, copy-paste-safe string that avoids easily confused characters like 0, O, I, and l.

Common uses

  • Encode a UTF-8 string into a Base58 value using the Bitcoin alphabet
  • Decode a Base58 string back into its original text
  • Inspect or learn how Base58 differs from Base64 (no +, /, or = padding)
  • Produce short identifiers or tokens without characters that are ambiguous when read aloud or written down
  • Quickly sanity-check Base58 data while working with Bitcoin or BTC-related formats

FAQ

Is my data sent to a server?

No. Encoding and decoding run entirely in your browser using local JavaScript, and nothing you type is uploaded or stored on any server.

Which Base58 alphabet does this tool use?

It uses the Bitcoin alphabet: 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz. The digit 0 and the letters O, I, and l are intentionally excluded to avoid visual confusion.

What happens if I decode an invalid Base58 string?

Decoding fails with an error naming the first character that is not part of the Bitcoin Base58 alphabet. Leading and trailing whitespace is trimmed before decoding.

How are leading zero bytes handled?

Leading zero bytes in the input are encoded as leading '1' characters, and leading '1' characters decode back into zero bytes, matching standard Base58 behavior.

Does the tool support binary data or only text?

Input and output are treated as UTF-8 text: the string is encoded to bytes with TextEncoder and decoded back with TextDecoder, so it works with any text you can type or paste.

Related tools

  • Base32 Encode / Decode
  • Base62 Encode / Decode
  • Base64 Encode / Decode
  • Base64URL Encode / Decode
  • Binary ↔ Text
  • Char Codes
  • Hex ↔ Text
  • HTML Entity Encode / Decode