> For the complete documentation index, see [llms.txt](https://docs.hatsprotocol.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hatsprotocol.xyz/using-hats/connecting-hats-w-permissions-and-authorities/connecting-hats-to-token-gates/finding-a-hats-token-id.md).

# Finding a Hat's Token ID

To find a hat's token ID, locate and select that hat in the [Hats app](https://app.hatsprotocol.xyz) and click the copy icon to the right of the hat's "pretty ID" (found in the green box below).&#x20;

<figure><img src="/files/1sUXfig73VkExhkzxDUU" alt=""><figcaption></figcaption></figure>

In decimal format, the hat's token ID will look something like this: `26960769425706497914046077453500346168786499100899720886694455541760`.

In hexadecimal format, the same hat's token ID will look something like this: `0x0000000100020001000100000000000000000000000000000000000000000000`.

The Hats app converts the hexadecimal version to the "pretty id" format `1.2.1.1`:

* `0x00000001` converts to `1`
* `0x0002` converts to `2`
* `0x0001` converts to `1`
* `0x0001` converts to `1`

*For more technical details on how the Hats addressable ID system works, see the* [*Hat IDs*](/for-developers/hats-protocol-for-developers/hat-ids.md) *page within the "For Developers" section of these docs.*
