# text.to_bytes · Rell standard library · Chromia Docs (concept)

> pure function to_ bytes(): byte_array Converts this text to an array of UTF-8 encoded bytes. Since 0.9.0

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/text/to_bytes/

FUNCTION

# text.to\_bytes

```signature
pure function to_bytes(): byte_array
```

Converts this text to an array of UTF-8 encoded bytes.

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/text/to_bytes.html)Generated API reference, mirrored from the live docs
