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

# formatGwei

Converts numerical wei to a string representation of gwei.

## Import

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

## Usage

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

formatGwei(1000000000n) // [!code focus:2]
// '1'
```

## Returns

`string`

## Parameters

### value

* **Type:** `bigint`

The wei value.
