Base58 to Hex (Base16) Converter

Paste a Base58 string, such as a Bitcoin address, and read the bytes inside it as hex.

FluffyShield Protected workspace
FluffyShield

Isolated workspace: other page scripts can't read your files. How FluffyShield works

Free · No upload · No sign-up · No usage quotas

Why is there no 0 or O in a Bitcoin address?

Its alphabet leaves out 0, O, I and l, four characters easily taken for others, so a misreading that lands on one of them is refused.

How the string is read
  1. Turn each 1 at the front into a zero byte, bytes being the small numbers data is stored as
  2. Read the rest as one large number in base 58
  3. Write that number's bytes in hex

What it does

The checksum isn't tested

Change the address's last letter to b and it still decodes, to 25 bytes whose checksum no longer adds up.

One unbroken line

A space or a line break stops it as surely as a 0 does, so join a wrapped string before you paste it.

Limits It shows what's inside a string. It can't tell you whether an address belongs to anyone.

Copying an address off paper

Someone reads you a Bitcoin address down the phone, or you copy one from a printed invoice: 34 characters of capitals, small letters and digits, such as 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa. Is that an O or a zero? A capital I, a small l, or a 1?

With this alphabet you rarely have to ask. Base58 is the 62 letters and digits less four of them, and the four it leaves out are the four that cause those arguments.

0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz

Letters and digits

58 characters are left. Each of the four struck out could pass for another character at a glance. How we checked

What leaving out four characters buys

The people who wrote Bitcoin explained the choice in a comment in its code. They didn't want 0, O, I and l, which look the same in some typefaces, so that nobody could make two addresses that look identical but aren't. They also left out the + and / of Base64, so that double-clicking an address selects all of it and an email program has no punctuation to break the line at.

Read the 1 at the start of our address as a small l, and the converter stops with "Invalid Bitcoin Base58 character. Whitespace, 0, O, I and l are not in this alphabet."

The 25 bytes inside the address

Decoded, the address is 25 bytes, 0062E907B15CBF27D5425399EBF6F0FB50EBB88F18C29B7D93. Base58 reads the whole string as one large number, and a number can't start with zeros, so each zero byte at the front is written as a 1 instead. That's the 00 at the start here, and the 1 at the start of the address. Bitcoin calls it the version byte.

The next 20 bytes say which key the money is locked to, and the last 4 are a checksum worked out from the rest. That checksum is how a wallet can catch a mistyped address.

Any string in Bitcoin's alphabet goes through these steps the same way as the address above. The other settings are in FluffyBench's Base encoder and decoder.

  1. Paste the whole string into the Input box.

  2. Read the bytes in the Base16 box. A phone has it under Result.

    The Base16 box holding 0062E907B15CBF27D5425399EBF6F0FB50EBB88F18C29B7D93.
    The Base16 box holding 0062E907B15CBF27D5425399EBF6F0FB50EBB88F18C29B7D93.

When hex isn't what you need

You want the bytes as Base64, or you need to turn hex into Base58

Base encoder and decoder

Its From and To lists take Bitcoin Base58 on either side, with Base16, Base32, Base64 and Adobe Ascii85 on the other.

The string is a number written in another base, not a run of bytes

FluffyBench Number base converter

It treats what you type as one whole number and moves it between binary, octal, decimal and hex.

Search FluffyBench