About the Base58 Encode/Decode
Convert text to Base58 or decode a Base58 string back to text using the Bitcoin Base58 alphabet. You'll meet Base58 in crypto wallets, IPFS hashes and short IDs, and encoding a few words here shows why Bitcoin addresses look the way they do.
The output changes as you type. If a character doesn't belong, a red message names it. The conversion happens on your device in the browser, so nothing you enter leaves it.
How Base58 encoding works
Unlike Base64 or Base32, Base58 doesn't cut the data into fixed groups of bits, because 58 isn't a power of two. Instead the UTF-8 bytes of your text are read as one very large number, which is divided by 58 again and again. Each remainder, from 0 to 57, picks a character from 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz, read from last to first.
Dividing a number throws away leading zeros, so zero bytes at the start are kept separately: each one becomes a '1' at the front of the result. Decoding reverses this, multiplying by 58 for each character and turning every leading '1' back into a zero byte.
The alphabet leaves out four characters that are easy to confuse in many fonts: zero (0), capital O, capital I and lowercase l. It also has no '+', '/' or '=' signs, so a Base58 string selects as one word when you double-click it and fits in a URL without escaping.
N = b₁ × 256ⁿ⁻¹ + b₂ × 256ⁿ⁻² + … + bₙ (the n bytes as one number) N = d₁ × 58ᵏ⁻¹ + d₂ × 58ᵏ⁻² + … + dₖ (each digit d picks one character) Leading zero bytes → one '1' each Length ≈ bytes × log(256) ÷ log(58) ≈ 1.37 × bytes
Assumptions and limits
- This is plain Base58 with no checksum. It doesn't create or verify Base58Check, the version-byte-plus-checksum format used for Bitcoin addresses and private keys.
- The decoder always reads the bytes as UTF-8 text. Addresses, hashes and keys are binary, so their decoded form is a jumble of symbols; the tool has no hex or byte view for them.
- Only the Bitcoin alphabet is supported. Systems that order the characters differently, such as the XRP Ledger or Flickr short links, won't decode to the right bytes.
- Decoding is case sensitive: 'a' and 'A' are different digits. Spaces or line breaks inside the string cause an "Invalid Base58 character" message, though spaces at either end are trimmed.
- Base58 needs big-number arithmetic, so it's slower than Base64 on very long text; it's meant for short values such as IDs, hashes and keys.
Worked examples
One capital letter changes the whole string
"Bitcoin" and "bitcoin" are both 7 bytes and both become 10 Base58 characters. Only the first byte differs, yet the outputs have nothing in common, because the bytes are converted as a single number rather than letter by letter.
Bitcoin → 3WyEDWjcVB bitcoin → 4jJc4sAwPs
Decoding a value and catching a typo
Choose Decode Base58 and paste 4AGQxayT6p: the output reads "Satoshi". If the value was copied by hand as 4AGQxay06p, with a zero in place of the capital T, the tool stops and shows Invalid Base58 character '0', because zero is not in the alphabet.
Why a Bitcoin address starts with 1
A classic Bitcoin address begins with a version byte of zero, which Base58 writes as a leading '1'. Decoding one here shows a 25-byte mix of symbols: the version byte, a 20-byte hash and a 4-byte checksum. The tool confirms every character is valid Base58 but doesn't check that the address itself is valid.
Sample Base58 conversions
Produced with the Bitcoin alphabet. The Base58 column decodes back to the text in the first column.
| Text | Bytes | Base58 |
|---|---|---|
| a | 1 | 2g |
| Ok | 2 | 73Y |
| abc | 3 | ZiCa |
| 2026 | 4 | 2HQa2Z |
| base58 | 6 | qzTiEHgB |
| naïve | 6 | wy5rC99n |
| Satoshi | 7 | 4AGQxayT6p |
How to use the Base58 Encode/Decode
- Pick a direction. Press Encode Base58 to convert text, or Decode Base58 to turn a Base58 string back into text.
- Enter the text or the Base58 value. Type in the left box; the result fills the Output Result box immediately, or a red message names the first invalid character.
- Copy the result. Press Copy above the output to place it on your clipboard, ready for your code, wallet notes or terminal.
Frequently asked questions
Why does Base58 leave out 0, O, I and l?
Because they look alike in many fonts, and a person copying a value by hand could swap them. Bitcoin's Base58 drops them, along with '+' and '/', so addresses are easier to read, type and check by eye.
Can this tool decode a Bitcoin address?
Only partly. It turns the address back into its raw bytes but shows them as text, so you'll see unreadable characters. It also doesn't check the Base58Check checksum, so it can't tell you whether an address is valid. Use a wallet or block explorer to validate an address before sending funds.
Why do I get "Invalid Base58 character '0'"?
Because the value contains a character outside the alphabet. Zero, capital O, capital I and lowercase l are not Base58 digits, and neither are spaces or symbols. The value may have been mistyped, or it may actually be Base64, which uses all of those. Check the character named in the message and correct it.
What is the difference between Base58 and Base64?
Base64 maps every 3 bytes to 4 characters, about 33% larger, and uses '+', '/' and '=' padding. Base58 is about 37% larger, has no padding or symbols and avoids look-alike characters, but needs slower big-number maths, so it's used for short values rather than files.
Is this the Base58 used by IPFS and Solana?
Yes, the alphabet is the same Bitcoin ordering that IPFS uses for its older Qm… content IDs and that Solana uses for addresses. Those values are binary, so decoding them here proves they're valid Base58 but shows symbols rather than readable text.
What do the leading 1s in a Base58 string mean?
Each '1' at the start stands for one zero byte at the start of the data. The big-number conversion would otherwise drop those zeros, so they're written separately. That's why classic Bitcoin addresses, whose first byte is zero, always begin with 1.
This tool runs entirely in your browser. What you enter or upload stays on your device and is never sent to our servers.