Sign up free

Base32 and Base58 Encoder and Decoder

Encode and decode Base32, Base58, Ascii85, Z85 and Base16, from text or raw hex bytes.

About Base32 and Base58 Encoder

This Base32 decoder and encoder covers the Base formats that Base64 doesn't. Base32, as defined in RFC 4648, is used for the secret keys behind authenticator app codes, and Base32hex is its variant that keeps sort order. Base58 with the Bitcoin alphabet appears in wallet addresses and short IDs, because it leaves out look-alike characters such as 0, O, I and l. Ascii85 turns up inside PDF and PostScript files, Z85 comes from ZeroMQ, and Base16 is plain hex.

The input can be text or raw bytes written as hex, so a key or a hash can be encoded exactly as it is. Decoding gives the result back as text or as hex, whichever you need. For Base64 and URL-safe Base64, use the Base64 tool. Everything runs in your browser, and nothing is uploaded. A hash made with the Hash Generator can be pasted here as hex and encoded byte for byte.

How to use Base32 and Base58 Encoder

  1. 1
    Pick the encoding

    Base32, Base32hex, Base58, Ascii85, Z85 or Base16.

  2. 2
    Choose encode or decode

    Encode text or hex bytes, or decode back to text or hex.

  3. 3
    Paste your input

    Type text, or give the bytes as hex.

  4. 4
    Copy the result

    Copy the encoded string, or the decoded text or hex.

Why use Cubfile for this

  • Six encodings

    Base32, Base32hex, Base58, Ascii85, Z85 and Base16.

  • Text or bytes

    Work with readable text, or with exact bytes written in hex.

  • Standard alphabets

    RFC 4648 for Base32 and the Bitcoin alphabet for Base58.

  • Nothing uploaded

    Runs in your browser, and offline once the page has loaded.

FAQ

Base32 and Base58 Encoder: questions and answers

What is Base32 encoding used for?
Mostly for secrets people type or scan, such as the keys behind authenticator app codes (TOTP), because it uses only capital letters and the digits 2 to 7.
What's the difference between Base58 and Base64?
Base58 drops 0, O, I, l, + and /, so the result has no look-alike characters or symbols, which suits Bitcoin addresses and IDs people copy by hand. Base64 is a little more compact.
Can I decode a Bitcoin address to hex?
Yes. Choose Base58, decode, and ask for hex output to see the raw bytes, including the version byte at the start and the checksum at the end.
How are Ascii85 and Z85 different?
Both turn 4 bytes into 5 characters. Ascii85 is the Adobe version used in PDF and PostScript, while Z85 uses a character set that can go inside strings in source code without escaping.
Where do I encode or decode Base64 instead?
In its own tool, Base64 Encode and Decode, which handles text and files and has a URL-safe option.
Share Base32 and Base58 Encoder with a friendIt runs in any browser, and they can try it without signing up.

Related tools

TXT Base64 Encode and DecodeEncode and decode Base64 text and files.
HASH Hash GeneratorGet MD5, SHA-1, SHA-256, SHA-512 and SM3 hashes of text in one go.
TIME Unix Timestamp ConverterConvert Unix timestamps to dates and back, in your time zone and UTC.
U+UNI Unicode ConverterConvert text to and from \u escapes, &#; codes, U+ points and UTF-8 bytes.
AES AES Encrypt and DecryptEncrypt or decrypt text with AES in GCM, CBC or CTR mode.
&;HTML HTML Entity Encoder/DecoderEscape text into HTML entities, or turn entities back into text.
JWT JWT DecoderDecode a JSON Web Token’s header and payload and check its expiry and signature.
01BIN Number Base ConverterConvert numbers between binary, octal, decimal, hex and any base up to 36.