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

# Hex.trimLeft

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

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

## Imports

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

## Examples

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

Hex.trimLeft('0x00000000deadbeef')
// @log: '0xdeadbeef'
```

## Definition

```ts
function trimLeft(
  value: Hex,
): trimLeft.ReturnType
```

## Parameters

### value

* **Type:** `Hex`

The [`Hex.Hex`](/docs/utilities/hex/types#hex) value to trim.

## Return Type

The trimmed [`Hex.Hex`](/docs/utilities/hex/types#hex) value.

`trimLeft.ReturnType`
