<p>Also you can use Cardano Serialization Lib <a href="https://github.com/Emurgo/cardano-serialization-lib" rel="nofollow noreferrer">https://github.com/Emurgo/cardano-serialization-lib</a></p>
<p>with the class Adress and the method Address.toBech32() :</p>
<pre><code>let HexAddress = &quot;00b9e79b67bc322d4d9b0a2d5449353e58f22aeea3bd349cdd363543fc4ec0b90c580c1091a8bc26989d288402ed015c1c747d5290698a15f4&quot;

console.log(Address.from_bytes(Buffer.from(HexAddress,&quot;hex&quot;)).to_bech32())
</code></pre>

CC BY-SA 4.0
2021-12-27T17:08:12.000Z
this is exactly what i was looking for. is there a way to use this library in vuejs?
Ofek Ron
CC BY-SA 4.0
2021-12-26T03:27:09.393Z
2021-12-29T23:03:33.190Z
2021-12-29T23:03:33.190Z
Alicia Basilio
<p>They are encoded in different formats as the followings:</p>
<p>Bech32 Format:</p>
<blockquote>
<p>addr_test1qzu70xm8hsez6nvmpgk4gjf48ev0y2hw5w7nf8xaxc658lzwczusckqvzzg630pxnzwj3pqza5q4c8r504ffq6v2zh6qgznxt7</p>
</blockquote>
<p>Hex Format:</p>
<blockquote>
<p>0b9e79b67bc322d4d9b0a2d5449353e58f22aeea3bd349cdd363543fc4ec0b90c580c1091a8bc26989d288402ed015c1c747d5290698a15f4</p>
</blockquote>
<p>IOHK provides an executable and haskell lib for that in this <a href="https://github.com/input-output-hk/bech32" rel="nofollow noreferrer">repo</a>.</p>
<p>To Hex,</p>
<pre><code>bech32 &lt;&lt;&lt; addr_test1qzu70xm8hsez6nvmpgk4gjf48ev0y2hw5w7nf8xaxc658lzwczusckqvzzg630pxnzwj3pqza5q4c8r504ffq6v2zh6qgznxt7
</code></pre>
<p>To Bech32,</p>
<pre><code>bech32 addr_test &lt;&lt;&lt; 00b9e79b67bc322d4d9b0a2d5449353e58f22aeea3bd349cdd363543fc4ec0b90c580c1091a8bc26989d288402ed015c1c747d5290698a15f4
</code></pre>

CC BY-SA 4.0
2021-12-26T00:15:46.103Z
2021-12-26T00:15:46.103Z
Archi - Pie Stake Pool
<p>lets say i have the following address for recieving funds:
addr_test1qzu70xm8hsez6nvmpgk4gjf48ev0y2hw5w7nf8xaxc658lzwczusckqvzzg630pxnzwj3pqza5q4c8r504ffq6v2zh6qgznxt7</p>
<p>when i try and get the wallet address  (by using Berry-Pool nami wallet) i get:
00b9e79b67bc322d4d9b0a2d5449353e58f22aeea3bd349cdd363543fc4ec0b90c580c1091a8bc26989d288402ed015c1c747d5290698a15f4</p>
<p>how can i go from 00b9e79b67bc322d4d9b0a2d5449353e58f22aeea3bd349cdd363543fc4ec0b90c580c1091a8bc26989d288402ed015c1c747d5290698a15f4
to addr_test1qzu70xm8hsez6nvmpgk4gjf48ev0y2hw5w7nf8xaxc658lzwczusckqvzzg630pxnzwj3pqza5q4c8r504ffq6v2zh6qgznxt7</p>
<p>Thank you</p>

<wallet><smart-contract><address><nami-wallet><decode>
Nami wallet address format to addr_test1 format
# Nami wallet address format to addr_test1 format

(Asked by: username_0 on 2021-12-25)

lets say i have the following address for recieving funds:
addr\_test1qzu70xm8hsez6nvmpgk4gjf48ev0y2hw5w7nf8xaxc658lzwczusckqvzzg630pxnzwj3pqza5q4c8r504ffq6v2zh6qgznxt7

when i try and get the wallet address (by using Berry-Pool nami wallet) i get:
00b9e79b67bc322d4d9b0a2d5449353e58f22aeea3bd349cdd363543fc4ec0b90c580c1091a8bc26989d288402ed015c1c747d5290698a15f4

how can i go from 00b9e79b67bc322d4d9b0a2d5449353e58f22aeea3bd349cdd363543fc4ec0b90c580c1091a8bc26989d288402ed015c1c747d5290698a15f4
to addr\_test1qzu70xm8hsez6nvmpgk4gjf48ev0y2hw5w7nf8xaxc658lzwczusckqvzzg630pxnzwj3pqza5q4c8r504ffq6v2zh6qgznxt7

Thank you

**Tags:** wallet, smart-contract, address, nami-wallet, decode

---

## 2 answers

### Answer by username_1 on 2021-12-26. Score: 2 | Accepted answer

Also you can use Cardano Serialization Lib https://github.com/Emurgo/cardano-serialization-lib
with the class Adress and the method Address.toBech32() :
let HexAddress = "00b9e79b67bc322d4d9b0a2d5449353e58f22aeea3bd349cdd363543fc4ec0b90c580c1091a8bc26989d288402ed015c1c747d5290698a15f4"

console.log(Address.from_bytes(Buffer.from(HexAddress,"hex")).to_bech32())

> **Comments:**
> **username_0**: this is exactly what i was looking for. is there a way to use this library in vuejs?  

---

### Answer by username_2 on 2021-12-26. Score: 1

They are encoded in different formats as the followings:
Bech32 Format:

addr_test1qzu70xm8hsez6nvmpgk4gjf48ev0y2hw5w7nf8xaxc658lzwczusckqvzzg630pxnzwj3pqza5q4c8r504ffq6v2zh6qgznxt7

Hex Format:

0b9e79b67bc322d4d9b0a2d5449353e58f22aeea3bd349cdd363543fc4ec0b90c580c1091a8bc26989d288402ed015c1c747d5290698a15f4

IOHK provides an executable and haskell lib for that in this repo.
To Hex,
bech32 <<< addr_test1qzu70xm8hsez6nvmpgk4gjf48ev0y2hw5w7nf8xaxc658lzwczusckqvzzg630pxnzwj3pqza5q4c8r504ffq6v2zh6qgznxt7

To Bech32,
bech32 addr_test <<< 00b9e79b67bc322d4d9b0a2d5449353e58f22aeea3bd349cdd363543fc4ec0b90c580c1091a8bc26989d288402ed015c1c747d5290698a15f4


---

