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

# Address.from

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

Converts a stringified address to a typed (optionally checksummed) [`Address.Address`](/docs/utilities/address/types#address).

## Imports

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

## Examples

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

Address.from('0xa0cf798816d4b9b9866b5330eea46a18382f251e')
// @log: '0xa0cf798816d4b9b9866b5330eea46a18382f251e'
```

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

Address.from('0xa0cf798816d4b9b9866b5330eea46a18382f251e', {
  checksum: true
})
// @log: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e'
```

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

Address.from('hello')
// @error: InvalidAddressError: Address "0xa" is invalid.
```

## Definition

```ts
function from(
  address: string,
  options?: from.Options,
): Address
```

## Parameters

### address

* **Type:** `string`

An address string to convert to a typed Address.

### options

* **Type:** `from.Options`
* **Optional**

Conversion options.

#### options.checksum

* **Type:** `boolean`
* **Optional**

Whether to checksum the address.

## Return Type

The typed Address.

`Address`
