> **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.trimLeft

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

Trims leading zeros from a [`Bytes.Bytes`](/docs/utilities/bytes/types#bytes) value.

## Imports

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

## Examples

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

Bytes.trimLeft(Bytes.from([0, 0, 0, 0, 1, 2, 3]))
// @log: Uint8Array([1, 2, 3])
```

## Definition

```ts
function trimLeft(
  value: Bytes,
): Bytes
```

## Parameters

### value

* **Type:** `Bytes`

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

## Return Type

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

`Bytes`
