Base64 is the encoding almost everyone knows, but it's not the only one, and using it where it doesn't belong causes real problems: broken URLs, ambiguous cryptocurrency addresses, identifiers that need to be dictated over the phone and end up causing confusion. Each encoding exists because it solves a specific limitation the others don't cover. The multi-base encoder on this site runs all of them in your browser.
They all solve the same base problem
All these encodings turn binary data into printable text, because many systems (email, URLs, JSON) only reliably guarantee transporting text, not arbitrary binary bytes. The difference lies in which characters each one uses and why that choice matters depending on the context.
Base64: the general-purpose option
It uses 64 characters (A-Z, a-z, 0-9, + and /) and is the standard encoding for embedding binary data in text: email attachments and images embedded in HTML or CSS. Its problem: / can break a URL or a file name, and text search tools treat + as a word break (RFC 4648, section 3.4). The base64url variant in the same RFC (section 5) replaces + with - and / with _.
Base32: when it has to be dictated or typed by hand
It uses 32 characters: A-Z and 2-7. RFC 4648 notes that its alphabet leaves out 0 and 1 because they are easily confused with O, I and L, and that it is meant to be handled by humans. It is longer than Base64 for the same data (5 bits per character instead of 6), but easier to transcribe without errors. The secret keys for two-factor authentication (TOTP) are encoded in Base32, as described in the Google Authenticator key URI format.
Base58: the one Bitcoin chose (and why)
Base58 converts the whole number to base 58, using an alphabet without 0, O, I or l. Bitcoin and other cryptocurrencies use it for addresses, because one misread character can send funds to a different address. The original comment in Bitcoin's source (base58.h) gives these reasons, quoted in the Bitcoin Wiki: 0, O, I and l look alike in some fonts; non-alphanumeric characters make a string less readily accepted as an identifier; email may not break the line when there is no punctuation; and double-clicking doesn't select the whole string when it contains + or /.
Base85: maximum density at the cost of readability
It uses 85 symbols and encodes every 4 bytes in 5 characters, compared with 3 bytes in 4 characters for Base64. That makes the output shorter, at the cost of symbols that are less comfortable to read or type by hand. This encoder's alphabet is the one from RFC 1924, which was proposed to represent IPv6 addresses in fewer characters.
Hex and URL encoding: special cases
Hex represents each byte as two digits (0-9, A-F). It is less compact than Base64, but it is common for hashes, CSS colors and binary values during debugging, because each byte reads directly. URL encoding is not a general binary-to-text encoding: it only escapes characters with special meaning inside a URL, such as spaces, & and ?.
How to use the multi-base encoder
- Type or paste the text you want to encode or decode.
- Choose the format: Base64, Base32, Base58, Base85, Hex, URL or HTML.
- Press Encode or Decode. The result appears in the output box.
You can do it for free with the multi-base encoder on this site, which processes everything in your browser.
How to choose quickly
- You're embedding it in HTML, JSON or an email: Base64.
- Someone has to type it or read it aloud: Base32.
- It's a cryptocurrency address or an identifier that can't be misread: Base58.
- You need maximum compactness and readability doesn't matter: Base85.
- You need to represent bytes directly and debuggably: Hex.
- You're putting the value inside a URL: URL encoding.
Frequently asked questions
Which one is more secure? None of them is encryption: all are reversible without a key and only change how the data is represented. They don't protect it.
Why does Base64 sometimes break a URL? Because / is problematic in URLs and file names. The base64url variant replaces + with - and / with _.
Does Bitcoin use Base64? No. Legacy addresses use Base58Check, and addresses starting with bc1 use Bech32, a checksummed encoding described in BIP-173.
Is my text processed on any server? No. Encoding and decoding happen in your browser, and the tool does not send the text to any server.
Encode and decode in Base64, Base32, Base58, Base85, Hex, URL or HTML for free with the multi-base encoder, 100% in your browser.