---
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: 165
product: Flux
version: v0
publisher: InfluxData
canonical: https://docs.influxdata.com/flux/v0/stdlib/contrib/bonitoo-io/hex/
date: '2023-09-12T23:33:31-06:00'
lastmod: '2023-09-12T23:33:31-06:00'
---

* Flux 0.131.0+

InfluxDB support

> [!Important]
> 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/)
