# byte_array.to_hex · Rell standard library · Chromia Docs (concept)

> pure function to_ hex(): text Returns a hexadecimal text representation of this byte_array . Inverse of byte_array.from_hex(text) . Since 0.9.0

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/byte_array/to_hex/

FUNCTION

# byte\_array.to\_hex

```signature
pure function to_hex(): text
```

Returns a hexadecimal `text` representation of this `byte_array`.

Inverse of `byte_array.from_hex(text)`.

Since 0.9.0

[View this page on docs.chromia.com](https://docs.chromia.com/pages/rell-stdlib/-rell%20-system%20-library/%5Broot%5D/byte_array/to_hex.html)Generated API reference, mirrored from the live docs
