> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://v3.viem.sh/api/mcp` to find what you need.

# Bytes.concat

:::info
`Bytes.concat` is a re-export of ox's [`Bytes.concat`](https://oxlib.sh/api/Bytes/concat). Refer to the ox documentation for the full reference.
:::

Concatenates two or more [`Bytes.Bytes`](/docs/utilities/bytes/types#bytes).

## Imports

```ts
import { Bytes } from 'viem/utils'
```

## Examples

```ts twoslash
// @noErrors
import { Bytes } from 'viem/utils'

const bytes = Bytes.concat(
  Bytes.from([1]),
  Bytes.from([69]),
  Bytes.from([420, 69])
)
// @log: Uint8Array [ 1, 69, 420, 69 ]
```

## Definition

```ts
function concat(
  values: readonly Bytes[],
): Bytes
```

## Parameters

### values

* **Type:** `readonly Bytes[]`

Values to concatenate.

## Return Type

Concatenated [`Bytes.Bytes`](/docs/utilities/bytes/types#bytes).

`Bytes`
