> For the complete documentation index, see [llms.txt](https://dangywing.gitbook.io/canto-name-service/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dangywing.gitbook.io/canto-name-service/technicals/integrating/get-tokenid-from-name.md).

# Get TokenId From Name

given a name, how do I get the TokenId?

```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))));
```
