---
title: hex package
description: The hex package provides functions that perform hexadecimal conversion of int, uint or bytes values to and from string values.
url: https://docs.influxdata.com/flux/v0/stdlib/contrib/bonitoo-io/hex/
estimated_tokens: 323
product: Flux
version: v0
---

# hex package

-   Flux 0.131.0+
-   View InfluxDB support

The `hex` package is a user-contributed package maintained by the [package author](#package-author-and-maintainer).

The `hex` package provides functions that perform hexadecimal conversion of `int`, `uint` or `bytes` values to and from `string` values. Import the `contrib/bonitoo-io/hex` package:

```js
import "contrib/bonitoo-io/hex"
```

## Functions

-   [hex.bytes()](/flux/v0/stdlib/contrib/bonitoo-io/hex/bytes/)
-   [hex.int()](/flux/v0/stdlib/contrib/bonitoo-io/hex/int/)
-   [hex.string()](/flux/v0/stdlib/contrib/bonitoo-io/hex/string/)
-   [hex.uint()](/flux/v0/stdlib/contrib/bonitoo-io/hex/uint/)
