---
description: Parses a string into a uint256
---

## `parseUint`

### Signature

```solidity
function parseUint(string calldata stringifiedValue) external pure returns (uint256 parsedValue);
```

### Description

Parses a string into a `uint256`.

### Parameters

| Parameter          | Type     | Description              |
|--------------------|----------|--------------------------|
| `stringifiedValue` | `string` | The string to parse      |

### Returns

| Type      | Description         |
|-----------|---------------------|
| `uint256` | The parsed uint     |

### Examples

```solidity [test/ParseUint.t.sol]
string memory uintAsString = "12345";
uint256 result = vm.parseUint(uintAsString);
assertEq(result, 12345);
```

### Related Cheatcodes

- [`toString`](/reference/cheatcodes/to-string) - Converts uint to string
- [`parseInt`](/reference/cheatcodes/parse-int) - Parses string to int256
