<p>Yes, per the <a href="https://staging.plutus.iohkdev.io/doc/haddock/plutus-tx/html/PlutusTx-Prelude.html#t:BuiltinByteString" rel="nofollow noreferrer">definition</a>, <code>BuiltinByteString</code> derives <code>Show</code>, so you can write <code>show bbs</code>, where <code>bbs</code> is your variable, and it will convert your <code>BuiltinByteString</code> into a <code>String</code></p>

CC BY-SA 4.0
2021-10-13T14:07:01.513Z
Thanks for pointing this out!
lambda
CC BY-SA 4.0
2021-10-13T13:38:12.873Z
2021-10-13T13:38:12.873Z
Mateus
<p>Is there a way to convert <code>BuiltinString</code> or <code>BuiltinByteString</code> to <code>String</code> ?</p>
<p>There are these functions in the module <code>PlutusTx.Builtins.Class</code></p>
<pre><code>stringToBuiltinByteString :: String -&gt; BuiltinByteString

stringToBuiltinString :: String -&gt; BuiltinString
</code></pre>
<p>Are there functions to perform the inverse operation?</p>

<plutus>
How to convert BuiltinString or BuiltinByteString to String?
# How to convert BuiltinString or BuiltinByteString to String?

(Asked by: username_0 on 2021-10-13)

Is there a way to convert BuiltinString or BuiltinByteString to String ?
There are these functions in the module PlutusTx.Builtins.Class
stringToBuiltinByteString :: String -> BuiltinByteString

stringToBuiltinString :: String -> BuiltinString

Are there functions to perform the inverse operation?

**Tags:** plutus

---

## 1 answers

### Answer by username_1 on 2021-10-13. Score: 2 | Accepted answer

Yes, per the [definition](https://staging.plutus.iohkdev.io/doc/haddock/plutus-tx/html/PlutusTx-Prelude.html#t:BuiltinByteString), `BuiltinByteString` derives `Show`, so you can write `show bbs`, where `bbs` is your variable, and it will convert your `BuiltinByteString` into a `String`

> **Comments:**
> **username_0**: Thanks for pointing this out!  

---

