<p>To get the same result you must decode the address, which means convert the base58 to hexadecimal.</p>
<p><strong>1JKRgG4F7k1b7PbAhQ7heEuV5aTJDpK9TS</strong> becomes <strong>00bdf63990d6dc33d705b756e13dd135466c06b3b55850d39d</strong></p>
<p>Where:</p>
<ul>
<li>00 -&gt; mainnet</li>
<li><strong>bdf63990d6dc33d705b756e13dd135466c06b3b5</strong> -&gt; hash160 of
public key</li>
<li>5850d39d -&gt; checksum</li>
</ul>

CC BY-SA 4.0
2022-12-27T15:32:00.097Z
thank you sir, this really help me out
just.callme.client
CC BY-SA 4.0
2022-12-27T20:14:04.600Z
but how can i convert the address to hexadecimel?
just.callme.client
CC BY-SA 4.0
2022-12-28T02:10:31.340Z
Quite simple on this tool https://appdevtools.com/base58-encoder-decoder. You can also create an python file, import base58, then print(base58.b58decode(address).hex())
phantom
CC BY-SA 4.0
2022-12-28T02:16:47.907Z
Whoaaaa thankk youu sirrrr, i really appreciate thisss....thankss a lootttt
just.callme.client
CC BY-SA 4.0
2022-12-27T15:08:18.287Z
2022-12-27T15:08:18.287Z
phantom
<p>can someone tell me <strong>how bitcoin hash a btc address?</strong></p>
<p>when you try to hash it on <a href="https://bitcointools.site/tool/address-to-hash" rel="nofollow noreferrer">this website</a>, you will get the same result as down below</p>
<pre><code>Bitcoin Address : 1JKRgG4F7k1b7PbAhQ7heEuV5aTJDpK9TS
Result (Hash 160) : bdf63990d6dc33d705b756e13dd135466c06b3b5
</code></pre>
<p>but when i convert the address to ripemd160,  i got a completely different result</p>
<pre><code>3da397753d32cea0858334e36fc58ae53f8c2529
</code></pre>
<p>so <strong>how do i get the same result as the first one?</strong></p>

<address><hash><p2sh>
how to hash a bitcoin address for transactions?
just.callme.client
# how to hash a bitcoin address for transactions?

(Asked by: username_0 on 2022-12-27)

can someone tell me **how bitcoin hash a btc address?**

when you try to hash it on [this website](https://bitcointools.site/tool/address-to-hash), you will get the same result as down below

```
Bitcoin Address : 1JKRgG4F7k1b7PbAhQ7heEuV5aTJDpK9TS
Result (Hash 160) : bdf63990d6dc33d705b756e13dd135466c06b3b5

```

but when i convert the address to ripemd160, i got a completely different result

```
3da397753d32cea0858334e36fc58ae53f8c2529

```

so **how do i get the same result as the first one?**

**Tags:** address, hash, p2sh


---

## 1 answers

### Answer by username_1 on 2022-12-27. Score: 3 | Accepted answer

To get the same result you must decode the address, which means convert the base58 to hexadecimal.

**1JKRgG4F7k1b7PbAhQ7heEuV5aTJDpK9TS** becomes **00bdf63990d6dc33d705b756e13dd135466c06b3b55850d39d**

Where:

* 00 -> mainnet
* **bdf63990d6dc33d705b756e13dd135466c06b3b5** -> hash160 of
  public key
* 5850d39d -> checksum

> **Comments:**
> **username_0**: thank you sir, this really help me out  
> **username_0**: but how can i convert the address to hexadecimel?  
> **username_1**: Quite simple on this tool https://appdevtools.com/base58-encoder-decoder. You can also create an python file, import base58, then print(base58.b58decode(address).hex())  
> **username_0**: Whoaaaa thankk youu sirrrr, i really appreciate thisss....thankss a lootttt  

---

