can someone tell me how bitcoin hash a btc address?

when you try to hash it on this website, 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


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

1 Answer 1


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

1JKRgG4F7k1b7PbAhQ7heEuV5aTJDpK9TS becomes 00bdf63990d6dc33d705b756e13dd135466c06b3b55850d39d


  • 00 -> mainnet
  • bdf63990d6dc33d705b756e13dd135466c06b3b5 -> hash160 of public key
  • 5850d39d -> checksum
  • thank you sir, this really help me out Dec 27, 2022 at 15:32
  • but how can i convert the address to hexadecimel? Dec 27, 2022 at 20:14
  • Quite simple on this tool appdevtools.com/base58-encoder-decoder. You can also create an python file, import base58, then print(base58.b58decode(address).hex())
    – phantom
    Dec 28, 2022 at 2:10
  • Whoaaaa thankk youu sirrrr, i really appreciate thisss....thankss a lootttt Dec 28, 2022 at 2:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.