> ## Documentation Index
> Fetch the complete documentation index at: https://voltaire.tevm.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Uint.toString

> Convert Uint256 to string with configurable radix

<Card title="Try it Live" icon="play" href="https://playground.tevm.sh?example=primitives/uint.ts">
  Run Uint examples in the interactive playground
</Card>

<Tabs />

## Radix Support

### Decimal (base 10)

```typescript theme={null}
Uint.toString(Uint(12345n))  // "12345"
```

### Hexadecimal (base 16)

```typescript theme={null}
Uint.toString(Uint(255n), 16)  // "ff" (no 0x prefix)
```

<Tip>
  For hex with `0x` prefix, use `toHex()` instead.
</Tip>

### Binary (base 2)

```typescript theme={null}
Uint.toString(Uint(15n), 2)  // "1111"
```

### Octal (base 8)

```typescript theme={null}
Uint.toString(Uint(64n), 8)  // "100"
```

## See Also

* [toHex](/primitives/uint256/to-hex) - Convert to hex (with 0x prefix)
* [toBigInt](/primitives/uint256/to-bigint) - Convert to BigInt
