---
description: given a name, how do I get the TokenId?
---

# Get TokenId From Name

```solidity
 function nameToId(string calldata name) public pure returns (uint256)
```

This will **not** revert. This call converts the `name` to lower case and generates a numeric representation by returning:

```solidity
(uint256(keccak256(abi.encodePacked(_lowerName))));
```
