Base58 Encode
ED-40Paste text or hex bytes and click Base58 encode to get a string in the Bitcoin alphabet. Paste Base58 and click Base58 decode to get the original text or bytes.
Runs in your browser. Nothing is uploaded.
Text, hex bytes or Base58
Result
How to use it
- Paste your text or hex bytes into the input box.
- Under Encode input is, choose Text (read as UTF-8) or Hex bytes.
- Click Base58 encode. To go the other way, paste Base58, pick Text or Hex bytes for the output, and click Base58 decode.
- Copy the result or download it as a .txt file.
How the encoding works
The input is first turned into bytes: the UTF-8 bytes of your text, or the bytes you typed in hex. Those bytes are read as one large number and written in base 58, using the digits 1 to 9 and the letters A to Z and a to z without 0, O, I and l. Each leading zero byte is kept as a leading 1, so 00 00 61 survives a round trip.
What you get and what you do not
The output has no padding and no symbols, which makes it easy to read aloud or copy by hand. Only the Bitcoin ordering of the alphabet is offered. Other orderings give different text for the same bytes, so a string made elsewhere with another alphabet will not decode here. There is no checksum step on this page. Spaces inside Base58 text are ignored when decoding.
Error messages and what to do
| Message | What it means | Fix |
|---|---|---|
Invalid Base58 character | The text has a character outside the Base58 alphabet, often a 0, O, I or l. | Use the position in the message to find it and correct that character. |
Questions people ask
How do I encode a string to Base58?
Paste the string, leave Encode input as Text (UTF-8), and click Base58 encode. The tool converts the text to UTF-8 bytes and writes them with the Bitcoin alphabet. Choose Hex bytes instead if your input is already a list of bytes such as 48 65 6c 6c 6f.
Which alphabet does this Base58 encoder use?
It uses the Bitcoin alphabet: 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz. The ordering matters. A different Base58 alphabet maps the same bytes to different characters, so only strings made with this ordering will decode correctly here.
Why does Base58 leave out 0, O, I and l?
Those four characters look alike in many fonts, so Base58 drops them to reduce copying mistakes. That leaves 58 characters. The alphabet also has no + or / and no = padding, which keeps the result free of symbols.
What happens to leading zero bytes?
Each leading zero byte becomes one leading 1 in the output, and each leading 1 decodes back to a zero byte. Without that rule the zeros would vanish, because a number has no leading zeros. Hex input 00 00 61 therefore round trips exactly.
Can I decode Base58 back to text?
Yes. Paste the Base58, choose Text (UTF-8) as the decode output, and click Base58 decode. If the bytes are not valid UTF-8 text, such as a hash, pick Hex bytes to see them as hex instead.
Is Base58 the same as Base64?
No. Base64 uses 64 characters including + and /, and pads with =. Base58 uses 58 characters, has no padding and avoids look-alike letters. The Base58 result is a little longer for the same bytes, and the two outputs are not interchangeable.
About this tool
Encode turns the input into bytes, either the UTF-8 bytes of your text or the hex bytes you type, and writes them with the 58 character Bitcoin alphabet. Each leading zero byte becomes a leading 1. Decode reverses it and shows the bytes as text or as hex. Only the Bitcoin ordering is supported; other Base58 alphabets give different text for the same bytes. There is no checksum step here: for Base58Check use the Base58 Encoder and Decoder page. Everything runs in your browser and nothing is uploaded. Very long input works but slows down, because the whole input is treated as one large number.