<p>The encoding is called Bech32.</p>
<p>I suspect that <a href="https://github.com/input-output-hk/cardano-addresses" rel="nofollow noreferrer">cardano-addresses</a> can do this conversion.</p>

CC BY-SA 4.0
2022-09-14T09:08:23.883Z
2022-09-14T09:08:23.883Z
Erik de Castro Lopo
<p>You can do it with the bech32 command (which comez in the cardano-wallet package, if you don't already have it):</p>
<p><code>bech32 pool &lt;&lt;&lt; &lt;hex_pool_id&gt;</code></p>

CC BY-SA 4.0
2022-09-15T05:36:53.950Z
2022-09-15T05:36:53.950Z
George - APEX Stake Pool
<p>I want to convert the hash of a pool in hexadecimal to <code>pool1...</code> format</p>
<p>How can I do this?</p>

<stake-pool><hash>
How can I convert the hex hash ID of a stake pool to "pool1..." format in Javascript or TypeScript?
# How can I convert the hex hash ID of a stake pool to "pool1..." format in Javascript or TypeScript?

(Asked by: username_0 on 2022-09-14)

I want to convert the hash of a pool in hexadecimal to `pool1...` format

How can I do this?

**Tags:** stake-pool, hash

---

## 2 answers

### Answer by username_1 on 2022-09-14. Score: 3 | Accepted answer

The encoding is called Bech32.

I suspect that [cardano-addresses](https://github.com/input-output-hk/cardano-addresses) can do this conversion.


---

### Answer by username_2 on 2022-09-15. Score: 1

You can do it with the bech32 command (which comez in the cardano-wallet package, if you don't already have it):

`bech32 pool <<<`


---

