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

# concat

Concatenates a set of hex values or byte arrays.

## Install

```ts
import { concat } from 'viem'
```

## Usage

```ts
import { concat } from 'viem'

concat(['0x00000069', '0x00000420'])
// 0x0000006900000420

concat([new Uint8Array([69]), new Uint8Array([420])])
// Uint8Array [69, 420]
```

## Returns

`Hex | ByteArray`

The concatenated value.
