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

# formatEther

Converts numerical wei to a string representation of ether.

## Import

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

## Usage

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

formatEther(1000000000000000000n) // [!code focus:2]
// '1'
```

## Returns

`string`

## Parameters

### value

* **Type:** `bigint`

The wei value.
