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

# Signature.fromHex

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

Deserializes a [`Hex.Hex`](/docs/utilities/hex/types#hex) signature into a structured [`Signature.Signature`](/docs/utilities/signature/types#signature).

## Imports

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

## Examples

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

Signature.fromHex(
  '0x6e100a352ec6ad1b70802290e18aeed190704973570f3b8ed42cb9808e2ea6bf4a90a229a244495b41890987806fcbd2d5d23fc0dbe5f5256c2613c039d76db81c'
)
// @log: { r: '0x6e10...', s: '0x4a90...', yParity: 0 }
```

## Definition

```ts
function fromHex(
  signature: Hex.Hex,
): Signature
```

## Parameters

### signature

* **Type:** `Hex.Hex`

## Return Type

The deserialized [`Signature.Signature`](/docs/utilities/signature/types#signature).

`Signature`
